expand on cellclick

3 posts, 1 answers
  1. Andre
    Andre avatar
    41 posts
    Member since:
    Feb 2018

    Posted 16 Mar 2018 Link to this post

    how can i expand the associated templategrid (from a radgridview hierarchy) by cellclick ?
    thanks 
    andré
  2. Answer
    Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    4059 posts

    Posted 19 Mar 2018 Link to this post

    Hello, André,  

    Note that GridViewRowInfo offers IsExpanded property which controls whether the row is expanded or not. Here is a sample code snippet demonstrating how to expand/collapse the row by handling the CellClick event:
     
    private void radGridView1_CellClick(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
    {
        e.Row.IsExpanded =! e.Row.IsExpanded;
    }

    I hope this information helps. If you have any additional questions, please let me know. 

    Regards,
    Dess
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Andre
    Andre avatar
    41 posts
    Member since:
    Feb 2018

    Posted 20 Mar 2018 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    works perfectly !!

    thank you very much

    andré

Back to Top