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

Dependent Grid Insert

3 Answers 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paulette Eimer
Top achievements
Rank 2
Paulette Eimer asked on 15 Oct 2008, 05:42 PM
Have two dependent grids and after much browsing on your site finally got them linked up and working on display.

However, my insert is failing on the second grid because it doesn't know what the key value from the first grid is.

I downloaded an example from another posting but all the code was empty in it so it wasn't much help.

I presume I need to use the 'selectedvalue' of the first grid but I'm not sure how to tell the second grid what that value is. How or where.

That is where I need help.

Thank you,

Paulette

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 20 Oct 2008, 08:23 AM
Hi Paulette,

One possible way to handle this task would be to access the RadGrid.SelectedItems collectiton, which would contain all the selected items in the first related grid. This would allow you to access any cell and retrieve the key to manually update the underlying datasource. Here is another way to extract the key value.
I hope this information helps.

All the best,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Paulette Eimer
Top achievements
Rank 2
answered on 12 Nov 2008, 10:01 PM
still don't know what do to. The second grid has the 'update' via the Rad Grid...so how do I pass the key value to an updateable Rad Grid?
0
Accepted
Yavor
Telerik team
answered on 17 Nov 2008, 11:27 AM
Hi Paulette,

Based on the supplied information, it is hard to determine what may be causing the updates to fail.
In order to further investigate the issue, you can open a formal support ticket, and send us the problematic code.

Greetings,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Paulette Eimer
Top achievements
Rank 2
Answers by
Yavor
Telerik team
Paulette Eimer
Top achievements
Rank 2
Share this question
or