I have a RadGrid with 1 detail table, which I want populated once, and stored on the client.
I have set the HierarchyLoadMode="Client" on both the Radgrid and the mastertableview of the detailtables.
Within the clientsettings of RadGrid I have set AllowExpandCollapse="true".
When I step though the execution of my code, the '_DetailTableDataBind' event fires once for each 'master' row in the RadGrid (as I would expect) when the RadGrid populates.
I have put 2 buttons on my page 'Expand All' and 'Collapse All' which expand and collapse all grid items by calling a method on the server which iterates MyGrid.MasterTableView.Items and sets the expanded property to true or false as appropriate. This works as I want.
What doesn't work is if I click the '+' or '-' next to each master row in order to expand or collapse the individual detailtable.
I get a javascript error along the lines of:
$find("ctl00_uws_PageContent_uxMidCol_uxMain_ctl04_AppContent_MyGrid_ctl00") has no properties
Which implies the object hasn't been created client-side?
Can anyone please help?
I have set the HierarchyLoadMode="Client" on both the Radgrid and the mastertableview of the detailtables.
Within the clientsettings of RadGrid I have set AllowExpandCollapse="true".
When I step though the execution of my code, the '_DetailTableDataBind' event fires once for each 'master' row in the RadGrid (as I would expect) when the RadGrid populates.
I have put 2 buttons on my page 'Expand All' and 'Collapse All' which expand and collapse all grid items by calling a method on the server which iterates MyGrid.MasterTableView.Items and sets the expanded property to true or false as appropriate. This works as I want.
What doesn't work is if I click the '+' or '-' next to each master row in order to expand or collapse the individual detailtable.
I get a javascript error along the lines of:
$find("ctl00_uws_PageContent_uxMidCol_uxMain_ctl04_AppContent_MyGrid_ctl00") has no properties
Which implies the object hasn't been created client-side?
Can anyone please help?