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

[Solved] Disable GridViewToggleRowDetailsColumn

4 Answers 151 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
kannan
Top achievements
Rank 1
kannan asked on 05 Oct 2010, 02:46 PM
Hi,
  How to Disable GridViewToggleRowDetailsColumn if ChildTableDefinitions has no value....

see the attatched file...


Thanks In Advance,
Kannan.S

4 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 05 Oct 2010, 03:49 PM
Hello kannan,

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.
 

Kind regards,
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...
0
Maya
Telerik team
answered on 06 Oct 2010, 09:10 AM
Hello kannan,

In this case you may look through this blog post

Best wishes,
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.....

Tags
GridView
Asked by
kannan
Top achievements
Rank 1
Answers by
Maya
Telerik team
kannan
Top achievements
Rank 1
Share this question
or