You can use remapColumns method for example. See the documentation and this old answer.
Best regards
Oleg
Probably there are misunderstanding. The server is the source of the data. The server components should know all informations about the database used to get the data: the database name, connection string, all tables name, the column names and its type. The only advice from the client side is the value of index property of the column where the user choosed to sort the data.
It you do need the type of data you should describe your situation more exactly. You can use postData parameter of jqGrid to send any additional information to the server. It it is really needed you can send type information or other additional information which need the server with respect of the parameter.
Best regards
Oleg
OK I see now. You merged the fix more quickly as I posted my comments here. 🙂
Do you read my comment
I posted my suggestions in GitHub here.
Best regards
Oleg
P.S. If the way is better for you I could make all bug fixes or feature requests with the code in GitHub in the same way. I can additionally post in the Bug forum only my comments to the suggested
OK I will do this in GitHub.
If I past the text in the forum I always verify and modify in HTML mode, but I found one more strange behavior. Till you posted your reply, the strikethrough
Hi Tony!
I want mention, that now some texts in the code which was displayed as strikethrough (deleted) are displayed now as black. All lines with tw
What you mean under “Alternative color”? jqGrid use jQuery UI temes
The end user should has input date in the native comfortable form which correspond to locale which use use. For example I use format like 31.03.2011 because I develop for Germany. It is good to use jQuery UI datepicker integrated in the jqGrid. Beacuse your question has no JavaScript code and no other information it is difficult to explain you more.
Best regards
Oleg
I am not sure that hiding some rows in the grid is so good idea (see here some remarks), but if it is really needed you can use loadComplete as the place where you make rows hidden. Every sorting follow to rebuilding the grid contain, so all typical functions like beforeRequest and loadComplete are called at the end of sorting.
Best regards
Oleg
For the grid with local datatype (or in case of remote datatype but loadonce:true) it is better to get 'data' internal parameter of jqGrid. In case of pure remote data you can use getRowData without any additional parameters to get the grid contain.
If you copy the contain of one grid to another one which are on the same page you should don't forget to assign new unique ids for all rows. The row ids will be used as the ids of
Best regards
Oleg
The old grid contain will be deleted inside of addJSONData internal function which will be called inside of $.ajax success handle.
Just for fun you can include in your jqGrid treeANode: -2
You can call trigger('reloadGrid') from inside of $.ajax in general. Which probelm exist in your code is difficult to say. I am sure that the problem is outside the code which you here posted.
I recommend you inclue always error handler in the $.ajax call. In your current code no trigger('reloadGrid') will be called in case of any errors.
Best regards
Oleg
About the problems in IE compatibility mode I recommend to read this answer inclusive many comments.
@ganlhi: If there are exist any other problem you should post the demo example (possibly simple) which can be used to reproduce the problem. I recommend everybody to make the demo as simple as possible. Typically during simplification of your original example you will see that after one step the problem is away and you will find the bug in your code.
Best regards
Oleg
The information that some grid have some error in Firefox 4 can not help. If you post some bug report you should allways provide the corresponding demo. How you can verify,
Hello atrius,
dynamically creating of the table used for jqGrid work fine. See the demo for example.
You just have a bug in your code. Typical errors are: 1) use create
Best regerds
Oleg
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top