Tag: dojox.grid.datagrid

在click事件中,数据未显示在dojox.data.Datagrid中。

我想在数据网格中显示数据。 使用$ .get方法作为JSon类型,通过URL检索数据。 我没有收到任何错误。 但是也没有得到数据网格。 这是我的脚本代码:: $(“document”).ready(function(){ $(‘#contentpaneid’).bind(‘click’, getInfoFromServer); function getInfoFromServer(){ $.get(“http://localhost:8080/2_8_2012/jsp/GetJson.jsp?random=” + new Date().getTime(), function (result) { success:postToPage(result), alert(‘Load was performed.’); },”Json”); function postToPage(data){ alert(data); var storedata = { identifier:”ID”, items: data //[{“ID”:1,”Names”:”Shantanu”,”Email”:”shantanu.tomar@gmail.com”},{“ID”:2,”Names”:”Mayur”,”Email”:”mayur.sharma@gmail.com”},{“ID”:3,”Names”:”Rohit”},{“ID”:21,”Names”:”Rakesh”,”Email”:”askjhjk”}] }; var store1 = new dojo.data.ItemFileWriteStore({data: storedata}) ; var gridStructure =[[ { field: “ID”, name: “ID_Emp”, width: “20%”, classes:”firstName” }, { […]