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

Custom Cell editor - saving results in cell

2 Answers 25 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 18 May 2015, 12:26 PM

I'm trying to use a grid control with my own custom editor for one of the columns.

The idea is that when that cell is clicked a separate pop-up window (modal ) is launched that contains a whole load of buttons, clicking on one of those buttons will close the pop-up and put the result of the selection into the cell that was clicked. (see attached screenshot for a better idea)

I'm new to kendoUI and javascript in general, and while I've managed to cobble something together that returns the selected value from the pop-up (into a global variable) I'm a bit stumped as to how to then update the edited cell with the new value. I've tried holding a reference to the selected data item in the grid and setting values there as a result of the button press, but the further I go down this path of trying to force the values in the more I'm sure that I'm working completely against the kendo grid framework and wanted to see what recommendations people had for achieving this sort of functionality.

 

Thanks,

2 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 20 May 2015, 08:49 AM

Hello Mark,

You could implement such functionality using the column custom editor to create the window and then update the model instance when the window is closed. Here is a test page which demonstrates this in action (click on the UnitPrice column).

Regards,
Rosen
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Mark
Top achievements
Rank 1
answered on 20 May 2015, 12:30 PM

Thank you for the quick response. I've managed to get the data feeding through correctly now.

 

Mark

Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Mark
Top achievements
Rank 1
Share this question
or