I have 2 webcombo's on a ASPX page, one Customer and one Location. I would like the user to select the customer from Customer and the have the Location combo filtered by Customer.
I have the databinding in the InitializeDataSource event for each control. The problem comes I need to use the value from the Customer combo to filter the Location, I cannot pre-populate because there are 250k records
After a Customer is selected I just want to user to click the Location combo and select the location. The problem I am running into is that the InitializeDataSource for the Location combo never fires when the Combo is clicked, it happens at several other points.
Any ideas?
Hello,
InitializeDataSource will not fire if you do not initiate a postback. The functionality you saught is described in the following KB article:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=10056
I know this is an old post, but I need the same exact thing, but my two webcombos are in a RowEditTemplate, so the initializedatasource cannot be gotten to in the code behind. Are there any examples of being able to do this with two sqldatasources, one for each combo, and everything in client?
Thanks,
Will
I am not quit sure but have you tried keeping SQLDatasources control in .ascx file which is used for template?
Or what happens if you use code behind of .ascx.cs for initialize datasource?
I think you can use following way to poppulate your combos client side using BLOCKED SCRIPT
http://samples.infragistics.com/2008.2/webfeaturebrowser/contents.aspx?showCode=True&t=WebGrid/AjaxImplementation/TypeAheadCombo.aspx~srcview.aspx?path=../webfeaturebrowservb/WebGrid/AjaxImplementation/TypeAheadCombo.src~srcview.aspx?path=WebGrid/AjaxImplementation/TypeAheadCombo.src