We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Using Ajax to populate a MultiColumnDropDownCombo

There's a post here with a sample link that I believe demonstrates what I want to do:

http://www.syncfusion.com/support/forums/tools-aspnet/78452/MultiColumnDropDownCombo-

But the sample link is no longer valid.

What I'd like to do is use Ajax to populate a multicolumn DDC. I'm assuming I just need to build the table on the fly, but wanted to make sure you guys don't already have some handy-dandy helper functions or something I can use...

5 Replies

LK Lakxman Kumar C Syncfusion Team May 27, 2010 12:48 PM UTC

Hi Pete,

Thank you for your interest in Syncfusion Products.

We are sorry that since the link is broken, you werent able to download the sample that you mentioned. You can find the sample that you requested from the link blow.

http://help.syncfusion.com/samples/Tools.Web/6.4.0.15/78452-MultiColumnDropDownCombo/main.htm

If your intention is to dynamically populate theMultiColumnDropdown during a AJAX refresh, then you can use the DataSource property to specify the data source and then data bind using the DataBind() . The DataSource can be any object that implements the System.Collections.IEnumerable interface. You can find more details on databinding the Multicolumn Dropdown from the link below.

http://help.syncfusion.com/ug_82/ASP.NETUI_Tools/DataBinding4.html

You can also refer our online sample for MultiColumnDropdown in the link below

http://samples.syncfusion.com/ASPNET/8.2.0.18/Web/Tools.Web/samples/3.5/EditorsPackage/MultiColumnDropDownCombo/MultiColumnCoreFeature/cs/CoreFeature.aspx?args=0

Thank you for your interest in Syncfusion Proucts.

Regards,
Lakxman Kumar C


JE Joe Ehrhardt May 27, 2010 01:44 PM UTC

I'm retrieving the data via an async XMLHttpRequest. So how do I use that to populate the dropdown?


JE Joe Ehrhardt May 27, 2010 01:45 PM UTC

Sorry, I'm Peter Davis. I was using my personal account in the original post. This is the corporate account.


JE Joe Ehrhardt May 27, 2010 02:36 PM UTC

It occurs to me that maybe I ought to just tell you exactly what my issue is and maybe there's a better solution...

I have a multicolumndropdowncombo with nearly 6000 items in it. There is a bit of a delay (about 2 seconds) when you click on the dropdown before it displays.

I realize 6000 items is a lot of items, but that's my issue. 2 seconds is simply too long.

Based on the samples you linked to, I've tried using the DataSource method using an ObjectDataSource and having it retrieve the data from an object. This doesn't really seem to be asynchronous, however, as the call to load the data happens before the page is rendered and blocks the page rendering. So, not really the ajax kinda loading I wanted.

I did notice there's a Javascript object: Syncfusion.Web.UI.MultiColumnDropDownCombo in the resources: Syncfusion.Web.UI.WebControls.Shared.MultiColumnDropDownCombo.Scripts.multicolumndropdown.js

Could I use that to populate the grid from Javascript? If so, is there an example of how to use it?


LK Lakxman Kumar C Syncfusion Team June 1, 2010 09:27 AM UTC

Hi Joe,

Kindly follow the Direct-Trac incident created by you for more updates on this requirement.

Thank you for your interest in Syncfusion Products.

Regards,
Lakxman Kumar C

Loader.
Live Chat Icon For mobile
Up arrow icon