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

How to Rebind/Refresh Grid From ClietSide

1 Answer 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
kasi
Top achievements
Rank 1
kasi asked on 14 Jun 2011, 02:03 PM
Hi ,
I have one issue in Grid , What is the concept is My Grid Having Total (Decimal) Column and One Checkbox Round Total above Grid. If Check box is clicked the total should be round off ,if i unchecked total as actual. While page loading it's Rounding off , that is workng,
when i am unchecking the total is not getting actual value. and also i m using ajax for the grid.  Here is my code. how can i refersh for rebind the grid


$("#<%=chkRoundSale.ClientID%>").change(function() {
                   var thisCheck = $(this);
                   if (thisCheck.is(':checked')) {
                       $("#<%= gvEnqMixes.ClientID%> tr").each(function() {
                           var tr = this;
                           var cells = tr.cells;
                           var len = $('td', this).length
                           var txt = $(this).find("td:eq(7)").html();
                           $(this).find("td:eq(7)").html(Math.round(txt));
                       });
                   }
                   else {
                       $("#<%=gvEnqMixes.ClientID%> tr").each(function() {
                           var tr = this;
                           var cells = tr.cells;
                           var len = $('td', this).length
                           var txt = $(this).find('input:submit[id$=RefreshButton]');
                           txt.click()
                       });
                   }
               });

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 17 Jun 2011, 09:20 AM
Hi kasi,

You can just call the rebind method of the grid:
http://www.telerik.com/help/aspnet-ajax/grid-repaint.html

Kind regards,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
kasi
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or