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

How to bind Dropdownlist Group wise

1 Answer 51 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Jaya
Top achievements
Rank 1
Jaya asked on 16 Mar 2016, 12:50 PM

Hi

 

How to load dropdownlist based on group for ex: 

 

ex:

India 

   Tamilnadu

   Andra

Srilanka 

  State1

  State2

 

In telerik dropdownlist

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 21 Mar 2016, 09:15 AM
Hello Jaya,

Regarding the functionality you aim to achieve, I can suggest you two approaches:

1. Use the IsSeparator property for the items that needs to be represented as parent. You can even modify these items using css style rule, in order to enlarge their font size and so on. Please refer to the following documentation article, providing more information on the usage of the property:

http://docs.telerik.com/devtools/aspnet-ajax/controls/combobox/appearance-and-styling/separators

2. Use a RadDropDownTree, which you can supply with hierarchical data source, in order to visualize the needed rendering and represent the parent->child relation between the items. See DropDownTree demos:

http://demos.telerik.com/aspnet-ajax/dropdowntree/examples/overview/defaultcs.aspx

Regards,
Nencho
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
AutoCompleteBox
Asked by
Jaya
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or