This is a migrated thread and some comments may be shown as answers.

[Solved] Grid localization

0 Answers 8 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Steve
Top achievements
Rank 1
Steve asked on 06 Sep 2012, 03:48 PM
Hi, 

I am having trouble with the grid locaization. I have seen that there are a number of posts and tutorials on this topic but currently I am still a little unclear as to what is wrong.

The situation I have is that I want me grid to render dates in en-GB and en-US format and I would like this to be based upon the language supplied in the browser. The webserver will be running with regional settings set to en-GB and so without doing anything the dates will be  in en-GB format. Currently if I set the current culture in the controller action that is serving the view containing the grid it is indeed localized however, the tutorial that I have seen states that I should also be able to set the script registrar to enable globalisation and to supply to the grid the localizable culture i.e. in my view I have myGridBuilder.Localizable("en-US") (in real life this would use the language supplied in the browser). This doesn't work for me and I would like to know if I need to do anything else.


Thanks in advance, Steve
Tags
General Discussions
Asked by
Steve
Top achievements
Rank 1
Share this question
or