I have a WebDataGrid that uses the DropDownProvider I want the user to be able to start typing and the have the matching item selected automatically. I have it working with a few issues. First, the user is able to delete part of the selected text, thus getting an invalid value that does not match an item in the list. Is there a way to prevent the user from doing this? Also, once the user opens the dropdown list, autocomplete no longer works. The user has to select the selected text or click off of the drop down column and then re-selected it. What I would like is for the selected text to remain highlighted when opening the drop down list.
Another issue is that when clicking on a column with a drop down in a new row "null" appears until the user selects a an item from the list. Is there a way to get it to default to the first item in the list for a new row?
Below is the code for the DropDownProvider:
<ig:DropDownProvider ID="ProjectProvider"> <EditorControl DataSourceID="dsProjects" DropDownContainerMaxHeight="300px" TextField="ProjectName" ValueField="ProjectID" ClientIDMode="Predictable" EnableAnimations="False" EnableDropDownAsChild="False" EnableCustomValues="False" EnableCustomValueSelection="False"> <DropDownItemBinding TextField="ProjectID" ValueField="ProjectID" /><DropDownItemBinding TextField="ProjectName" ValueField="ProjectID"></DropDownItemBinding> </EditorControl> </ig:DropDownProvider>
Hi Mike and Jeff,
Just wanted to say this helped me too.
Thanks,
Luke
Mike,
Thanks, that worked great!
Jeff
Hello Jeff,
Thank you for your patience. I have modified the sample to demonstrate how you can achieve this behavior using the DropDownOpened event and the code mentioned in the forum thread.
Please let me know if you have any questions concerning this matter.
Sincerely,Mike P.Developer Support EngineerInfragistics, Inc.www.infragistics.com
Thank you for the update. It seems the DropDownOpened event is too soon for the text to be selected. I am currently working on creating a sample to demonstrate this behavior. I will continue working on this and will give you a progress update by the end of the day Friday.
I have tried the methods from the links you provided, but it still does not work. The event does get fired, but the text is still not selected.