Hi,
I need to re-write the EmptyGroupByAreaContent property of my GroupBy feature. Of course I would like to maintain the link where the user can click to get the modal dialog. But if I write:
GridGroupBy grouping = new GridGroupBy();grouping.EmptyGroupByAreaContent = "Click here!!!";
I lose that link. I know that, for example for paging features, we have something like ${startRecord} or ${endRecord} to not lose those labels. Is there something also related to the Group By dialog Access link?
Thank you,
Flavio
Hi Tsvetelina,
very good: 2 solutions in 1 shot !!!
I already tried to implement something like localization, but I tried in a wrong way: I was using regional, that should have a little different behavior and meaning. Now I am doing it with localization javascript, and I found out how to solve. This is very good not only for these 2 issues, but also because I can create an unique file for all grid features translations.
Thank you very much!!
Buongiorno Flavio,
My answers are below
1) This appears to be bug in the MVC wrapper - the property is missing in the GridGroupBy helper.
I will log development issue for this.
2) As I can see you are trying to localize the igGrid in Italian.
Currently (v12.2) we have localization in 7 languages (Bulgarian, German, English, Spanish, French, Japanese, Russian)
I recommend you to create a localization file infragistics.ui.grid-it.js and include it along with the script references.
Since v12.2 you can include the localization files using the Loader too. That means that once you have created the grid's localizaion file infragistics.ui.grid-it.js
You may load it using the code snippet:
<%= Html.Infragistics().Loader()
.ScriptPath(Url.Content("YOUR_PATH_HERE/js/"))
.CssPath(Url.Content("YOUR_PATH_HERE/css/"))
.Locale("it")
.Render()
%>
I recommend you reading the article below regarding localization of our jQuery controls
http://help.infragistics.com/NetAdvantage/jQuery/2012.2/CLR4.0?page=Customizing_the_localization_of_NetAdvantage_for_jQuery_controls.html
After that you may contribute by sharing your localization with us :) Thus we may have Italizan localization in v13.1
Hope hearing from you.
Thank you very much for your effort.
Just 2 points I would like to understand better:
Thank you very much!!!
Hello Flavio,
The property you are looking for is emptyGroupByAreaContentSelectColumns
Is is passed as parameter in emptyGroupByAreaContent
Here are the default values :
emptyGroupByAreaContent: "Drag a column here or {0} to Group By",
emptyGroupByAreaContentSelectColumns: "select columns",
In your case you can achieve this using the setting below:
features: [{ name: "GroupBy", type: "local", emptyGroupByAreaContent: "Click {0} !!!", emptyGroupByAreaContentSelectColumns: "here", emptyGroupByAreaContentSelectColumnsCaption: "select columns caption on hover" } ]
name: "GroupBy",
type: "local",
emptyGroupByAreaContent: "Click {0} !!!",
emptyGroupByAreaContentSelectColumns: "here",
emptyGroupByAreaContentSelectColumnsCaption: "select columns caption on hover"
}
]