ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
how to localize the grid elements
Title:
B
I
{code}
?
how to translate "Drag a column header and drop it here to group by that column" in the grid?? I can use "var clientDict" but I don not know the key for the grid texts
Save Changes
Cancel
Mohamed Khafagy
asked at 15 Nov 2017
Answers
B
I
{code}
?
have a look here: http://aspnetawesome.com/learn/mvc/general#Localizing-default-texts
Save Changes
Cancel
Omu
answered at 15 Nov 2017
I read this page, but can not know all the text keys
at 15 Nov 2017
Mohamed Khafagy
well the one for the groupbar text is there: `case "GroupBarText": return Mui.GroupBarText;` they are usually type = helper name, key = property name you can also set `@Html.Grid().GroupBarText(str)`
at 15 Nov 2017
Omu
I'm using PageSize mod to show and enable page size selector. How to localize the page size dropdown element? There is no "InLabel" mod like in odropdown. Eventually, how to access odropdown page size selector in grid element??
at 08 Feb 2018
TT Tom
seems that we've missed this one; you can modify awem.js and add `PageSize` to the `clientDict` object and after in gridPageSize function replace `InLabel: "page size: "` with `InLabel: cd().PageSize + ": "`
at 08 Feb 2018
Omu
Thank You! it works like a charm :)
at 08 Feb 2018
TT Tom
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK