No Items displayed in the dropdown with new custom style

5 posts, 0 answers
  1. Saravanan
    Saravanan avatar
    5 posts
    Member since:
    Sep 2013

    Posted 29 Sep 2013 Link to this post

    I'v setup applied a new custom style to a RadAutoCompleteBox in order to change its visual design. I would also like to customize its RadAutoCompleteBoxItems (e.g. change the Background and foreground , Border etc). How can this be achieved?  But if I'm searching for some items, no entries are shown in the drop down.

    Please download the source file from the following url : www.sharangrafix.in/openautofocus/OpenOnFocusAutoComplete.zip

    Thanks,
    Sharan
  2. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 02 Oct 2013 Link to this post

    Hello Saravanan,

    Looks like some part from your custom style is missing, please make sure everything from the default style is present. Besides, you can customize the items in the DropDown through the DropDownItemTemplate property of the AutoCompleteBox. Please check the Customizing the DropDownItemTemplate article from our online help documentation for more details.

    Hope this will help you.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Saravanan
    Saravanan avatar
    5 posts
    Member since:
    Sep 2013

    Posted 03 Oct 2013 Link to this post

    Hi,

    Thanks for the reply, I customized my DropDownItenTemplate based on your link, still no use, If you can download my source file and  you will know what I am trying to say, no problem with the DropDownItenTemplate, Problem when you search something in RadAutoCompleteBox  it is not bringing up the DropDownItenTemplate.  when you remove the style property from the RadAutoCompleteBox everything is fine.

    Please see my attachments below.

    Please download the source file from the following url :
    www.sharangrafix.in/openautofocus/OpenOnFocusAutoComplete.zip


    regards,
    Saravanan
  5. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 04 Oct 2013 Link to this post

    Hello Saravanan,

    The dropdown is missing because the element that holds the items doesn't have its ItemsSource set. This is the ListBox named PART_ListBox in the RadAutoCompleteBox ControlTemplate you just need to set the ItemsSource the following way and it will start working as expected:

    ItemsSource="{TemplateBinding FilteredItems}"

    Hope this will help you.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  6. Saravanan
    Saravanan avatar
    5 posts
    Member since:
    Sep 2013

    Posted 06 Oct 2013 Link to this post

    Hi,

    Thanks a lot, it works.


    regards,
    saravanan
Back to Top
UI for WPF is Visual Studio 2017 Ready