| [CSHTML] @(Html.EJ().Grid<object>("LargeData") .AllowPaging(true) .ClientSideEvents(c=>c.RowSelected("rowSelect")) ) function rowSelect(sender) { // To get the gauge instance var gauge = $("#circulargauge1").ejCircularGauge("instance"); // To set the pointer value to the gauge gauge.setPointerValue(0, 0, sender.data.Employee_ID); } |
Hi Saravana,
Thanks for the sample solution, I should have asked you bit more on this at the beginning. I have two grids, parent and child which is easy to implement. For example let's say first grid has individual invoice for total purchase. Second grid has payments which can be multiple for one single invoice. And databind is set up on first and second grid to refresh second grid records based on first grid record selection.
I need to have circular gauge maximum value set based on first parent record selection (total invoice value)
I need to have circular gauge current value set based on total of the payments made so far (that is total of second grid records). If I could use the total sum value based on the second grid (which has paging by the way) related records of first grid.
Kind Regards
Prasanth
| [CSHTML] <div style="float:left;width:600px;height:250px;"> @(Html.EJ().Grid<object>("Invoice") .AllowPaging(true) .Datasource(ds => ds.URL("Home/InvoiceDataSource").Offline(true).Adaptor(AdaptorType.UrlAdaptor)) .ClientSideEvents(c=>c.RowSelected("rowSelect")) ) </div> <div style="float:left;width:600px;height:450px;"> @(Html.EJ().Grid<object>("Payment") .AllowPaging(true) .Datasource(ds => ds.URL("Home/PaymentDataSource").Offline(true).Adaptor(AdaptorType.UrlAdaptor)) ) </div> |