This is a migrated thread and some comments may be shown as answers.

Switch ItemsSource and still have a working SearchPanel

4 Answers 48 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 01 Feb 2016, 06:52 PM

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é

4 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 02 Feb 2016, 11:36 AM
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
0
Peter
Top achievements
Rank 1
answered on 02 Feb 2016, 07:18 PM

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

0
Accepted
Maya
Telerik team
answered on 03 Feb 2016, 04:55 PM
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
0
Peter
Top achievements
Rank 1
answered on 03 Feb 2016, 09:24 PM

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

Tags
GridView
Asked by
Peter
Top achievements
Rank 1
Answers by
Maya
Telerik team
Peter
Top achievements
Rank 1
Share this question
or