Hi Patrik,
Thanks for contacting Syncfusion Forums.
Query 1: Script error occurs while adding new record
We have validated your query at our end. We have considered it as a bug and logged report for the same. Thank you for taking time to report this issue "Script error occurs while using GUID and adding new record" and helping us improve our product. Fix for this issue will be included in our bi-weekly release which is expected to be rolled out in 2nd week of January 2021.
You can track the current status of your request, review the proposed resolution timeline and contact us for any further queries through this link,
Note: To view the above feedback, kindly login into your account.
Disclaimer: The feedback link is in review state and you can check it once it is validated
Query 2: Could not edit and updated the newly added record
For performing CRUD functionalities properly, we need to set one of the column as “Primary key” column. Please check the below help documentation,
In your sample, you have not set the primary key for any column. We suggest you to set IsPrimaryKey property to true for GUID column in order to resolve the reported issue.
Please check the below code snippet,
<SfTreeGrid DataSource="@TreeDataSource" IdMapping="Id" ParentIdMapping="ParentId" TreeColumnIndex="1"
Toolbar="@(new List<string>() {"Add", "Edit", "Delete", "Update", "Cancel"})">
IsPrimaryKey="true"
Width="80"
TextAlign="TextAlign.Left" />
------
</TreeGridColumns>
</SfTreeGrid>
|
NOTE: Field value should be unique value.
Kindly get back to us for further assistance.
Regards,
Padmavathy Kamalanathan