Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
395
Multiple Selection on WebDropDown and Reflect It in Another WebDropDown
posted
Hello All, I am having one webdropdown named Speciality and another webdropdown names SubSpeciality. When I click on one item of Speciality the subspeciality list gets populated. I have used AutoPostBackFlags-SelectionChanged="On" and OnSelectionChanged="wddSpeciality_Selected" for implementing this. My problem is : I need multiple selection in Speciality without autopostback the page and once the multiple selection is made then the SubSpeciality should be populated by all the items together. So if I remove AutoPostBackFlag then the list is not getting populated. please suggest me As soon as you can. Can I use any Java Script or Ajax Script to achieve this? If yes Please give me brief description.
Parents
No Data
Reply
  • 49378
    posted

    Hi R D,

    Thank you for posting in the community.

    I am attaching a sample which suggest an approach for you requirement. In the DropdownClosing client-side event of the first grid, the selected item values are concatenated in a string (a comma is used as a separator) and the loadItems function is called on the second Dropdown which triggers an AJAX callback.

    In the ItemsRequested server-side event of the second grid, the values string passed to loadItems is processed in order to get the list of selected items. Then it is up to you to implement item loading according to your requirements.

    Please let me know if this helps.

    Best Regards,

    Petar Ivanov
    Developer Support Engineer
    Infragistics, Inc.
    http://ko.infragistics.com/support

     

    PopulateWebDropDownWithMultiSelection.zip
Children