Grid - add and delete row

1 Answer 589 Views
DataGrid
Daniel
Top achievements
Rank 1
Silver
Bronze
Daniel asked on 15 Mar 2022, 09:53 AM | edited on 15 Mar 2022, 09:54 AM

Hi,

 I want sample code of RadDataGrid with option to add a new record and delete record.

The new record template should include RadTabView.

Thanks,

 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 15 Mar 2022, 01:59 PM

Hi Daniel,

DataGrid exposes ItemsSource property which can be bound/set to an ObservableCollection<Type>, so when you add and delete items from that collection, the DataGrid will be updated.

What UI you're going to use to create the item depends on the concrete app requirements. You can check an example of DataGrid bound to an ObservableCollection in our documentation here: https://docs.telerik.com/devtools/maui/controls/datagrid/selection#example.

I hope this will help you get started with the implementation.

Regards,
Yana
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 15 Mar 2022, 02:27 PM

HorizontalStackLayout
Tags
DataGrid
Asked by
Daniel
Top achievements
Rank 1
Silver
Bronze
Answers by
Yana
Telerik team
Share this question
or