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

RadGridView add GridViewTableDefinition to a particular row index

3 Answers 40 Views
GridView
This is a migrated thread and some comments may be shown as answers.
shiras abdulrahman
Top achievements
Rank 1
shiras abdulrahman asked on 31 Mar 2011, 05:09 PM
Hello,

I have implemented a hierarchical grid. one of my requirement is to add a child row to the parent on click of a button in the parent. if the parent grid loaded (3rd row) without any child, how do i add GridViewTableDefinition to the third row of the datagrid.

for the parent rows which has already GridViewTableDefinition i am able to add/insert rows using BeginInsert. If i try to add for which there are no child rows at all onLoad, it throws ArgumentException.

Please advice.

Thanks,
Shiras

3 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 05 Apr 2011, 10:15 PM
Hi shiras abdulrahman,

I have prepared an example project for you. Please, have a look at it and inform us if this approach meets your requirements.

Greetings,
Ivan Ivanov
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
shiras abdulrahman
Top achievements
Rank 1
answered on 06 Apr 2011, 10:45 AM
Thanks for your reply and the sample solution.

You have simulated almost what i need, infact i had already achieved it, but my question was how to ADD a new table definition for which parent there is no child at all. in your example lets consider "Arsenal" did not have any players and now i want to add new players, so upon clicking it should bring a new table definition as a child grid below the parent grid which is Aresenal and i should be able to add players from scratch.

Hope I have made my question clear.

Thanks and Awaiting your response.
Shiras
0
Ivan Ivanov
Telerik team
answered on 11 Apr 2011, 12:59 PM
Hello shiras abdulrahman,

I modified the initial example project. Please, have a look at the new version and tell me if this solution is applicable to your case.

All the best,
Ivan Ivanov
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
Tags
GridView
Asked by
shiras abdulrahman
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
shiras abdulrahman
Top achievements
Rank 1
Share this question
or