Hi,
I would like to get the text from a WebDropDown. The text edited by the user. Not the value or the selected value of an item inside a DataSource.
Example: WebDropDown1.Text
I looked at http://forums.infragistics.com/forums/t/60687.aspx post and tried using WebDropDown1.CurrentValue but it is giving me empty string and not the typed text from WebDropDown.
The value which user is typing may not match any data item which is there in datasource but I need it so that I can use %Like% query on the datasource.
Could anyone please provide me any pointers? Thank you.
Hello Ravi,Please let me know if you have any further questions regarding this issue.
Hello Ravi,Please take a look at the modified from me sample. Now you can type “enterprise” inside the WDD and press the Postback button. It checks the current value of the control and sets the label to it. Please let me know if this suggestion works for you?
Thanks for the reply Nikifor.
In my use case when user types in WebDropDown that may not match populated values. So suppose I type "enterprise" it can not match any data populated in dropdown so SelectedValue will be null. But still I want to use that typed text for 'like search' on datasource when I postback the page explicitly. Which can help me get n number of rows matching "enterprise" text. Hope this provides more clarification.
Hello Ravi,Please take a look at the attached sample which contains a WDD and a label. When a new value in the WDD is selected it makes a postback and sets text of the label the text of the selected item in WDD.