BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
<div id="Grid" ej-grid e-datasource="data" e-editsettings-allowadding="true" e-editsettings-allowediting="true" e-toolbarsettings-showtoolbar=true e-toolbarsettings-toolbaritems="toolbaritems" e-allowpaging="true" e-actionbegin="action"> <div e-columns> <div e-column e-field="EmployeeID" e-headertext="Employee ID" e-textalign="right" e-width="90"></div> <div e-column e-field="LastName" e-headertext="Last Name" e-textalign="left" e-width="90"></div> <div e-column e-field="FirstName" e-headertext="FirstName" e-textalign="left" e-width="90"></div> <!--String edit--> <div e-column e-field="City" e-edittype="dropdownedit" e-datasource='dropdowndata' e-headertext="City" e-textalign="left" e-width="90"></div> <!--dropdown edit--> </div> <script> var obj = [ { "EmployeeID": 1, "LastName": "Davolio", "FirstName": "Nancy", "Title": "Sales Representative", "City": "Seattle", "Country": "USA" }, . . . ]; var textbox = [ { value: "Seattle", text: "Seattle" }, . . . ]; $("#sampleProperties").ejPropertiesPanel(); angular.module('listCtrl', ['ejangular']) .controller('PhoneListCtrl', function ($scope) { $scope.data = obj; //bind grid data . . . $scope.dropdowndata = textbox; //bind dropdown data }); |
For your convenience, we have added the sample in Syncfusion JS PlayGround and please find the sample from the following link: