I have Telerik MVC grid in my view.
I'm binding the column "Debit Balance" value with calculation in my client side and data binding properly ,here is how i bind data
but when i group by with any dataMy row values binding without calculation? I can trace it with debugger values fetching true but grid doesn't show the same valueAfter Group by "Debit Balance" value shows uncalculating
Do you know this reason?Please help meThnx All
I'm binding the column "Debit Balance" value with calculation in my client side and data binding properly ,here is how i bind data
01.
//my grid
02.
@( Html.Telerik().Grid<Orpac.Models.E_GetCarHar_Result>()
03.
.Name(
"grdAccTransactions"
).NoRecordsTemplate(
"No record to display"
)
04.
.Localizable(
""
)
05.
06.
.HtmlAttributes(
"width: 100%;cellpadding:0;"
)
07.
.Columns(columns =>
08.
{
09.
columns.Bound(e => e.CrhIdent).Hidden().IncludeInContextMenu(
false
);
10.
columns.Bound(e => e.CrhTip).Hidden().IncludeInContextMenu(
false
);
11.
columns.Bound(e => e.CrhTarih).Title((
string
)ViewData[
"Date"
]);
12.
columns.Bound(e => e.CrhTipNam).Title((
string
)ViewData[
"Description"
]);
13.
columns.Bound(e => e.CrhRef).Title((
string
)ViewData[
"Ref"
]);
14.
columns.Bound(e => e.CrhIslem).Hidden().IncludeInContextMenu(
false
);
15.
columns.Bound(e => e.CrhDvzTut).Title((
string
)ViewData[
"Amount"
]);
16.
columns.Bound(e => e.CrhYrlTut).Title((
string
)ViewData[
"DebitBalance"
]);
17.
columns.Bound(e => e.CrhVade).Title((
string
)ViewData[
"DueDate"
]);
18.
})
19.
.DataBinding(d => d.Ajax().Select(
"GridAccountTransactionBinding"
,
"Transaction"
))
20.
.ClientEvents(events => events.OnRowDataBound(
"onRowDataBoundAccTrans"
).OnLoad(
"onloadaccountTR"
).OnRowSelect(
"onRowSelectaccountTR"
))
21.
.Selectable()
22.
.Sortable()
23.
.Pageable(paging => paging.Enabled((
bool
)ViewData[
"paging"
]).PageSize(10))
24.
.Groupable(grouping => grouping.Enabled((
bool
)ViewData[
"grouping"
]))
25.
.Filterable(filtering => filtering.Enabled((
bool
)ViewData[
"filtering"
]))
26.
.Footer(((
bool
)ViewData[
"showFooter"
]))
27.
.Scrollable(scrolling => scrolling.Height(330))
28.
.Resizable(config =>
29.
{
30.
config.Columns(
true
);
31.
})
32.
.Reorderable(config =>
33.
{
34.
config.Columns(
true
);
35.
})
36.
.ColumnContextMenu()
37.
)
38.
//this is how to bind grid
39.
40.
E_Get_Result p =
new
E_Get_Result();
41.
p.CrhIdent = item.CrhIdent;
42.
p.CrhTarih = item.CrhTarih;
43.
p.CrhVade = item.CrhVade;
44.
p.CrhRef = item.CrhRef;
45.
p.CrhIslem = item.CrhIslem;
46.
if
(p.CrhIslem ==
"-"
)
47.
{
48.
p.CrhDvzTut = item.CrhDvzTut;
49.
p.DebitBalance = Dbalance - item.CrhDvzTut;
50.
}
51.
else
52.
{
53.
p.CrhDvzTut = (-1)*item.CrhDvzTut;
54.
p.DebitBalance = Dbalance + item.CrhDvzTut;
55.
}
but when i group by with any dataMy row values binding without calculation? I can trace it with debugger values fetching true but grid doesn't show the same valueAfter Group by "Debit Balance" value shows uncalculating
Do you know this reason?Please help meThnx All