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

Telerik MVC Grid row values failing after group by

2 Answers 121 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Haluk
Top achievements
Rank 1
Haluk asked on 18 Mar 2014, 11:58 AM
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

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

2 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 20 Mar 2014, 11:13 AM
Hi Haluk,

Please note that as of June 2013, Telerik Extensions for ASP.NET MVC has reached its official End of Life (EOL), with no additional fixes or enhancements expected in the future. That why I would strongly suggest to upgrade to Telerik UI for ASP.NET MVC from the trial that you started as we no longer provide support for the Telerik Extensions.

Kind Regards,
Vladimir Iliev
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Haluk
Top achievements
Rank 1
answered on 21 Mar 2014, 10:24 AM
So?

Is this my bug ? or Telerik Bug??? 

If you EOF this controls i cannot use it when i purchase?

Also i linked my problem in stackoverflow please help me or give me any advice

http://stackoverflow.com/questions/22554307/telerik-mvc-grid-row-data-shift-to-left-after-group-by

Please!

Tags
Grid
Asked by
Haluk
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Haluk
Top achievements
Rank 1
Share this question
or