This is a migrated thread and some comments may be shown as answers.

KendoNumericTextBox with grid edit templates

3 Answers 281 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
chris
Top achievements
Rank 1
chris asked on 13 Sep 2012, 05:27 PM
How do i wire up a custom grid edit template to have a united kingdom £ and curreny format 999.99 for example.



$('#test').width(250).kendoNumericTextBox({
    format: 'c2'
});

  <script id="popup_editor" type="text/x-kendo-template">
       <input id="test" />
</script>

3 Answers, 1 is accepted

Sort by
0
chris
Top achievements
Rank 1
answered on 13 Sep 2012, 05:51 PM
]
0
Simon
Top achievements
Rank 1
answered on 28 Sep 2012, 02:08 PM
Just add this after your other Kendo Script References.

<script src="/Scripts/kendo.culture.en-GB.min.js" type="text/javascript"></script>
<script type="text/javascript">
    kendo.culture("en-GB");
</script>
0
chris
Top achievements
Rank 1
answered on 28 Sep 2012, 08:41 PM
worked a treat , thankyou
Tags
NumericTextBox
Asked by
chris
Top achievements
Rank 1
Answers by
chris
Top achievements
Rank 1
Simon
Top achievements
Rank 1
Share this question
or