Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
wiki:howto_grid_base [2009/11/09 09:04] tony |
wiki:howto_grid_base [2010/05/07 14:18] tony |
||
---|---|---|---|
Line 3: | Line 3: | ||
==== Allow FireFox to work with RTL (Right To Left) languages ==== | ==== Allow FireFox to work with RTL (Right To Left) languages ==== | ||
- | jqGrid support fully FireFox versions 3.x and Internet Explorer versions >=6. | + | jqGrid fully supports RTL in FireFox versions 3.x and Internet Explorer versions >=6. |
The default settings in FireFox are not compatible with RTL. In order to change this: | The default settings in FireFox are not compatible with RTL. In order to change this: | ||
- In the url bar in FireFox type about:config and confirm the alert dialog. | - In the url bar in FireFox type about:config and confirm the alert dialog. | ||
Line 108: | Line 108: | ||
</html> | </html> | ||
</code> | </code> | ||
- | Where the json.js is the file downloaded from link provided above | + | Where the json2.js is the file downloaded from link provided above |
+ | |||
+ | ==== Client side sorting, but server side paging ==== | ||
+ | |||
+ | In order to have this we should define two events in the grid - loadComplete and onPaging. Below is the code how can be this achieved | ||
+ | <code javascript> | ||
+ | jQuery("#gridid").jqGrid({ | ||
+ | ... | ||
+ | datatype: 'json', // can be xml | ||
+ | loadComplete : function () { | ||
+ | jQuery("#gridid").jqGrid('setGridParam',{datatype:'local'}); | ||
+ | }, | ||
+ | onPaging : function(which_button) { | ||
+ | jQuery("#gridid").jqGrid('setGridParam',{datatype:'json'}); | ||
+ | }, | ||
+ | ... | ||
+ | }); | ||
+ | </code> | ||
+ | In order local sorting to work properly a sorttype parameter in colModel should be set |