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
811
UltraWebGrid does not get format from client side setValue Method.
posted

Hi !!!

I am facing unexpected issue with UltraWebGrid. I have set number format on the Grid's column using column's format property and now using setValue and by GUI inputing new value to the grid's cell and it is not taking the format given at the server side using following code snippet : Format = "###,##0,";

Am I doing something wrong there or is it expected behavior ???? I have also tried with Editors but not working

 

 

Bunty :)

 

 

Parents
No Data
Reply
  • 334
    posted

    Bunty,

    I format the cells dinamically using a javascript code:

      function HandleExitEdit(gridID,cellID)
      {
            var cell                  = igtbl_getCellById(cellID);
            var line                 = cell.getRow().getIndex();
            var rows               = igtbl_getGridById(gridID).Rows;
            var current_line  = rows.getRow(line);
            var coluna           = cell.Column.Key;
       
       if ((coluna == 'KEYOFCOLUMN') && (current_line.getCellFromKey('KEYOFCOLUMN').getValue() != "")&& (current_line.getCellFromKey('KEYOFCOLUMN').getValue() != null))
       {
                 var value = current_line.getCellFromKey('KEYOFCOLUMN').getValue();
                 //Type here a piece of code to format the string
                 urrent_line.getCellFromKey('KEYOFCOLUMN').setValue(value);
       }
      } 

    And on uwg's propertie ClienteSideEvents set this:

    <ClientSideEvents AfterExitEditModeHandler="HandleExitEdit" />

    I hope this helpful.

Children