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

Using marionette ItemView + event handling in Grid Cell

1 Answer 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Yair
Top achievements
Rank 1
Yair asked on 21 Apr 2015, 12:00 PM

Hi

I am aware that you can pass a template attribute that contains the cell html to the grid or use your special templating syntax.

Is it possible to return a DOM object for a cell template so events such as onClick will work correctly?

Basically I'm trying to get a full function of marionette itemview as a cell element and since only html can be returned (from what I figured out) the events dont register.

At the moment I'm rendering a cell this way:

column.template = (dataItem) => new SomeItemView(model: @_buildModelFromItemData(dataItem)).render().$el.html()

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 23 Apr 2015, 06:38 AM
Hi,

The template function should return an HTML string in order for the grid to use it. Returning a DOM element isn't supported.

Regards,
Atanas Korchev
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
Yair
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or