kendo-ui-core
kendo-ui-core copied to clipboard
Allow editing of sorted databound Spreadsheet
Bug report
http://dojo.telerik.com/oHeWi/6
Reproduction of the problem
- Check line 13 -> (ProductId: 12, ProductName: Queso Manchego la Pastora)
- Once the spreadsheet is loaded, Sort range Z to A in column B (ProductName)
- Change the ProductName of the line 13 (currently -> ProductId: 35, ProductName: Steeleye Stout)
- Click on button "Save Changes"
Current behavior
Changes have been applied to ProductId 12 instead of ProductId 35, so now ProductId 12, which had ProductName: Queso Manchego la Pastora in step 0, has changed to the ProductName you introduced for ProductId 35
Expected/desired behavior
Changes to be applied to Product with ID 35.
Environment
- Kendo UI version: 2018.3.1017
- Browser: all
The current implementation of the Spreadsheet data-binding relies on the indexes of the items in the widget. Therefore, altering their position (by applying some sort rule) will result in the observed, which is considered a not supported scenario.
That is why, I have converted the current issue from Bug to Enhancement suggestion to provide support for sorting when editing data-bound Spreadsheet Sheet.
Currently Unsupported Scenario - Feedback item.