or
<div id="myform"> <input type="date" id="myDate" name="myDate" data-date-msg="Invalid date" data-bind="value: myField" /> <br /> <button id="show" type="button">Show selected</button> <button id="clear" type="button">Clear</button></div><script> $(document).ready(function () { var model = kendo.observable({ myField: new Date() }); $("#myDate").kendoDatePicker(); kendo.bind($("#myDate"), model); var validatable = $("#myform").kendoValidator().data("kendoValidator"); $("#show").click(function () { if (validatable.validate()) { alert('Selected: ' + model.get("myField")); } }); $("#clear").click(function () { model.set('myField', null); }); });</script>I certainly don't want to be tied to Microsoft platforms but I do think this tool or something like is definitely needed by UX people. It would be nice to swap out the MS-JS stuff and swap in the KendoUI stuff. (or dojo, or whatever).
I am going to try this out and report back on how it works for me (but then I come from the XAML world).
$(document).ready(function () { $("#grid").kendoGrid({ dataSource: { type: "json", transport: { contentType: "application/json; charset=utf-8", type: "POST" } }, pageSize: 10, serverPaging: true, serverFiltering: true, serverSorting: true }); });var dataSource = new kendo.data.DataSource({ transport: { read: { // the remote service url contentType: "application/json; charset=utf-8", type: "POST", dataType: "json } } });<div id="example" class="k-content"> <div id="organizer"> <ul id="panelbar"> <li class="k-state-active"> <span class="k-link k-state-selected">producto 1</span> <div id="example" class="k-content"> <div id="rowSelection" style="width:620px; height:300px"></div> <script> $(document).ready(function() { $("#rowSelection").kendoGrid({ dataSource: { data: FuncionDellenado(), }, selectable: "multiple", pageable: true, scrollable: true, navigatable: true, columns: [ { field: "FirstName", title: "productos", format: "{0:c}", type:"String",editable: false, width: "150px" }, { field: "City", title: "cantidad", editable:true, type:"Number", validation: { min: 1, required: true },width: "80px" }, {field: "BirthDate", title: "fecha de Entrega",type:"String",editable:true,width:"100px"}, { field: "Favoritos", template: "#= kendo.toString(\'<label \class=\"label_radio\"for=\"radio-01\">\<input name=\"sample-radio\" id=\"radio-01\" value=\"1\" type=\"radio\"/>\.\</label>\')##= kendo.toString(\'<label \class=\"label_radio\" for=\"radio-01\">\<input name=\"sample-radio\" id=\"radio-01\" value=\"1\" type=\"radio\" />\.\ </label>\') ##= kendo.toString(\'<label \class=\"label_radio\" for=\"radio-01\">\<input name=\"sample-radio\" id=\"radio-01\" value=\"1\" type=\"radio\" />\.\ </label>\') ##= kendo.toString(\'<label \class=\"label_radio\" for=\"radio-01\">\<input name=\"sample-radio\" id=\"radio-01\" value=\"1\" type=\"radio\" />\.\ </label>\') ##= kendo.toString(\'<label \class=\"label_radio\" for=\"radio-01\">\<input name=\"sample-radio\" id=\"radio-01\" value=\"1\" type=\"radio\" />\.\ </label>\') #", title: "Favoritos", width: "80px" }, { field: "añadir", template: "#= kendo.toString(\'<input type=IMAGE SRC=\"add.gif\"\id=\"añadir\" value=\"CODE\" />\') #", title: "añadir", width: "210px" } ], editable: true }); $('#añadir').click(function () { var sourcegrid = $('#rowSelection').data('kendoGrid'); //SOURCE GRID var destinationgrid = $('#Selection').data('kendoGrid'); // DESTINATION GRID sourcegrid.select().each(function () { var dataItem = sourcegrid.dataItem($(this)); var column = dataItem.FirstName; // whatever the name of the unique id for your data source destinationgrid.dataSource.add(dataItem); // DESTINATION DATASOURCE }); destinationgrid.refresh(); // MUST REFRESH THE DESTINATION GRID }); }); </script>