BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi Artur,
Thanks for using Syncfusion products.
Query 1: “Could not edit in any EditMode”
Please ensure that you enabled the “isPrimaryKey” property of Grid Columns. Please refer the following KB link.
http://www.syncfusion.com/kb/2675/cant-edit-any-row-except-the-first-row-in-grid
Also please refer the following documentation for further details on Grid Editing.
http://help.syncfusion.com/ug/js/documents/editing2.htm
If you still face issues with Editing then please get back to us with the following information
Please explain in detail about the issue you are facing while editing
Grid view page code snippets
Essential studio product version which you have installed in your machine.
Query 2: “script error throws in Batch Edit Mode”
We are sorry to let you know that we are unable to reproduce the issue in our end. We have created a simple sample and the same can be downloaded from below link.
Sample: http://www.syncfusion.com/downloads/support/forum/118606/EJGrid1446986453.zip
Please replicate the issue in the above sample and send us back or send the information which we asked in the above Query so that we could provide you a response as early as possible.
Information provided would be great helpful for us to resolve the issue.
Please let us know if you have any queries.
Regards,
Alan Sangeeth S
Hi Arthur,
We deeply regret to let you know that we are unable to reproduce the issue in our end. We have created a sample in Asp.Net with the video demonstration of working sample and the same can be downloaded from below link.
Sample: http://www.syncfusion.com/downloads/support/forum/118606/Sample437231906.zip
Video: http://www.syncfusion.com/downloads/support/forum/118606/batch1361821908.zip
In the screenshot you have shared, you have just shown the code snippets of creating new instance of Grid and did not show the code snippets where you define properties of Grid.
So please share the code snippets where you define the properties of Grid and the stack-trace of the script error which would be helpful for us to resolve the issue.
If possible, please replicate the issue in the above sample and send us back.
Also please ensure that you have referred the necessary scripts and CSS as mentioned in below link
http://help.syncfusion.com/ug/js/documents/addingthecssandscrip1.htm
Please let us know if you have any queries.
Regards,
Alan Sangeeth S
Hi Artur,
Thanks for the update.
We suspect that you have given null value as Grid Datasource and set “DropDown” EditType for one of the Grid columns which may be the cause of the issue.
For your information, by default, for “DropDown” EditType columns we populate list for DropDown Control’s datasource from Grid datasource. And as you have given null value as Grid datasource, the datasource for DropDown Control could not be generated and so this issue occurs.
When we have Grid column as Dropdown Edit, it is necessary that Grid datasource should not be empty at initial load.
If you are in need to set Dropdown Edit for a Grid column with Grid datasource as ‘null’ then we suggest you to use “DataSource” property of Grid Columns to bind external dataSource for the corresponding Column Dropdown.
Please refer the following code snippets.
private List<object> customers = new List<object>(); var grid = new Grid(); grid.Columns.Add(new Syncfusion.JavaScript.Models.Column() { HeaderText = "Order ID", IsPrimaryKey = true, Field = "OrderID", Width = 100 }); grid.Columns.Add(new Syncfusion.JavaScript.Models.Column() { HeaderText = "Customer ID", Field = "CustomerID", EditType = EditingType.Dropdown, DataSource = customers, Width = 100, }); |
For your convenience we have created a sample and the same can be downloaded from below link.
Sample: http://www.syncfusion.com/downloads/support/forum/118606/Sample-397274717.zip
Please let us know if you have any queries.
Regards,
Alan Sangeeth S
Hi Artur,
Thanks for the update.
We are happy to hear that your issues has been resolved.
Please let us know if you have any queries.
Regards,
Alan Sangeeth S