We are using WebAssembly hosting model. Is sorting supported on client side for dynamic data. In the above example sorting is performed on the server. Is it possible to have it working on the client side.
Our situation is similar. Our models are dynamic which means at compile time we do not know the names/types of columns. All this is determined at runtime. We tried implementing client side sorting with dynamic data, but we get the following error.
No property or field 'PropertyName' exists in type 'TheTypeTheGridBindsTo' (at index 0)
Radzen grid expects the property (PropertyName) by which we are sorting to be available as a public property on the model class (TheTypeTheGridBindsTo) the grid is bound to.
After the data is loaded and rendered by the grid, we want the grid to be able to perform sorting and filtering on the client side just like how it works with static models. Syncfusion Grid supports this out of the box, just wondering if Radzen grid supports it too.
At the moment we are evaluating which component library to use. An answer or an example for sorting and filtering dynamic data on the client side will help us make this decision.
Thank you enchev. Appreciate the quick turnaround.
While what you have mentioned is an option, just want to quickly check if sorting, paging and filtering work out of the box without having to implement any custom code. The reason for this is, on a given page we have many dynamic models and grids. To reduce complexity and for ease of maintainability we want to avoid writing any custom code where we can.
With the Syncfusion Grid, Sorting, Paging and Filering work out of the box with our dynamic models, so just wondering if Radzen grid supports the same.
Just like Radzen grid, the following is the code we have for Syncfusion grid. As you can see no additional custom code is required for sorting to work.