HI,
I'm new to using mvc, kendo & even javascript. I basically need help on how to send data from a button which will be used to bind with a Kendo Editor. I followed the Kendo example for opening a window using jquery but now i want to pass a value (id perhaps)
My code:
I'm new to using mvc, kendo & even javascript. I basically need help on how to send data from a button which will be used to bind with a Kendo Editor. I followed the Kendo example for opening a window using jquery but now i want to pass a value (id perhaps)
My code:
@model IEnumerable<Scholarship2013.Models.AwardCart><table id="awardSearchResultGrid" style="width:100%"> <thead> <tr> <th data-field="awardName">Award Name</th> <th data-field="description">Award Description</th> <th>Essay</th> </tr> </thead> <tbody> @if (Model!=null) { foreach (var awc in Model.Where(a => a.Award.IsEssayRequired == true)) { <tr> <td>@awc.Award.AwardName</td> <td>@awc.Award.AwardDescription</td> <td><span id="undo" class="k-button" onclick="ShowAward(@awc.AwardID)">Add Essay</span></td> </tr> } } </tbody></table>@(Html.Kendo().Window().Name("window") .Title("Essay for ") .Content(@<text> <div> @Html.Kendo().EditorFor("Value of ID here").Name("Test").Value("test") </div> </text>) .Visible(false) .Modal(true) .Draggable(true) .Width(1024) )<script> function onClose() { $("#undo").show(); } $(document).ready(function() { $("#undo").bind("click", function() { $("#window").data("kendoWindow").open(); }); });</script>