Editing DataGrid Values in RowTemplate

Hello,

I've copied & pasted the sample code from https://blazor.syncfusion.com/documentation/datagrid/row/#row-template-with-formatting and added options to edit:

```
<SfGrid DataSource="@Employees" Height="335px" ContextMenuItems="@(new List<object>() { "Edit" })">
    <GridEditSettings AllowEditing="true" Mode="EditMode.Dialog"></GridEditSettings>
...
```

(unnecessary code omitted for brevity)

However, upon right-clicking an entry and selecting the "Edit Record" option, a dialog appears with the following message "No records selected for edit operation". It seems like the row wasn't actually being selected since the row changes to grey color on selection. 

How should I go about resolving this? Thank you!

3 Replies 1 reply marked as answer

RS Renjith Singh Rajendran Syncfusion Team July 13, 2020 11:02 AM UTC

Hi Zhi,  
  
Greetings from Syncfusion support. 
  
We do not have Editing Support for Grid with RowTemplate. We have only limited features which are supported in RowTemplate.
 
 
Please find the below documentation to know the list of features which are supported in a Grid with RowTemplate. 
  
Please get back to us if you have further queries.   
  
Regards,  
Renjith Singh Rajendran 
 


Marked as answer

ZY Zhi Yuan July 14, 2020 12:30 PM UTC

Hello Renjith,

Thank you for your prompt reply! I've actually read that segment of the documentation before, but it didn't occur to me that `Editing` does not work as many of the examples listed such as:
  • Filtering
  • Paging
  • Sorting
  • Scrolling
  • Searching
  • Rtl
  • Export
are operations executed on the entire DataGrid. As such, I assumed that the row (not entire DataGrid) operations such as Edit, Delete etc are supported. It might be helpful to specify some of the operations that aren't supported to make the documentation clearer. 

Thanks again! 


RS Renjith Singh Rajendran Syncfusion Team July 15, 2020 10:15 AM UTC

Hi Zhi, 

Thanks for your suggestion. 

We will improve the documentation based on your suggestion and this will be refreshed in any of our upcoming releases. 

Please get back to us if you need further assistance. 

Regards, 
Renjith Singh Rajendran 


Loader.
Up arrow icon