O'Reilly logo

ASP.NET jQuery Cookbook - Second Edition by Sonal Aneel Allana

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Showing/hiding the GridView control with the explode effect

The jQuery UI library provides many interesting effects that can be easily applied on ASP.NET sites. We have already seen the bounce effect when applied to images in an earlier recipe. In this particular example, we will make use of another effect called explode and apply it to a GridView control. The constructs used in this example are as follows:

Construct

Type

Description

$("#identifier")

jQuery selector

This selects an element using its ID.

event.preventDefault()

jQuery method

This prevents the default action of the event from being triggered.

explode

jQuery UI effect

This splits an element in the specified number of pieces while hiding or showing it.

.hide()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required