Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

hide expand collapse column in radgrid based on child grid values

$
0
0

 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

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>