Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
731
Can any one help me in getting sum of Grid column??
posted

i am facing problem i want to get sum of currency value at the bottom of grid i dont not want to use any button as infragisitic has used in sample codes neither webcalcmanager is usable in this situation

 i am entering values and i want to calclute sum at that time using javascript but ultrawebgrid is keep changing its id when i click from one to next cell when i am on active row then its id is _nr at the end and when i click on another row and then click back to last row its id gets change... like _2....

i am not able to place check of row id in such a situation is there any easy way to achieve this functionality????????????????

Parents
No Data
Reply
  • 28464
    posted

    Hello,

    I am not 100% sure I understand the whole situation in detail, but if you are rely on hardcoded IDs on the  client-side, this will probably lead to the problems you describe since there is no guarantee client IDs will be the same.

    You can use the client-side ID of the grid in the following way

    var clientID = "<%= UltraWebGrid1.ClientID  %>";

    HTH,

Children
No Data