or
$(document).ready(
function
() {
var
tipaiindeksai =
new
kendo.data.DataSource({
transport: {
read: {
url:
"http://localhost:11336/Mobile/GetTipaiIrIndeksai"
,
dataType:
"jsonp"
,
jsonp:
"d"
//cache: false,
//jsonpCallback: "callback"
}
},
schema: {
data:
""
}
});
var
ats = tipaiindeksai.read();
HTTP/1.1 200 OK
Server: ASP.NET Development Server/10.0.0.0
Date: Wed, 23 May 2012 08:35:01 GMT
X-AspNet-Version: 4.0.30319
X-AspNetMvc-Version: 4.0
Cache-Control: private
Content-Type: application/json; charset=utf-8
Content-Length: 939
Connection: Close
jQuery1710758081869687885_1337762101342([{
"ID"
:0,
"pav"
:
"asd"
,
"indeksas"
:141.8},{
"ID"
:10,
"pav"
:
"asdasd"
,
"indeksas"
:101.7}
])
Code attached.
$(
"#txtPrice"
).kendoNumericTextBox({
decimals: 5,
step: 0.00001,
format:
'#.00000'
,
min: 0
});
var
firstPrice = 0.89889;
var
numeric = $(
"#txtPrice"
).data(
"kendoNumericTextBox"
);
numeric.bind(
"change"
,
function
(e) {
if
(e.sender._old == 0)
e.sender._value = firstPrice;
});
numeric.bind(
"spin"
,
function
(e) {
if
(e.sender._old == 0)
e.sender._value = firstPrice;
});
<asp:TextBox ID=
"txtPrice"
runat=
"server"
ClientIDMode=
"Static"
Text=
"0"
></asp:TextBox>