How to expand spesific hierarchy ?

3 posts, 1 answers
  1. andi
    andi avatar
    18 posts
    Member since:
    Oct 2018

    Posted 08 Nov 2018 Link to this post

    I have three level of hierarchy.

    1. Radgridview1.--.> add template1

    2. template1.--> add template2

    3. template2.

    the problem is i want to expand component radgridview1 only which contain row from template1.

    if i using code is like : RadGridView1.MasterTemplate.ExpandAll() all hierarchy include template2 will be expanded. if code is like : RadGridView1.MasterTemplate.Templates(0).ExpandAll() then nothing rows expanded. So how to expand Radgridview1 which contain template1 without expand template2 that own by template1.

    thanks before

  2. Answer
    Dimitar
    Admin
    Dimitar avatar
    2892 posts

    Posted 09 Nov 2018 Link to this post

    Hello Andi,

    You can manually expand the rows. For example:
    foreach (var item in radGridView1.Rows)
    {
        item.IsExpanded = true;
    }

    I hope this will be useful. 

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. andi
    andi avatar
    18 posts
    Member since:
    Oct 2018

    Posted 09 Nov 2018 in reply to Dimitar Link to this post

    Hi Dimitar,

    It works very well thank you.

Back to Top