I can't figure out how to get the WebDropdown to autopostback ONLY when I have actually selected an item.
Using your own example shows the problem that I'm having. Please go to this page:
http://samples.infragistics.com/2009.1/WebFeatureBrowser/contents.aspx?showCode=True&t=WebDropDown/WebDropDownServerEvents.aspx~srcview.aspx?path=~srcview.aspx?path=WebDropDown/WebDropDownServerEvents.src
Now, click in the webDropDown, delete the text, and type just a 'B'. An autopostback happens, and says that I have selected "Berglunds snabbköp". Which is not the case - the webdropdown only has a 'B' in it.
I don't want a postback to happen until I either hit <enter> or click on a item. To further clarify my need, lets say that you actually wanted to select the second "B" item, which is "Blauer See Delikatessen". I want to be able to type "Bl" and not have a postback happen after the "B".
In my case, I'm setting EnableAutoFiltering="Client", which will filter the results. So, I want to be able to type a "B", and the result is filtered, BUT no postback happens yet, because I haven't selected anything yet. Then I type"L" (which filters, so "Blauer See Delikatessen", is now the first item - the item that I really want, so I now hit <enter>. This is when I want the autopostback to happen - because only now have I actually selected something. Up until now, I've only been typing.
Thanks,Jim
Hi, I am having the same problem with webdropdown autoposk everytime a value is selected.
I have a webdropdown with filtering of items. I followed this post but it didnt worked out..
Could you please help me on this.? I can provide a sample application.
Thanks
Hello ,
You do not need to do this. I created support ticket on your behalf
CAS-59677-WP2TSF
I will contact you and you can upload an isolated sample reproducing the issue.
Using the code:
<ig:WebDropDown ID="WebDropDown2" runat="server" Width="200px" DataSourceID="SqlDataSource1" TextField="Prod_Code" ValueField="Prod_ID" AutoSelectOnMatch="false" KeepFocusOnSelection="false" EnableClosingDropDownOnSelect="false" EnableAutoCompleteFirstMatch="false" EnableAutoFiltering="Client" OnSelectionChanged="WebDropDown1_SelectionChanged"> <AutoPostBackFlags SelectionChanged="On" ValueChanged="Off" /> <DropDownItemBinding TextField="Prod_Code" ValueField="Prod_ID" /> </ig:WebDropDown>
It still posts back as soon as I hit a key on the keyboard. This happens both in Firefox and Chrome - haven't tested IE...
Again, select an item with the mouse. Then highlite the selection, and hit any key on the keyboard - the control will postback, which is not correct because I didn't select anything, I just hit the first character of the new selection.
Do I need to put this on a public website so you can see the problem?
Hello Jim,
It seems that you have missed
KeepFocusOnSelection="false"
This property indicates whether input will be automatically re-focused once an item from the dropdown is selected.
Please let me know if you need further assistance regarding this.
Yes, I'm using the latest service pack.
You had me add two tags (EnableClosingDropDownOnSelect="false" EnableAutoCompleteFirstMatch="false")
This did not help. Again, the problem is simple to see:1) After the page loads, Select an item with the mouse (any item). A postback happens, this is correct.2) Now, HIGHLIGHT the text which is the item that you just selected above. Hit any other key on the keyboard. A postback will happen. This is NOT correct. I did not select a different item yet, All I did was hit the first character of my new choice.
Jim