I'm trying something very similar like this example which I found online and is working:
http://jsfiddle.net/OnaBai/S7K4r/
The only difference is that I use the "hashtag notation" for the template. In the following example, I only changed one minor thing in the template (I added hashtags around the first label: #:text1#):
#:text1#
http://jsfiddle.net/w5P9U/4/
The problem here is that an exception "Uncaught ReferenceError: text1 is not defined" is thrown when initializing the window. This is reasonable, as the window isn't bound to any dataItem at that moment, although I don't understand why a similar exception isn't thrown when using the "data-bind" syntax.
Anyways, I tried a lot of different things to avoid this to no avail.
E.g.: Not setting the template at initialization, but setting it after the dataItem has been bound:
kendoWindow.content({
template: $("#record-jsp").html()
});
also
kendoWindow.content({
data: record,
template: $("#record-jsp").html()
});
didn't work.
Is it possible to use the hashtag notation in this scenario?
http://jsfiddle.net/OnaBai/S7K4r/
The only difference is that I use the "hashtag notation" for the template. In the following example, I only changed one minor thing in the template (I added hashtags around the first label: #:text1#):
#:text1#
http://jsfiddle.net/w5P9U/4/
The problem here is that an exception "Uncaught ReferenceError: text1 is not defined" is thrown when initializing the window. This is reasonable, as the window isn't bound to any dataItem at that moment, although I don't understand why a similar exception isn't thrown when using the "data-bind" syntax.
Anyways, I tried a lot of different things to avoid this to no avail.
E.g.: Not setting the template at initialization, but setting it after the dataItem has been bound:
kendoWindow.content({
template: $("#record-jsp").html()
});
also
kendoWindow.content({
data: record,
template: $("#record-jsp").html()
});
didn't work.
Is it possible to use the hashtag notation in this scenario?