I have a basic textbox defined as:
@Html.Kendo().TextBoxFor(m => m.myNumber).Format("{0:#,###}").HtmlAttributes(new { @readonly = "readonly", style = "width:150px;" })
After doing an ajax call I update the value via javascript:
$("#myNumber").val(data.myNumber);
However now the formatting is lost, there's no longer a comma thousands separator present. Is there a javascript function I need to call on $("#myNumber")
, like a rebind or refresh? For some reason telerik doesn't have any documentation for their textbox.