Switch ItemsSource and still have a working SearchPanel

5 posts, 1 answers
  1. Peter
    Peter avatar
    6 posts
    Member since:
    Aug 2013

    Posted 01 Feb Link to this post

    Hi Telerik,

    I'm having trouble to keep the SearchPanel (the new feature from the latest 2016 release) working after changing the ItemsSource to a different collection (List<Object> where Object is a class with properties).

    Before I assign a new ItemSource, I first assign null to the ItemsSource. I also tried to clear the FilterDescriptors (GridView.FilterDescriptors.Clear()), but I never get the SearchPanel working properly after changing the ItemsSource. Both highlithing and filyering seems to be broken after changing the ItemsSource.

    Could you please help me to get this working?

    Kind regards,

    Peter Rakké

  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 02 Feb Link to this post

    Hi Peter,

    It seems that the issue you encountered was resolved with a fix I made yesterday. It is not fully tested and so, not yet available in the internal builds. Could you take a look at the project attached which uses locally build binaries, just to make sure that your scenario is fixed as well?
    Thanks in advance. 


    Regards,
    Maya
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Peter
    Peter avatar
    6 posts
    Member since:
    Aug 2013

    Posted 02 Feb in reply to Maya Link to this post

    Hi Maya,

    Thanks for your response.

    It works, as long as I first clear the search text before changing the ItemsSource. If I switch the ItemsSource with a search text still in the locator, I first have to clear the search text and then I can enter a search text which will filter and highlight the content.
    So definitely an improvement.

    I'm using IsSearchingDeferred="True" btw.

    Kind regards,
    Peter

  5. Answer
    Maya
    Admin
    Maya avatar
    4062 posts

    Posted 03 Feb Link to this post

    Hi Peter,

    I attached an updated project with locally built binaries. Could you please give a try and let me know whether corresponds to your requirements?

    Regards,
    Maya
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Peter
    Peter avatar
    6 posts
    Member since:
    Aug 2013

    Posted 03 Feb in reply to Maya Link to this post

    Hi Maya,

    Nice work, with these binaries it works exactly as I would expect it to work.

    I'm looking forward to next release, so I can integrate it without the splash screen :-)

    Kind regards,

    Peter

Back to Top
UI for WPF is Visual Studio 2017 Ready