Hi,
we have hierarchical radgrid where on expansion of main grid it expands and shows a detail table. each detail table will have multiple records of either type A or Type B. we need to show only one record of type A and one record type B on page load.
The first column of detail table will have an expand button, on click of this it should display all type A rows from client side, and on click of that button it should hide all those rows.
I don't want 3 level hierarchy. since the hidden rows and row with expand button belongs to same level
4 Answers, 1 is accepted
Based on the provided description it is a bit difficult to understand what the exact functionality you need to achieve is. I would suggest you to revise the help topic below that might cover your requirements:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/declarative-relations/defaultcs.aspx
Regards,
Maria Ilieva
Telerik
the requirement to achieve on click of expand button it should display what is shown on second image and on click of collapse it should display what is on first image.
is there a way to identify the owner table( detail table) from javascript on click of a button on grid template column?
Based on the provided images it is still difficult to determine what your aim exactly is, but if you need to expand and collapse the hierarchy on the client you can simply use the Client HierarchyLoadMode as you can test in the previously provided online demo.
Regards,
Maria Ilieva
Telerik