This is a migrated thread and some comments may be shown as answers.

RAD Grid Javascript Expand/Collapse

1 Answer 148 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Muhammad
Top achievements
Rank 1
Muhammad asked on 28 Aug 2009, 12:43 PM
Hi there,

I am using Q3 2008 version; I want to collapse/expand the Grid Rows (in GroupingByExpression).
I reffered to the http://www.telerik.com/community/forums/aspnet/grid/expand-collapse-all-groups-on-client.aspx, but I think this methodes used in this API are not supported by my version.
I also tried to use the tableView._getGroupExpandButton(tableView._getRowByIndexOrItemIndexHierarchical(0)) but it always return null.
I found the expand button for one of the row "tableView.get_element().all[7].all[1].all[0]" but I am unable to locate this inside dataitem.

Any quick response will be highly appriciated.

Thanks
Sajid

1 Answer, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 01 Sep 2009, 05:01 PM
You might want to check out the following samples found in other community posts, they might be able to give you some more insight to the topic:
http://www.telerik.com/community/code-library/aspnet-ajax/grid/expand-collapse-grouped-grid-client-side-on-external-control-click.aspx#726218
http://www.telerik.com/community/code-library/aspnet-ajax/grid/expand-collapse-hierarchy-client-side-on-external-control-click.aspx
The first one should be using a newer version than yours, but the API might still work for you. The second one, however, is from 2007 and should work fine with your version. Hopefully this helps!


Tags
Grid
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Share this question
or