stevegray
4Penny.net
Points: 55409

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 Grid documentation, Is available on the Telerik ASP.NET Grid 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:

4Penny.net
Version:
Section:
Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3