hide expand collapse column in radgrid based on child grid values

3 posts, 1 answers
  1. Rajesh
    Rajesh avatar
    10 posts
    Member since:
    Jun 2014

    Posted 15 Sep 2015 Link to this post

     Hi Team,

     

    I don't want to display the expand/collapse icon if the child grid doesn't contain values.

    It should display only the child grid has rows.

     

    Thanks,
    Rajesh

     

      Protected Sub Parts_DetailTableDataBind(sender As Object, e As GridDetailTableDataBindEventArgs) Handles Parts.DetailTableDataBind
    Dim dataItem As GridDataItem = CType(e.DetailTableView.ParentItem, GridDataItem)
    Dim obj As New AutoComplete()
    Select Case e.DetailTableView.Name
    Case "ComponentDetails"
    Dim InventoryID As Integer = CType(dataItem.GetDataKeyValue("InventoryID"), Integer)
    e.DetailTableView.DataSource = obj.GetComponentItems(InventoryID)
    End Select
    End Sub
  2. Answer
    Pavlina
    Admin
    Pavlina avatar
    6184 posts

    Posted 16 Sep 2015 Link to this post

    Hi,

    The requested scenario is covered in the article below:
    http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/hierarchical-grid-types-and-load-modes/how-to/hiding-the-expand-collapse-images-when-no-records

    Regards,
    Pavlina
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Rajesh
    Rajesh avatar
    10 posts
    Member since:
    Jun 2014

    Posted 16 Sep 2015 in reply to Pavlina Link to this post

    Thank You Pavlina. It works to me.
Back to Top