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

hide expand collapse column in radgrid based on child grid values

2 Answers 403 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rajesh
Top achievements
Rank 1
Rajesh asked on 15 Sep 2015, 09:36 PM

 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 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 16 Sep 2015, 01:14 PM
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
0
Rajesh
Top achievements
Rank 1
answered on 16 Sep 2015, 03:46 PM
Thank You Pavlina. It works to me.
Tags
Grid
Asked by
Rajesh
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Rajesh
Top achievements
Rank 1
Share this question
or