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
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() }); } });