Hi,
how can I get all list elements of a XamDataGrid or XamDataPresenter which are still visible after filtering the list? Record grouping is enabled...
What's the easiest way?
Thanks for helping?
Gawain
It will depend on what you want to do. You could use the ViewableRecords which will only contain the records that are not collapsed (i.e. not the filtered out records assuming you are using the default FilterAction of Hide and have not set this to None or Disable). Note this will include special records like the filter record as well as group by records. This would also exclude any records that you have set the Visibility explicitly to collapsed.
If you just want the filtered in data records then you might use the datapresenter's RecordManager->GetFilteredInDataRecords. If you wanted a collection that you could bind to that contains the data items of the records that are still viewable then you could bind to/use the RecordManager's FilteredInDataItems. These just consider the record filter criteria.
HI,
I am just following up on this forum post.
Please let me know if you need further assistance.
Sincerely, Matt Developer Support Engineer
RecordManager is a readonly property so how can we bind to FilteredInDataItems on RecordManager to viewmodel.
Thanks,
Gohan
Hi, is it resolved?
How can we binding FilteredInDataItems?
I need to bind the filtered collection to a property in the view model. I use MVVM.
Greetings
Hello All,
There still does not exist a bind-able filtered in items collection on the XamDataGrid, but I have created a workaround to this issue for another forum thread, here.
Please let me know if you have any other questions or concerns on this matter.