or
Trying to add a % sign to a number in a Kendo NumericTextBox. You suggest escaping the % sign as such:
$("#numeric").kendoNumericTextBox({
format: "# \%"
});
but when I give it a value of 3, it still gives me 300%!
From your documentation:
"%" - percentage placeholder Multiplies a number by 100 and inserts a localized percentage symbol in the result string. Note: '%' symbol is interpreted as a format specifier in the format string. If you need to prevent this, you will need to precede the '%' symbol with a backslash -
'kendo.toString(12, "# \%")'-> 12 % (en-us).


$('.timePicker').kendoTimePicker({ parseFormats: ["HH:mm"]});@{ var dbRenewal = Database.Open("RenewalDataConnection"); var sql = "SELECT donorID, title, firstname, middlename, lastname, address, city, state ,zipcode, homephone, workphone, cellphone, email FROM donor"; var data = dbRenewal.Query(sql); var json = Json.Encode(data); Response.Write(json); }
[{"donorID":152,"title":"title","firstname":"firstname","middlename":"Middlename","lastname":"lastname","address":"100 Main Street","city":"Los Angeles","state":"CA","zipcode":"90067","homephone":"3105528809","workphone":"3105528809","cellphone":"3105528809","email":null},{"donorID":157,"title":"Rabbi","firstname":"Yehuda","middlename":"Lein","lastname":"Smith","address":"100 Main Street","city":"Los Angeles","state":"CA","zipcode":"91678","homephone":"3105528809","workphone":"3105528809","cellphone":"3105528809","email":null}]