RadDropDownList - Retrieve additional values from the datasource
* This article, and all our great Telerik ASP.NET documentation, Is available on the Telerik ASP.NET menu
Working with Telerik’s RadDropDownList is usually straightforward—until you need it to return more than one value. Many developers assume the control can only store a single DataValueField, and attempts to retrieve additional fields through DataItem often fail, especially after postbacks. The good news is that Telerik quietly provides a clean, reliable way to attach and retrieve multiple values from each item without hacks, hidden fields, or brittle string parsing. In this article, we’ll walk through the method that actually works every time and show why it’s the preferred approach for real-world ASP.NET applications.
|