This is a migrated thread and some comments may be shown as answers.

[Solved] Explaination on cell click

1 Answer 356 Views
Grid
This is a migrated thread and some comments may be shown as answers.
CS
Top achievements
Rank 2
CS asked on 23 Sep 2014, 11:26 AM
I was wondering what exactly happens if I click a cell. I currently have the problem that objects are mapped to cells and the show one property when inactive and a different one when you click on them to edit them.
Where can I define the value that is visible on edit? Can I define that in the datasource or the grid?

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 25 Sep 2014, 07:09 AM
Hello Stefan,

When the user clicks on a cell it is opened for editing. The same can be achieved via editCell method of the Grid.

You may hook up to the edit event of the Grid which will fire when the cell is opened and examine the current model state (e.model) and editor container (e.container).
Generally speaking you may use the edit event or the columns.editor configuration property to customize the rendered editor, I am not sure what exactly you would like to achieve though. Could you please provide a small example (Dojo test page or code snippets) that demonstrate your current implementation?

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
CS
Top achievements
Rank 2
Answers by
Alexander Valchev
Telerik team
Share this question
or