e.detailsElement.find("#weatherGrid").ejGrid({
dataSource: data.Weather,
editSettings: {
allowEditing: true,
allowAdding: true,
allowDeleting: true,
editMode: ej.Grid.EditMode.Normal,
},
toolbarSettings: { showToolbar: true, toolbarItems: [ej.Grid.ToolBarItems.Add ,ej.Grid.ToolBarItems.Update, ej.Grid.ToolBarItems.Cancel, ej.Grid.ToolBarItems.Delete] },
columns: [
{ field: "WeatherId", headerText: "Id", visible: false },
{ field: "ProjectVisionId", headerText: "Project Id", visible: false },
{ field: "WeatherMain", headerText: "Weather", allowEditing: false },
{ field: "WeatherDescription", headerText: "Description" },
{ field: "Temperature", headerText: "Temperature", editType: ej.Grid.EditingType.Numeric },
{ field: "Humidity", headerText: "Humidity", allowEditing: false },
{ field: "WindSpeed", headerText: "Wind Speed", allowEditing: false },
{ field: "WindDirection", headerText: "Wind Direction", allowEditing: false },
{ field: "UserInput", headerText: "User Input", editType: ej.Grid.EditingType.Boolean, type: "boolean", allowEditing: false, allowAdding: false },
{ field: "DateTime", headerText: "Time", format: "{0:hh:mm tt}" }
]
});
When i use the code above it limits the Editing of the fields that i don't want to be edited, but i am in the need of limiting what fields can be added by the user. So the same fields i have "allowEditing : false" i don't want to be in the allowAdding process.
Scripts and Css: C:\Program Files (x86)\Syncfusion\Essential Studio\XX.X.X.XX\JavaScript\assets
Dlls: C:\Program Files (x86)\Syncfusion\Essential Studio\ XX.X.X.XX \Assemblies
Here XX.X.X.XX denotes the product version(13.3.0.12).
And also after upgrading please ensure to clear the bin folder and browser cache to avoid accidental reference of the old assemblies and scripts/CSS.
Regards,
Seeni Sakthi Kumar S.