This question is locked. New answers and comments are not allowed.
I am using the Numeric Text Box inside the Grid cell. It works perfectly in Server mode:
columns.Template(oi =>
{%>
<%=
Html.Telerik().NumericTextBox()
.AssetKey("ReturnQuantity_" + oi.OrderItemId)
.DecimalDigits(2)
.EmptyMessage(Server.HtmlDecode(Html.T("QuantityToReturnValidationMsg")))
.MinValue(0)
.MaxValue(oi.QuantityAsDouble)
.IncrementStep(oi.QuantityIncrementalStep)
.Value(oi.QuantityAsDouble)
.Name("QuantityToReturn_" + oi.OrderItemId)
.InputHtmlAttributes(new { style = "width:60px" })
.ToHtmlString()
%>
<%
})
.Title(Server.HtmlDecode(Html.T("QuantityEdit"))).Width(25).HtmlAttributes(
new { style = "text-align:center" })
However, as I am using also Ajax grid binding with paging, sorting, etc... I need the same thing but in ClientTemplate mode.
I tried a lot of combination, but simple I can't force NumbericTextBox to work in that mode. The main problem is that I can't use Double as data type but its necessary for MinValue and MaxValue as well as for Value.
Any suggestion?
columns.Template(oi =>
{%>
<%=
Html.Telerik().NumericTextBox()
.AssetKey("ReturnQuantity_" + oi.OrderItemId)
.DecimalDigits(2)
.EmptyMessage(Server.HtmlDecode(Html.T("QuantityToReturnValidationMsg")))
.MinValue(0)
.MaxValue(oi.QuantityAsDouble)
.IncrementStep(oi.QuantityIncrementalStep)
.Value(oi.QuantityAsDouble)
.Name("QuantityToReturn_" + oi.OrderItemId)
.InputHtmlAttributes(new { style = "width:60px" })
.ToHtmlString()
%>
<%
})
.Title(Server.HtmlDecode(Html.T("QuantityEdit"))).Width(25).HtmlAttributes(
new { style = "text-align:center" })
However, as I am using also Ajax grid binding with paging, sorting, etc... I need the same thing but in ClientTemplate mode.
I tried a lot of combination, but simple I can't force NumbericTextBox to work in that mode. The main problem is that I can't use Double as data type but its necessary for MinValue and MaxValue as well as for Value.
Any suggestion?