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

Use Grid in larger insert form for entity tree child objects

1 Answer 16 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rich
Top achievements
Rank 1
Rich asked on 24 May 2010, 06:10 PM
Hi All,

I am trying to put together a form that when submitted would represent a parent entity with child entities and child child entities. I would like to use RadGrid to store the child entities on the page before the submit. There is a single submit that will save everything in the page.

I am using RadWindow to pop-up a (sub)form which i hope to then insert the result of the form into the grid on the parent page.. either with js or in ajax. I have the form and i am sending the result back to the main form.. i need to now write the result of the sub-form to the grid.

Can i use radgrid to do this?? ie: have each row in a grid represent a related entity in the grid? There is no databanding in this i am strictly trying to use the grid as a container for data i want to ultimately submit back to the server.

If this can be done i need to know how to add the rows either in JS or in code-behind for the grid where these added rows will ultimately be available in code-behind. thanks!

Rich

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 28 May 2010, 08:59 AM
Hello Rich,

I am afraid that the desired functionality is not supported by RadGrid. Please note that the RadGrid control is a component that displays data obtained from a database or other data source. In a hierarchical grid, detail tables must be bound separately from their parent tables, using a separate data source. When binding detail tables, you must also manage the relationship of the records in the detail data source to the parent table.

Kind regards,
Pavlina
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
Grid
Asked by
Rich
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or