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
280
How-to javascript code.. Formula setting?
posted

"ultrawebgrid에 javascript 으로 Formula 계산을 지정하고 싶습니다."

I want UltraWebgrid to use formula seeting at javascript

I would like to arrange in ultrawebgrid the Programming of Javascript and also Formula Calcuation.

I'm Not want to C# code. 

I want UltraWebGrid using to Javascript code ... Formula setting .. plz.

 

 My source code here.

  function UltraWebGrid1_AfterCellUpdateHandler(gridName, cellId){
   //Add code to handle your event here.
   
      var grid = igtbl_getGridById(gridName);
      var row = igtbl_getActiveRow(gridName);
      var ba_ulimit = row.getCell(3).getValue(); //ba_ulimit
     
      ba_ulimit = ba_ulimit * 5;
     
      var cell = row.getCell(9);  //test column!
      cell.setValue( ba_ulimit );
  }

help me plz.. ^^;

Parents
No Data
Reply
  • 21382
    posted

     Since I don't understand what your question is:

     

    I see an infinite loop in your future.  If memory serves, the AfterCellUpdate would probably fire after you set the value, so it would come back in and do the same calculation over and over.  You might want to add an if to see if the cell that was updated was in column 3 first. 

Children
No Data