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

Grid hierarchy header sign issue

3 Answers 24 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Amit
Top achievements
Rank 2
Amit asked on 21 Oct 2008, 05:23 AM
Hi All,
            I am using RAD Grid v5.1.4 and would like to get the solution for my issue within the same version if possible.

My requirement is to use hirarchy feature of the grid to just 1st level,where by clicking on the row's '+' sign want to show some notes attached with that row in hierarchy row(just single field of notes).
and that is working with the version (5.1.4) i am using.now my requirement is that i want to collapse/hide all the rows's notes by clicking on the header row's '+/-' sign.

my 1st query is how to insert such +/- sign for collapsing/hiding all the row's hierarchy? as it was'nt available on the examples i show for hierarchy functionality.

i seen in client mode hierarchy example to expand 1st row's hierarchy by javascript code as below
 function ExpandCollapseFirstMasterTableViewItem()  
        {  
            debugger;  
            var firstMasterTableViewRow = document.getElementById("<%= RadGrid1.MasterTableView.ClientID %>").get_dataItems()[0];  
            if(firstMasterTableViewRow.get_expanded())  
            {  
                firstMasterTableViewRow.set_expanded(false);  
            }  
            else  
            {  
                firstMasterTableViewRow.set_expanded(true);  
            }  
        } 

but the code was not working with the grid version i have,
so my 2nd query is can any one suggest me parallel functions for my current grid version(5.1.4) please?

For helping further assistance,please look at the image from below link,which shows my exact requirement.

http://www.elanemerging.com/Projects/gTicket/Grid_Requirement.jpg

Thanks in advance,
Amit Champaneri

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 22 Oct 2008, 12:12 PM
Hello Amit,

To see more information on the requested operation, please review the following code library entry.
I hope it gets you started properly.

Best wishes,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Amit
Top achievements
Rank 2
answered on 22 Oct 2008, 01:03 PM
Hi  Yavor
        Thanks for the reply,i gone thru the code,its working fine.now my requirement is to use  HierarchyMode = Client ,as i  have just single field to expand and also that comes from the same datasource which i am supplying to parent grid,and that is making expanding/collapsing very fast.

can it be possible to have same solution for client side hierarchy mode?

Thanks
Amit Champaneri
0
Sebastian
Telerik team
answered on 24 Oct 2008, 07:26 AM
Hello Amit,

We provided a new version of the example in the same code library thread. Review it and let us know whether it helps.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Amit
Top achievements
Rank 2
Answers by
Yavor
Telerik team
Amit
Top achievements
Rank 2
Sebastian
Telerik team
Share this question
or