Thanks Tony, I look forward to that!
tony said:
Andrei,
This is a good idea I will add it to the wish list.
Thank youTony
Hi Tony,
Would this feature be included in 3.5 – grid resize, both vertical and horizontal? If not, is there any workaround to achieve this in 3.4.3?
Thanks!
Hi tony,
That's part of my requirements.. I also need subsequent clicks on same column header to reverse the sort direction or remove sorting on that column.
For example, we have columns A, B and C.
First click on column A -> sort parameter: A asc
Then click on B -> sort parameter: A asc, B asc
Then click on C twice -> sort parameter: A asc, B asc, C desc
Then click on B -> sort parameter: A asc, B desc, C desc
Then click on B again -> sort parameter: A asc, C desc (Sort on B is off)
Thanks!
Hi Tony,
Do you mean adding two onSortCol events (one desc and the other asc) for each column and each click to update the sortname and sortorder via setGridParam?
For example, initial sort is “Col_1 asc”
Then clicking on Col_2 would set sortname to “Col_1 asc, Col_2” and sortorder to “asc”. Next click on Col_3 would set sortname to “Col_1 asc, Col_2 asc, Col_3” and sortorder to “asc”. I think you have something else in mind.
My approach above seems to create a mess if I click on the same column more than once. A search and replace function would need to be in place to manipulate the sortname string and retain the order of last clicked column in sortorder. I would also need a sort reset button. Not elegant at all..
Please advise further.. Thanks!
Hi Tony,
I do not quite understand what you mean. Could you elaborate or provide examples or links to examples?
Thanks!
Hi Tony,
How can we do multi column sort by simply clicking on the column titles? Can we make the sort direction arrow appear for all the sorted columns?
Thanks!
Thanks for the advice! I'll try it out..
Hi Tony,
Any advice on how we could tell the the search form in “Multiple Form Search” demo is ready?
Thanks!
I realized I could get the list of previous selected items by $(“#list”).getPostDataItem(“param_name”) instead of passing back with userdata. This saved some network bandwidth..
However, I still haven't figure out how to know when the select element populated via surl is ready..
Just to add on..
I am using a search form with a single select element which has its 5000+ values populated via surl, defined in filterModel. This form is done with reference to “Multiple Form Search” at http://trirand.com/jqgrid/jqgrid.html under “New in version 3.3″.
As the list of values in the select is quite large and it would take a while to load, is that any method/event I can use to know that the select is ready?
This is necessary so that I can automatically select those values selected previously. I am passing the previous selected values back to the grid via userdata.
Thanks!
Hi Tony,
Yes, I did the latter by setting the setting the filter div to the original state when the filter layer hides and add the filter again when it shows.
onHeaderClick: function (stat) { if(stat == 'visible' ){ //jQuery(“#filter”).html(“Queue Selector”);
Anyone can share the solution?
I got it!
$(“#grid”).getGridParam(“records”)
Yes, I can see the issue is fixed in 3.5 demo.. great job!
Thanks for confirming! 
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top