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

Globalization

2 Answers 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 27 Dec 2012, 04:32 PM

Hi,

I had assigned UICulture to Chinese(zh-CN).

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CarryingCapacityMD>"
    UICulture="zh-CN" %>

And the content of button in the Toolbar/Command has been show in Chinese.

But when editing mode is PopUp, and I click 'Add new item'/'Edit' button popup a window.
That title still show in English.

Is a Bug?
Or give me a solution.

And why the second textbox's width in the popup window is too long.

See more detail in the attachment file.

Best regards!

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 28 Dec 2012, 04:43 PM
Hi,

 Indeed the title of the popup window is not currently localized. I have logged this for implementation.

 As a workaround you can use the edit event of the grid and set the title of the window. Here is the required code:

<%: Html.Kendo().Grid(Model)
    .Name("Grid")
    .Events(e => e.Edit("edit")) // handle the edit event with the onEdit javascript function
   /* other configuration */
%>

<script>
function onEdit(e) {
     // set the title of the window to localized text.
     e.container.closest(".k-window").find(".k-window-title").text("New title");
}
</script>

The other issue is probably caused by some CSS rule in your web site. You can track the where the width comes from using your browser developer tools.

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Gary
Top achievements
Rank 1
answered on 29 Dec 2012, 12:37 AM
Thanks!
Tags
Grid
Asked by
Gary
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Gary
Top achievements
Rank 1
Share this question
or