Grid hierarchy header sign issue

4 posts, 0 answers
  1. Amit
    Amit avatar
    34 posts
    Member since:
    May 2007

    Posted 21 Oct 2008 Link to this post

    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
  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 22 Oct 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Amit
    Amit avatar
    34 posts
    Member since:
    May 2007

    Posted 22 Oct 2008 Link to this post

    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
  5. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 24 Oct 2008 Link to this post

    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.
Back to Top