iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi to support,
I have set in the WebGrid, the culture from external system and the NumberFormat of culture customized (server side in the InitializeLayout method):
//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;
in the WebGrid grafically seems OK (I see the currency in the correct way).
When client side, I try to get the currency format values set in the webGrid:
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;
I get the old values and not the values updated in server side, why ?How can I get the updated values ?
Thanks
Hi,
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?
Best Regards,
Gordon Tumewu
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)?
Hi Gordon,
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 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 'wgGetUnMask' don't work because use always the old format.
Can you help me.
thanks
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname