We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Edit cell of dynamic column

Thread ID:

Created:

Updated:

Platform:

Replies:

127885 Dec 15,2016 02:52 PM UTC Dec 16,2016 10:12 AM UTC JavaScript 1
loading
Tags: ejGrid
indrani Gajjarapu
Asked On December 15, 2016 02:52 PM UTC

Hi,

I have created a  grid column dynamically using the following code.

gridobj.columns([{ headerText: "Edit Grade", editType: ej.Grid.EditingType.Dropdown, editParams: { targetID: "AWLgradesList" } }]);
And, in recordClick event of the grid, i want to edit the cell.

Record Click function:
function editGrade(args)
        {
            var gridobj = $("#AWLGrid").data("ejGrid");
            if (args.cellIndex == 5)
            {
                gridobj.editCell(args.rowIndex, "Edit Grade");
            }
            
        }
Can you give me a workaround for this.

Ragavee U S [Syncfusion]
Replied On December 16, 2016 10:12 AM UTC

Hi Indrani, 

From your code examples, we found that you have dynamically bound a column to the Grid. As, the newly added column doesn’t have the field property defined, it is not possible to edit the column value. 


The fieldname should be passed as a parameter for the column. 

Regards, 
Ragavee U S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;