abottoni
abottoni

Reputation: 525

Sort in a Jqgrid (on Load Complete)

I'm facing the same problem as explain in this post.

In my case, I'm loading the data into the grid with JSON. Unfortunately I cannot change the query to do the sorting so I've tried to replicate what Oleg and Ruffp suggest but i don't use "if (data.nodeType)". Now even if the grid is sorting, I can't select any row because when I place the mouse pointer inside the grid, it starts to blink or flash (Maybe I'm having recursions in the execution of the grid, but I'm not sure).

Should I put the timeout inside an if clause? Using something different than data.nodeType because I'm using JSON? In that case, which should be the clause?

Thanks for your help !

Upvotes: 0

Views: 2309

Answers (1)

Oleg
Oleg

Reputation: 221997

If I understand you correct you will find the answer on your question here. I suppose that you use datatype: "json" and loadonce: true options and loads from the server full unsorted data (without paging and sorting). If you implemented paging on the server, but no sorting then you should find the solution of your problem in another answer.

Upvotes: 1

Related Questions