We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

GridDataControl access Filtered Rows <-> MVVM

Hello,

When using the excel like filter in the GridDataControl, is there any chance to access the current visible rows via MVVM?

In the ItemsSource there are still all rows contained.

Thanks a lot

4 Replies

SA Santhosh March 28, 2014 01:41 PM UTC

Hi Martin,

You can get the current visible rows by using the below code.

Code [C#]:

SyncGrid.Model.View.Records;

Santhosh 




SM Saravanan M Syncfusion Team April 8, 2014 12:15 PM UTC

Hi Martin,

 Thank you for interesting in Syncfusion products,

 We have analyzed your query. You can get the current visible rows by using Records API. Please refer the below code snippet.

 Code snippet[C#]:

var data= this.syncgrid.Model.View.Records;

 

 Please let us know if you have any queries,

 

Regards,

Saravanan.M



MB Martin Buchberger April 10, 2014 10:58 AM UTC

Is it also possible to access the Visible Rows via Binding in the ViewModel?


SM Saravanan M Syncfusion Team April 15, 2014 10:59 PM UTC

Hi Martin,

 We are sorry about the inconvenience caused,

 We could not bind the visible rows in view model. You can access the filtered records using view.Records API as we mentioned in our previous update. Please let us know if you have any queries.

 Regards,

Saravanan.M


Loader.
Live Chat Icon For mobile
Up arrow icon