Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
10240
how to use the AutoComplete feature with a dropdown provider when the dropdown DisplayMode is set to dropdownlist
posted

Hello,

I have a dropdown provider in a webdatagrid. I want to use the dropdown provider as a non-editable list but also use the TypeAhead feature. I am using 'DisplayMode=DropDownlist.

Thanks,

 

 

Parents
No Data
Reply
  • 40
    posted

    Hi,

    I am trying to find a good solution for type ahead for the webdatagrid dropdownprovider as well.  I have used the suggested solution stated here by setting DisplayMode="DropDown", EnableCustomValues="false" and EnableAutoCompleteFirstMatch="true".  This sort of works.  I wouldn't say that it completely works.

    I have been able to successfully type faster than the AutoComplete finds values (testing with 50 states sorted alphabetically and about a handful of other values at the beginning and end of the dropdown list).  When clicking outside of the field after "fd" is typed for example the grid will retain "fd" in the cell.  This is not good, b/c the grid also sends this value back to the server on postbacks and retains it on a reload.  Really, in an optimal implementation the AutoComplete wouldn't let any keys be type that weren't in valid as the next value.

    Can someone please provide clarification or is a hack needed to prevent occurrances of this nature?

    Thanks, Pat.

Children
No Data