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 row
posted

Hi,

I am not able to edit grid row.  However i can add new row  to the grid.

Below is my code:

 $("#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',                  
                    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 help me in finding out why i am not able to edit grid row.

Please let me know if you need any other information.

Thanks,

Poonam

Parents Reply Children