Results 1 to 3 of 3

Hybrid View

  1. #1

    How to format values on initial "update"

    Hi,

    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?

    Thanks,
    Alex

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    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: http://jsfiddle.net/xb2hxohs/

    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,
    Alex

 

 

Similar Threads

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

Bookmarks

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 06:58 AM.