Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
345
Not able to edit Infragistic grid
posted

I have added reference Infragistics.Web.Mvc to my project.

Version: 4.14.1.2031

I added one grid to one project. but i am not able to edit my grid at run time.

Below is my code for that grid.

function SchedulerInfoGrid(datasource) {

$("#gridScheduler").igGrid({
PrimaryKey: "ContactID",
autoGenerateColumns: false,
width: "1024px",
renderCheckboxes: true,
aggregateTransactions: true,
updateUrl: '@Url.Content("~/Nomination/SaveContactsData")',
columns: [
{ headerText: "Nomination Employee ID", key: "NominatingEmployeeID", dataType: "number" },
{ headerText: "Contact Name", key: "ContactName", dataType: "string", width: "20%" },
{ headerText: "Company", key: "Company", dataType: "string", width: "20%" },
{ headerText: "Phone Number", key: "PhoneNumber", dataType: "string", width: "20%" },
{ headerText: "E-mail Address", key: "EmailAddress", dataType: "string", width: "30%" },
],
dataSource: datasource,
features: [
{
name: 'Hiding',
enableVerticalRendering: false,
columnSettings: [
{
columnKey: 'NominatingEmployeeID',
allowHiding: false,
hidden: true
},

]
},
{
name: "Selection",
mode: "row",
multipleSelection: false,
touchDragSelect: false, // this is true by default
multipleCellSelectOnClick: false
},
{
name: "Sorting",
type: "local"
},
{
name: 'Updating',
editmode:"row",
columnSettings:
[
{
columnKey: "ContactName",
editorType: 'string',
validation: true,
editorOptions: { required: true }
},
{
columnKey: "Company",
editorType: 'string',
validation: true,
editorOptions: { required: true }
},
{
columnKey: "PhoneNumber",
editorType: 'string',
validation: true
},
{
columnKey: "EmailAddress",
editorType: 'string',
validation: true,
editorOptions: { required: true }
}]
}
]

});

}

Please let me know what i am missing, why i am not able to edit grid.

Please let me know if you need any other information.

Thanks,

Poonam Chauhan