Hi all.
this is most probably not a problem of the datagrid itself but I'd love to get help on this one anyway.
I'm using 2 grids in the website and I'm using the ItemFileWriteStore object as the store object for my grids.
Both json stores contain also characters in CentralEuropean (1250) coding.
The difference is that one json store is created locally (fixed) and other one is coming from the webservice that retrieves the data from the database.
The grid that shows the json store that is fixed cannot show some special characters properly, while the other one works ok.
Does anyone have an idea of what shall I do in order to get the grid show the characters properly.
Thank you
Please test for yourself and let me know if you have similar problem:
function createDojoDataGridAVL(){
var img1 = "";
var img2 = "";
var img3 = "";
var jsondata = [{Visibility:true, Symbol:img1, Description:'Test string ľšč', Label:true},
{Visibility:true, Symbol:img2, Description:'Test string ťžý', Label:true},
{Visibility:true, Symbol:img3, Description:'Test string ýáíé', Label:true}
];
AVLstore = new dojo.data.ItemFileWriteStore({identifier:"name", label:"name", data:{items:jsondata}});
structureAVL = [{ field: 'Visibility', name: 'Vid.', editable:true, type:dojox.grid.cells.Bool, styles:'text-align:center;'},
{ field: 'Symbol', name: 'Symbol', styles:'text-align:center;'},
{ field: 'Description', name: 'Popis', width:'150px'},
{ field: 'Label', name: 'Label', editable:true, type:dojox.grid.cells.Bool, styles:'text-align:center;'}
];
// create a new grid:
gridAVL = new dojox.grid.DataGrid({
store: AVLstore,
clientSort: false,
structure: structureAVL,
autoWidth: true,
autoHeight: true
}, document.createElement('div'));
// append the new grid to the div "gridContainer":
dojo.byId("gridContainers").appendChild(gridAVL.domNode);
// Call startup, and render the grid:
gridAVL.startup();
gridAVL.render();
}
resolved
it was in the javascript file encoding.