Results 1 to 3 of 3
  1. #1

    How to format values on initial "update"


    I'm a little bit confused, how to get updates formatted:

    I have a data-adapter on the server side sending updates using a culture invariant number format.

    Currently I use a StaticGid on my webpage. I added a StaticGridListener which uses the iterator visualUpdate.forEachChangedField to iterate through the fields and update the cells with a formatted value using visualUpdate.setCellValue.

    Works fine for subsequent updates. But there is an initial update with values, for which it seems, that there is no call within visualUpdate.forEachChangedField.

    So how do I get the initial data formatted, too?


  2. #2
    Power Member
    Join Date
    Jul 2006
    Cesano Maderno, Italy
    Hi Alex,

    I'm not sure I actually understand what you mean, do you mean that when the first update arrives from the server your forEachChangedField does not iterate correctly? Or do you mean that the onVisualUpdate does not even fire?
    I confirm that that's not the expected behavior.

    Take a look here:

    Might be you're referring to the initial values embedded in the html page? Or maybe you add the listener to the grid when the first update already reached the client?

  3. #3
    Sorry, my bad. I had a javascript error in the onVisualUpdate and because of this my call to forEachChangedField was not triggered all times.

    Thanks for your help,



Similar Threads

  1. Null values on Item update
    By Ranag in forum Adapter SDKs
    Replies: 1
    Last Post: December 12th, 2014, 10:03 AM
  2. Register with Command only to "ADD" and "REMOVE"
    By lidanh in forum Client SDKs
    Replies: 4
    Last Post: August 6th, 2013, 06:27 PM
  3. Replies: 3
    Last Post: February 19th, 2010, 12:14 AM
  4. Formatting of unchanged values in "DynaScrollTable"
    By hofmanna in forum Client SDKs
    Replies: 5
    Last Post: January 14th, 2010, 11:02 AM
  5. format value in VisualTable
    By tuongkha in forum Client SDKs
    Replies: 9
    Last Post: July 9th, 2008, 10:27 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT +1. The time now is 01:11 PM.