Folks using VS 2010 SP1 with Rad Controls for ASP.Net Ajax 2011. I am below link as prototype. But unlike the below link I have 1 Master and 1 detail table.
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/declarativerelations/defaultcs.aspx
My intention is for example if CustomerID column value is 'ALFKI' in parent Table then hide Freight (A GridTemplateColumn in my actual scenario) Data in Detail Table, else show Frieght Column data in Detail Table. So far I come up with this in Radgrid Prerender event but strugling to get a referrence to hide the Detail Table column.
Thanks
gc_0620
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/declarativerelations/defaultcs.aspx
My intention is for example if CustomerID column value is 'ALFKI' in parent Table then hide Freight (A GridTemplateColumn in my actual scenario) Data in Detail Table, else show Frieght Column data in Detail Table. So far I come up with this in Radgrid Prerender event but strugling to get a referrence to hide the Detail Table column.
protected void RadGrid1_PreRender(object sender, EventArgs e)
{
foreach (GridDataItem dataItem in RadGrid1.MasterTableView.Items)
{
if (dataItem.Expanded)
{
// Need Help here to Conditionally Hide Detail Table Freight Column
// if Column Value CustomerID of Parent Table = 'ALFKI'.
}
}
}
Thanks
gc_0620