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

Cascading DropDowns in RadGrid using BatchEdit Mode

1 Answer 120 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 29 Apr 2016, 02:23 PM
In the RadGrid i have setup there are columns for a Vehicle Make, Model, and Style, the desired effect would be to link the selected values between the three and have any models shown reflect the make chosen, and for styles they would conditionally show based off the model chosen (data filtering achieved through sql procedures) but my problem is (i'm using batch cell by cell editing by the way) is that i am unable to retrieve the selected values from "neighbor" dropdowns i'll call them, everywhere i have looked i see that to get the GridEditableItem it can be achievedby doing control "GridEditableItem edit = (GridEditableItem)controlX" but when i do that i get "Unable to cast object of type 'PanelNamingContainer' to type 'Telerik.Web.UI.GridEditableItem'", is there any way to innately bind a selected value to a dropdown from within the edititem template client side e.g. SelectedValue='<%# Bind("Make") %>', because that too blows up with the same listed error, at face value i have three dropdowns that need to communicate their values (in a reliable manor) to eachother for purposes of filtering their respective items.

Please Advise

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 03 May 2016, 10:29 AM
Hi Robert,

Note that having related dropdown controls as editors in Batch Edit mode is not available out of the box for the RadGrid. In order to implement such functionality you would need a lot of custom code.

There is a code-library that illustrates how you can add such feature for the control. However, have in mind that this is a custom solution. It is recommended to test in and ensure that it is working as expected in your scenario.



Regards,
Viktor Tachev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Robert
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or