DynDeveloper.com

DynDeveloper.com

Sign Up Now!Log In
bobx 8/7/2012 2:04:37 PM

Telerik - ASPX - RadGrid Cascading Dropdown boxes in EditForms mode

* This article, and all our great Telerik ASP.NET documentation, Is available on the Telerik ASP.NET menu

We're developing a new application here that requires a RadGrid in EditForms mode; and when in insert mode we need some of the dropdowns to cascade. There are fields for Project and Category, when we select Project we need Category to populate with all the catetories for that project.

This article will document the process needed to achieve that. The basic technique is to use template columns instead of the native GridDropDownColumn, and to handle the ItemDataBound event and the SelectedIndexChanged events. We've set this grid up in AJAX mode so it doesn't 'flash' as things happen.

Also, we've set up the 'Empy Message' property on two of the dropdowns

The end result will look like this in 'insert' mode:

Version:
Section: