Asp.Net

JQGrid methods


I am listing here some useful methods of JqGrid (Jquery data grid plugin). you can read more about JqGrid here. You can also see demo of this grid here.

Html tag to declare JqGrid on web page

<table id="<nameofgrid>"></table> <div id="pager1"></div>

Grid Hide & Show

$(‘#<nameofgrid>’).hide();

$(‘#<nameofgrid>’).show();

Clear JQGrid Data

$(‘#<nameofgrid>’).clearGridData(false);

Fade In & Fade Out

$(‘#<nameofgrid>’).fadeIn("fast");

Align Column Header Text

$(‘#<nameofgrid>’).jqGrid(‘setLabel’, <Column Name>, ”, { ‘text-align’: ‘right’ });

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s