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

[Solved] Binding data to a grid when EditMode="EditForms"

1 Answer 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gil
Top achievements
Rank 1
Gil asked on 18 Jan 2010, 10:45 AM
consider the following case:
I have a RadGrid in an ascx page, lets call it "Outer Grid".
I set EditMode="EditForms" for this RadGrid, and in the EditFormSetting tag I set EditFormType="WebUserControl".
also I set UserControlName to point to another ascx page that holds 3 RadComboBox's, a TextBox and a Button, lets call it "The Form".
when I click on a row of the "Outer Grid", it is changed to Edit Mode and expands so that "The Form" is shown with values from the DB.

The bound data of 2 of the RadComboBoxe's in "The Form" are dependent on the selected value of the third one, so I set an "onSelectedIndexChanged" handler to that RadComboBox, and changes the bound data to the other 2.
now for my problem:
the thing is that on every indexChanged of the 3rd RadComboBox, "The Form" is loaded with values from the DB, and when it gets to the handler, I cant tell what is the new selected item.

any super easy solution for me?
thanks,
gili.

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 21 Jan 2010, 08:57 AM
Hi Gil,

Based on the supplied information, it is hard to determine what is causing this unwanted behavior. I suspect it has to do with the way the grid is databound, or the way the user controls are loaded. If the problem persists, you can open a formal support ticket, and send us a small working project, demonstrating your setup. We will debug it locally, and get back to you with more information on the matter.

Sincerely yours,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Gil
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or