or
<script type="text/javascript"> $(document).ready(function () { $("#reply").kendoEditor(); });</script><textarea id="reply" rows="10" cols="30" style="width:740px; height="440px"> This is a test to see if the script shows up is the editor. </textarea> <button> Save</button>$(document).ready(function() { var dataSource = new kendo.data.DataSource({ pageSize: 2, transport: { read: "dataSourceJson.php" }, schema: { data: "data" }, error: function(e) { // handle event alert("error"); }, change: function(e) { // handle event //alert("change"); } }); $("#grid").kendoGrid({ dataSource: dataSource, pageable: true, groupable: true, scrollable: true, sortable: true, pageable: true }); $("#search").click(function() { var Grid = $("#grid").data("kendoGrid"); var data = Grid.dataSource_data; dataSource.read(); }); });<?php$array = Array(Array("from_user" => "daniel","from_user_id" => "1"), Array("from_user" => "daniel","from_user_id" => "1"), Array("from_user" => "daniel","from_user_id" => "1"), Array("from_user" => "daniel","from_user_id" => "1"), Array("from_user" => "daniel","from_user_id" => "1"), Array("from_user" => "daniel","from_user_id" => "1"));header('Content-Type: application/json; charset=iso-8859-1');echo "{\"data\":" .json_encode($array). "}";?>$(document).ready(function () { function onChange() { $("#weather-container").html(kendo.render(template, this.view())); } // create a template using the above definition var template = kendo.template($("#dashwidget-weather-template").html()); var dataSource = new kendo.data.DataSource({ transport: { // specify the XML file to read. The same as read: { url: "books.xml" } read: { dateType: "xml" } }, schema: { // specify the the schema is XML type: "xml", // the XML element which represents a single data record data: "/weather/current_conditions", // define the model - the object which will represent a single data record model: { fields: { condition: "condition/text()", temp: "temp_c/text()" } } }, change: onChange }); dataSource.read();});var splitter = $("#splitter").data("kendoSplitter"); // expand the pane with ID, pane1 splitter.expand("#mainContent"); I get a "splitter is undefined" error. Here is the code...
<div align="center"> <div id="splitter" style="border-color:white; margin:1px; width:80%" align="center"> <div id="menu">Area 1</div> <div id="mainContent">Area 2</div> <div id="rightCol">Area 3</div> </div> </div>
<a href="#" onclick="test()">Expand</a>
$("#splitter").kendoSplitter({ panes: [ { size: "100px", collapsible: false, min: "100px", max: "110px", resizable: false }, { size: "700px", min: "300px", contentUrl: "../default.aspx"}, { size: "100px", collapsible: false, min: "100px", max: "110px", resizable: false } ], orientation: "horizontal" })
function test() { var splitter = $("#splitter").data("kendoSplitter"); // expand the pane with ID, pane1 splitter.expand("#mainContent"); }
$(
"#toDate").kendoDatePicker({
value:
new Date(),
min:
new Date(1950, 0 ,1),
max:
new Date(2049,11,31)
})
Here by default it is giving current date for example 4/27/2010, but I wanted it to diplsay by + 2 days i.e 4/29/2012.