﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - client side don't get the updated values of culture set in server side</title><link>http://www.intersoftsolutions.com/Community/WebGrid/client-side-dont-get-the-updated-values-of-culture-set-in-server-side/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>client side don't get the updated values of culture set in server side</title><link>http://www.intersoftsolutions.com/Community/WebGrid/client-side-dont-get-the-updated-values-of-culture-set-in-server-side/</link><pubDate>Tue, 15 Sep 2009 02:41:59 GMT</pubDate><dc:creator>gordont</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could I know in which client side event that you want to get the currency values? You said that you used the OnAfterItemSelected but WebGrid dont have OnAfterItemSelected client side event, could you describe more spesific or attach simple sample that replicate your scenario?&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Gordon Tumewu&lt;/p&gt;</description></item><item><title>client side don't get the updated values of culture set in server side</title><link>http://www.intersoftsolutions.com/Community/WebGrid/client-side-dont-get-the-updated-values-of-culture-set-in-server-side/</link><pubDate>Mon, 14 Sep 2009 04:52:50 GMT</pubDate><dc:creator>fabdellacorte</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi Gordon,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;in the server side, I changed the currency settings in the 'InitializeLayout' method , therefore at first time. In the grid I see the right format and after some operations on the grid in an &lt;span style="font-size: 13px"&gt;OnAfterItemSelected of field grid, I try to get the currency values but the result is the old values and I have noticed that also the global function &lt;span style="font-size: 13px"&gt;'wgGetUnMask' don't work because use always the old format.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;Can you help me.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;span style="font-size: 13px"&gt;thanks&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>client side don't get the updated values of culture set in server side</title><link>http://www.intersoftsolutions.com/Community/WebGrid/client-side-dont-get-the-updated-values-of-culture-set-in-server-side/</link><pubDate>Mon, 14 Sep 2009 04:36:48 GMT</pubDate><dc:creator>gordont</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In which client side event that you try to get the currency format? Also when you set the setting in server side, do you set it in the first time or after some action(e.g button click, etc)?&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Gordon Tumewu&lt;/p&gt;</description></item><item><title>client side don't get the updated values of culture set in server side</title><link>http://www.intersoftsolutions.com/Community/WebGrid/client-side-dont-get-the-updated-values-of-culture-set-in-server-side/</link><pubDate>Tue, 08 Sep 2009 10:22:47 GMT</pubDate><dc:creator>fabdellacorte</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi to support,&lt;/p&gt;
&lt;p&gt;I have set in the WebGrid, the culture from external system and the NumberFormat of culture customized (server side in the InitializeLayout method):&lt;/p&gt;&lt;pre&gt;//set the culture in the grid
((WebGrid)sender).LayoutSettings.Culture = ci;
//Set in the Grid the numberformat customized
NumberFormatInfo numberFormatGrid = ((WebGrid)sender).LayoutSettings.Culture.NumberFormat;
            numberFormatGrid.CurrencyDecimalDigits = currencyDecimalPrecision;
            numberFormatGrid.CurrencyDecimalSeparator = decimalSymbol;
            numberFormatGrid.CurrencyGroupSeparator = numberSeparator;
            numberFormatGrid.CurrencySymbol = currencySymbol;&lt;/pre&gt;
&lt;p&gt;in the WebGrid grafically seems OK (I see the currency in the correct way).&lt;/p&gt;
&lt;p&gt;When client side, I try to get the currency format values set in the webGrid:&lt;/p&gt;&lt;pre&gt;var currency = ISGetObject("WebGrid1").CultureInfo.NumberFormatInfo.Currency;
var currencySymbol = currency.Symbol;
var decimalDigit = currency.Positive.DecimalDigit;
var decimalSeparator = currency.Positive.DecimalSeparator;
var groupSeparator = currency.Positive.GroupSeparator;
var inputSeparator = decimalSeparator;&lt;/pre&gt;

&lt;p&gt;I get the old values and not the values updated in server side, why ?&lt;br /&gt;How can I get the updated values ?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>