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

EditTemplate cascading combo's

1 Answer 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 20 Apr 2008, 11:03 PM
Hi

I'm trying to use three cascading combo boxes in my EditTemplate for a radGrid (cboCountry, cboProvince, cboCity).  They populate properly when I choose to Edit a record in the grid, and I am able to select different values in cboCity.  However, when I try to change cboCountry or cboProvince the following error occurs:

Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control

I guess that after the SelectedIndexChanged event the combo box does not re-bind and instead tries to populate itself from the saved ViewState? Not too sure about this...

I have looked through the videos and documentation and not found an sample that addresses this scenario...

Any help or suggestions would be greatly appreciated

Thanks a lot

1 Answer, 1 is accepted

Sort by
0
Nikita Gourme
Top achievements
Rank 1
answered on 23 Apr 2008, 01:45 PM
Related comboboxes in edit form is commonly requested scenario (judging from the forums) and Telerik has dedicated resources on this subject - check them out:

Online demo
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Programming/AccessingCellsAndRows/DefaultCS.aspx

Documentation topic
http://www.telerik.com/help/radcontrols/prometheus/?gridReferenceControlsInRowEditForm.html

Hope those help.

Nikita
Tags
Grid
Asked by
Brian
Top achievements
Rank 1
Answers by
Nikita Gourme
Top achievements
Rank 1
Share this question
or