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

RadGrid Popup Edit Question

3 Answers 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Adrian Eng Ying Ming
Top achievements
Rank 1
Adrian Eng Ying Ming asked on 09 Jul 2010, 11:09 AM
Hi there,
          Using RadGrid inbuilt popup edit form, which i use <%# DataBinder.Eval( Container, "DataItem.Value") %>  to bind the value from the selected grid to the popup UserControl. However, is there a way to bind the ParentID of the nested grid onto the popup Edit Form.
   ParentID - 1
      - Child 1
      - Child 2
   ParentID - 2
      ......
           Is usere press the nested grid (ParentID - 1 Nested grid) Add, is there a way to pass ParentID 1 to the popup? Ive tried
<asp:hiddenfield id="hidParentID"
value='<%# (Container is GridEditFormInsertItem) ? DataBinder.Eval( Container, "OwnerTableView.ParentItem.ParentID") :DataBinder.Eval( Container, "DataItem.ParentID") %>' runat="server" />
which will bind the ParentID if its "Add" Command is invoke, which doesnt work.

regards,
Adrian


   

3 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 12 Jul 2010, 01:47 PM
Hello Adrian,

I'd recommend that you use the ItemDataBound event and pass the parent item ID through code-behind.

Greetings,
Tsvetoslav
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
Adrian Eng Ying Ming
Top achievements
Rank 1
answered on 13 Jul 2010, 01:49 AM
hi Tsvetoslav ,
   is there a demo that goes about doing this?
Thanks
Adrian.
0
Accepted
Tsvetoslav
Telerik team
answered on 15 Jul 2010, 12:10 PM
Hi Adrian,

Attached is a small sample.

All the best,
Tsvetoslav
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
Adrian Eng Ying Ming
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Adrian Eng Ying Ming
Top achievements
Rank 1
Share this question
or