How to bind Dropdownlist Group wise

2 posts, 0 answers
  1. Jaya
    Jaya avatar
    81 posts
    Member since:
    Mar 2011

    Posted 16 Mar Link to this post

    Hi

     

    How to load dropdownlist based on group for ex: 

     

    ex:

    India 

       Tamilnadu

       Andra

    Srilanka 

      State1

      State2

     

    In telerik dropdownlist

  2. Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 21 Mar Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top