This question is locked. New answers and comments are not allowed.
Hi,
How to Disable GridViewToggleRowDetailsColumn if ChildTableDefinitions has no value....
see the attatched file...
Thanks In Advance,
Kannan.S
How to Disable GridViewToggleRowDetailsColumn if ChildTableDefinitions has no value....
see the attatched file...
Thanks In Advance,
Kannan.S
4 Answers, 1 is accepted
0
Hello kannan,
Maya
the Telerik team
You may take a look at our demo for a reference. Basically, it represents the implementation of Custom Hierarchy , but still it illustrates how to achieve your requirement.
Maya
the Telerik team
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 Public Issue Tracking
system and vote to affect the priority of the items
0
kannan
Top achievements
Rank 1
answered on 06 Oct 2010, 08:40 AM
Hi,
I saw the below code in telerik demo...
private void RadGridView1_RowLoaded(object sender, Telerik.Windows.Controls.GridView.RowLoadedEventArgs e)
{
GridViewRow row = e.Row as GridViewRow;
if (row != null)
{
Orders order = row.DataContext as Orders;
if (row != null && order != null)
{
row.IsExpandable = order.ShipCountry == "France" || order.ShipCountry == "Brazil";
}
else
{
row.IsExpandable = false;
}
}
}
this is only work , first time the RadGridview loaded..but i have n number of childtabledefinitions.at that condition it does not work...
I saw the below code in telerik demo...
private void RadGridView1_RowLoaded(object sender, Telerik.Windows.Controls.GridView.RowLoadedEventArgs e)
{
GridViewRow row = e.Row as GridViewRow;
if (row != null)
{
Orders order = row.DataContext as Orders;
if (row != null && order != null)
{
row.IsExpandable = order.ShipCountry == "France" || order.ShipCountry == "Brazil";
}
else
{
row.IsExpandable = false;
}
}
}
this is only work , first time the RadGridview loaded..but i have n number of childtabledefinitions.at that condition it does not work...
0
Hello kannan,
Maya
the Telerik team
In this case you may look through this blog post.
Maya
the Telerik team
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 Public Issue Tracking
system and vote to affect the priority of the items
0
kannan
Top achievements
Rank 1
answered on 06 Oct 2010, 11:42 AM
Hi,
ok Thanks.. i have solved the problem by creating RowLoaded Event For GridViewDataControl.....
ok Thanks.. i have solved the problem by creating RowLoaded Event For GridViewDataControl.....