-
July 20th, 2015, 02:55 PM
#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
-
July 21st, 2015, 09:17 AM
#2
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?
-
July 21st, 2015, 10:35 AM
#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
-
By Ranag in forum Adapter SDKs
Replies: 1
Last Post: December 12th, 2014, 09:03 AM
-
By lidanh in forum Client SDKs
Replies: 4
Last Post: August 6th, 2013, 05:27 PM
-
By hofmanna in forum Client SDKs
Replies: 3
Last Post: February 18th, 2010, 11:14 PM
-
By hofmanna in forum Client SDKs
Replies: 5
Last Post: January 14th, 2010, 10:02 AM
-
By tuongkha in forum Client SDKs
Replies: 9
Last Post: July 9th, 2008, 09: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
-
Forum Rules
All times are GMT +1. The time now is 07:25 PM.
Bookmarks