====== HOW TO jqGrid common solutions ======
==== Allow FireFox to work with RTL (Right To Left) languages ====
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:
- In the url bar in FireFox type about:config and confirm the alert dialog.
- In the Find bar type layout.scrollbar.side
- Double click on it and change the value from 0 to 1
RTL support is available from version 3.6 and up
==== Configuring jqGrid to use only the new API ====
This should be done in the installation procedure following these steps:
My First Grid
...
Note the callling of
This line should be after the language file and before the jqGrid JS file
New jqGrid API is available from version 3.6 and up
==== 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
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'});
},
...
});
In order local sorting to work properly a sorttype parameter in colModel should be set