I am not able to edit in a kendo grid, which column have cell property,EnterEdit event is not trigerring

1 Answer 220 Views
Grid
Arun
Top achievements
Rank 1
Iron
Arun asked on 05 Aug 2021, 10:42 AM | edited on 05 Aug 2021, 10:43 AM

I am not able to edit in kendo react  grid, which column have cell property.  EnterEdit  event is not triggering.

<GridColumn
  field='gender'
   title='gender'
  width='110px;'
  filter='dropdown'
  cell={this.loaddgenderdropdown}
    />

loaddgenderdropdown = (props) => {
        const value = props.dataItem.gender

        const dropDownData = [
            { text: "M", value: true },
            { text: "F", value: false },
        ]
        if (props.dataItem.inEdit) {
            
        
        return (
            <td>
                <ComboBox
                    style={{ width: "70px", font: "inherit" }}
                    defaultValue={props.dataItem[props.field].text}
                    data={dropDownData.map((a) => {
                        return a.text
                    })}
                   
                />
            </td>
        )
    }
}

 

Please help me to resolve this issue.

 

 

Thanks,

Arun

Arun
Top achievements
Rank 1
Iron
commented on 06 Aug 2021, 10:07 AM

Great!!! it works fine

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 05 Aug 2021, 12:33 PM

Hello, Arun,

I assume that the EnterEdit is attached using cellRender. If this is the case, the custom cell should have its own onClick over the td that will call the EnterEdit.

A similar case is discussed in the comments of this forum thread:

https://www.telerik.com/forums/reference-to-grid-cell-in-cellrender-function

Regards,
Stefan
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
Arun
Top achievements
Rank 1
Iron
Answers by
Stefan
Telerik team
Share this question
or