I have a Rad grid bound to a sqldatasources using hierarchical Declarative relations which works fine. However I would like to have only specific rows expanded on load based on the value in one of the columns of the master table. I have tried the following code which does target the correct rows but does not expand them on load.
Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound If (TypeOf e.Item Is GridDataItem) Then If (e.Item.OwnerTableView.DataSourceID = "SqlDSmaster") Then 'process requested operations Dim DataItem As GridDataItem = CType(e.Item, GridDataItem) If DataItem("Status").Text = "Hasdetailrows" Then DataItem.BackColor = Drawing.Color.Red DataItem.FireCommandEvent("ExpandCollapse", DataItem) DataItem.Expanded = True End If End If End If End SubAny help would be appreciated.
Kind Regards
Ross