I have a special case where it is required to find a row number automatically and later on save it to respective binded property.
I have gone through some of examples to find row indexes but can you please guide me how to set them to respective fields.
1 Answer, 1 is accepted
answered on 13 Mar 2020, 08:14 AM
There isn't an out-of-the-box way to find the index of a row and bind it to a model. That said, you can check out the Row Number RadGridView example from our demos. It demonstrates how you can use the IndexOf method of the Items collection to find the index for a given item. In order to transfer the index to the model, you can use the "dataItem" parameter received in the CreateCellElement method of the custom column, which will be model.
I hope you find this helpful. Let me know, if I can be of any further assistance.
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.