Forum
03:52
Moderators
30/10/2007
HEllo,
Try this (Not tested)
$(".treeclick","#mygrid").each(function() {
if($(this).hasClass("tree-plus") $(this).trigger("click");
});
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
00:17
02/06/2009
Thanks a lot Tony. Its working.
I do have one more query. I am using the following code to refresh the tree grid.
jQuery("#grid_id").trigger("reloadGrid");
But, it is taking considerable amount of time to refresh the tree grid. Is there any other way to refresh the tree grid which minimizes the time taken to refresh.
05:17
Moderators
30/10/2007
Hello
If you return only the root nodes you will have to spare a couple of time. Using tree grid in relative big nodes from server slow down the grid because we needed a couple of client side processing to construct the tree.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
12:38
24/09/2009
Firing the click event on tree-plus is expanding rows, but it is appending them all to the bottom of the table instead of beneath their parents.
Has anyone found a workaround to achieve a reliable “Expand All” feature?
Btw, here's what I use for Collapse All — works great:
$(".treeclick","table#mygrid").each(function() {
if($(this).hasClass("tree-minus")) {
$(this).trigger("click");
}
});
11:19
Moderators
30/10/2007
Hello,
Which version of jqGrid do you use?
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
10:27
Moderators
30/10/2007
Hello,
I will prepare such methods for 3.6 release
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
12:00
31/08/2010
Hey tony,
could you make an (optional) expand all / callapse all buton in the header of jqgrid's containing subgrids? That feature seems to be convenient for some.
tony said:
HEllo,
Try this (Not tested)
$(".treeclick","#mygrid").each(function() {
if($(this).hasClass("tree-plus") $(this).trigger("click");
});
Regards
Tony
00:37
11/08/2011
I simply created a new pager button:
jQuery("#mygrid").jqGrid('navGrid', "#pager").jqGrid('navButtonAdd', "#pager",{ caption: "Expand/Collapse All", buttonicon: "ui-icon-triangle-2-n-s", onClickButton: function() { $("#mygrid").find(".treeclick").trigger('click'); }, position: "last", title: "Expand/Collapse All", cursor: "pointer" });
Most Users Ever Online: 715
Currently Online:
82 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66