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

Grid + CheckBox Globalization Issue

2 Answers 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bruno
Top achievements
Rank 1
Bruno asked on 22 Feb 2013, 12:40 PM
Hi 

I have a grid dinamically builded and I don't use template, my column with checkbox are like this example http://demos.kendoui.com/web/grid/editing.html, where appears true/false

Even updating .Net Language Pack keeps true/false

1 => I need change this true/false for yes/no, any idea?

    $("#grid tbody tr").each(function ()
    {
        var row = $(this);
        row.contents().each(function ()
        {
            var cell = $(this);
            if (cell.html() == 'true')
                cell.html('yes')
            else if (cell.html() == 'false')
                cell.html('no')
        });
    }

The code above works well until click the cell and true/false appears again

2 => At each cell on grid there are role="gridcell". Can  I change the behavior of this role? Maybe to don't put true/false

Thank you very much

2 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 26 Feb 2013, 09:38 AM
Hi Bruno,

 
The best way to change the default text of the boolean type is to define column template - please check the example below:

{
    field: "Discontinued",
    width: 100,
    template: "#=Discontinued ? 'yes' : 'no'#"
},

 Kind Regards,
Vladimir Iliev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Bruno
Top achievements
Rank 1
answered on 27 Feb 2013, 01:58 PM
It works perfectly!

Thanks
Tags
Grid
Asked by
Bruno
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Bruno
Top achievements
Rank 1
Share this question
or