BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
$scope.columns = [ { field: "EmployeeID", headerText: 'Employee ID', isPrimaryKey: true, textAlign: ej.TextAlign.Right, width: 115 }, //enable isPrimaryKey property to edit the rows { field: "FirstName", headerText: 'First Name', textAlign: ej.TextAlign.Left, width: 150, editType: ej.Grid.EditingType.Dropdown },
]
|
<div id="targetsGrid" ej-grid e-datasource="data" e-columns="columns" e-actioncomplete="actioncomplete" e-editsettings="edit" e-toolbarsettings="tool" ></div>
$scope.actioncomplete = function (args) { if(args.requestType == "save") alert("EmployeeID: " + args.data["EmployeeID"] + " FirstName: " + args.data["FirstName"]) } |
Hi Rakesh,
We are sorry that we are unable to understand your requirement clearly. So please share the following details,
1. When do you want to save the dropdown data to Grid?
2. Are you using any adaptor (Url Adaptor, Remote save, WebApi Adaptor) in Grid?
3. To render the Grid with dropdown data and access without Edit option, use Column template in Grid. But the template column will refresh at every Grid Action. So Editing will not supported for template columns. Please refer the following Demo,
http://js.syncfusion.com/demos/web/#!/azure/grid/columns/columntemplate
4. To use an Edit option at single click, use the Batch Editing in Grid and refer to the online demo link,
http://js.syncfusion.com/demos/web/#!/azure/grid/Editing/BatchEditing
You can also use the command columns in Grid and refer to the following link,
http://js.syncfusion.com/demos/web/#!/azure/grid/editing/commandcolumn
Please refer to the above provided links. If your requirement is different, please share more details which will be helpful to analyze the requirement and provide better solution at the earliest.
Regards,
Balaji Marimuthu