I want that we have an double type column in my view modal class and I want that the grid should sort this column based on it's double value but When i specify an double type column in my ViewModal class the grid fails to load giving me this error
cannot find file ~/Scripts/telerik.textbox.js , how can I resolve this issue or how can I achieve this
Here is some code below which might help
Index.aspx:
<%
= Html.Telerik().Grid<WebPostage.Controllers.RefundViewModel>()
.Name(
"Grid")
.Columns(columns =>
{
columns.Add(o => o.TransactionDate).Sortable(
true).Title("Transaction Date(GMT)").Width(180);
columns.Add(o => o.Details).Sortable(
false).Title("Details").Width(60);
columns.Add(o => o.Recipient).Sortable(
true).Title("Recipient").Width(350);
columns.Add(o => o.Account).Sortable(
true).Title("Account").Width(100);
columns.Add(o => o.Cost).Sortable(
true).Title("Cost").Width(70);
columns.Add(o => o.Class).Sortable(
true).Title("Class").Width(100);
columns.Add(o => o.GetRefund).Sortable(
false).Title("Get Refund").Width(90);
})
.ClientEvents(events => events.OnRowDataBound(
"onRowDataBound"))
.ClientEvents(events => events.OnLoad(
"onLoad"))
.Ajax(ajax => ajax.Action(
"_Index", "Refund", new { searchCriteria = "", searchType = "" }))
.Pageable(paging => paging.PageSize(15))
.Scrollable(scrolling => scrolling.Height(300))
.Sortable().Selectable()
%>
RefundController.cspublic
class RefundViewModel
{
public string TransactionDate { get; set; }
public string Details { get; set; }
public string Recipient { get; set; }
public string Account { get; set; }
public double Cost { get; set; }
public string Class { get; set; }
public string GetRefund { get; set; }
public string Status { get; set; }
public string CheckBox { get; set; }
public string TransactionID { get; set; }
public string SenderName { get; set; }
}
any help appreciated!!
Thanks,
Vivek