Is there an example how to binding the data in the code behind with these options: Editable=True and ComboTypeAhead=Suggest & EnableXmlHTTP=true.
I am able to bind the data in the codebehind (C#), ( InitializeDataSource and InializeLayout). When I click the "Arrow", I saw my data in the listbox, now I type a character in the combobox, nothing happen. It supposes filter the listbox with the letter I type in the combo box.
Please help.
Be sure you're setting the datasource (and the data is available) from inside of the InitializeDataSource event. You do not need to make any calls to DataBind from the InitializeLayout event. Also, what datasource are you using? The typeahead functionality of the WebCombo requires a datasource that can be filtered - like a SqlDataSource or a DataView.
-Tony
Hello.....am using the Webcombo in an application and am using the following to filter the combo client side when the previous combo is changed : var oCmbOrdr=igcmbo_getComboById(wcTypeClientID); oCmbOrdr.selectWhere("Key="+cust); but the List stays the same it doesnt filter with this value.....it always stays the same on all cases....... any Idea what could be wrong please ?? Help is greatly appreciated... Thanks
Hello,
You should describe your problem in more detail in order for somebody to help.
a) For example have you checked if all the properties are correct for the webCombo requiring Ajax filtering ?
b) After selectWhere() has been called in JavaScript, did you check if the server Page_Init() function being called ?
Your code should be like this:
protected void Page_Init(object sender, EventArgs e) {
webCombo1.InitializeDataSource += new Infragistics.WebUI.WebCombo.InitializeDataSourceEventHandler(webCombo1_InitializeDataSource); }
private void webCombo1_InitializeDataSource(object sender, Infragistics.WebUI.WebCombo.WebComboEventArgs e) {
if (webCombo1.DataSource == null && mDSOrders != null) { webCombo1.DataSource = mDSOrders; webCombo1.DataMember = mDSOrders.Orders; } }
Look...there is no probem with the datasource, because the data appears, the problem is that it appears not filtered. About the ajax filtering properties....I have no idea about them, I copied a Sample and it works...but once customized in my project, the data is not filtered....!
michelaguib - just a shot in the dark, but is your "key" field a string? If so, you'll want to use "like" rather than =, and encapsulate your cust value in quotes. You can always attach SqlProfiler and find out exactly what the sql query that's being executed is. That may show you what the problem is.
Hi pradeep
this attribute Xml HTTP not in .netadvantage vol 4.3 .so what to do?
Hi ,
Have you tried enabling Xml HTTP flag on Webcombo ? Add below flag in Design source and check if it works
EnableXmlHTTP
="true"
Regards
Pradeep