jQWidgets Forums
jQuery UI Widgets › Forums › TreeGrid › TreeGrid fully supports i18n?
This topic contains 7 replies, has 3 voices, and was last updated by Peter Stoev 9 years, 2 months ago.
-
Author
-
Hi JQWidget Team,
I am using jqxTreeGrid component in my web application.
I want my application to support chinese (simplified) as well.
I am getting the data and able to see data in Chinese.
When i am sorting the data it’s incorrect. By the way, i am using the TreeGrid sort operations only.Is there a way to explicitly set the locale/language to consider at client side ?
Does TreeGrid support Internationalization fully? or is there any limitation with it?And my data sometimes, have combination of English & Chinese.
Assume there are 10 records, 4 rows in english, 6 rows in Chinese.
I want the 4 English rows to be sorted first; then 6 rows to be sorted based on Chinese.
Any help on this would be appreciated.Regards,
Rao.Hi Rao,
localization of jqxTreeGrid can be set through its localization property as shown on its Localization example available online. How the browser displays characters is a matter of your web page’s encoding. We do not have any imlicity or explicit functionality implemented regarding this. The Sorting by String is done through the Array.sort function which is still a browser function.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
Array.sort is not i18n compliant i believe.
Hence the data is not sorted properly in that locale (Chinese in this case).
Its sorted in English and then translated, that’s all.Regards,
Rao.Hi Rao,
If you own a developer or enterprise license, you can customize the widget’s built-in sorting function.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
We own enterprise license, may i know the further customization to achieve.
would you recommend me to send out an email to support@jqWidgets.com ?Regards,
Satya.Hi Rao,
If you have the code, you can debug and update the sources of course taking into account the restrictions listed in: http://www.jqwidgets.com/licenseagreement/. We provide support how to use the widgets. Consulting about customization of the widgets is another type of service.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
To be clear on my requirement, i am just rephrasing in points.
1. We are using jqxTreeGrid (for Hierarchical Data representation)
2. We enabled sort option for the same
3. when we sort on the any data columns by Ascending or Descending it’s work perfectly fine with English characters.
4. We have the Chinese locale file for matching Data elements.
5. If we sort by Ascending or descending, on chinese data it’s not happening.
6. We are seeking for a fix to this. We have no logic behind sorting introduced to debug it.NOTE : As i observe, it looks first the column is getting sorted based on the English text, then “translate” is happening.
Here we need to “Translate” first and then sort on the translated Data.I hope i made it clear.
Regards,
Rao.Hi Rao,
You are looking for custom sorting implementation. The default sorting is the JavaScript sorting which is used by jqxTreeGrid so in your case which is specific, you will need custom sorting. Such thing is not supported by the TreeGrid which means that you will need to implement it or wait for a future release which supports custom sorting capabilities.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.