This is a migrated thread and some comments may be shown as answers.
Persisting values in hierarchy when inserting
2 Answers 19 Views
This is a migrated thread and some comments may be shown as answers.
Vlad
Top achievements
Rank 1
Vlad asked on 25 Jun 2008, 09:47 PM
Hi.

I have a table with a subtable.

The subtable has these fields from main table -
                    <ParentTableRelation>
                        <telerik:GridRelationFields DetailKeyField="SongID" MasterKeyField="SongID" />
                    </ParentTableRelation>

These work great for just showing a list but when I try to Add a new item then SongID becomes nothin but I want it to be the same value as when I see the list.
How can I accomplish that? I need that SongID for my datasource and I want it to be populated even when I do "add a new entry". It just should equal to the main tables SongID.

Thanks

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 26 Jun 2008, 05:38 AM
Hi Vlad,

Go through the online demo given below.
Update/Insert/Delete in hierarchy

Thanks
Princy.
0
Vlad
Top achievements
Rank 1
answered on 26 Jun 2008, 02:52 PM
I forgot to mention that my objectdatasources return objects so there are no InputParameters of any sort. How do I deal with that?

It did work with parameters but now we converted everything to objects so instead of passing a bunch of parameters we just define DataObjectTypeName.

Thanks
Tags
Grid
Asked by
Vlad
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Vlad
Top achievements
Rank 1
Share this question
or