Data is not getting displayed in dojox.data.Datagrid on click event.

前端 未结 1 619
情歌与酒
情歌与酒 2021-01-27 16:50

I want to display data in a data grid. The data is retrieved by a URL using $.get Method as a JSon type. I am not getting any error. But not getting Data grid as well. Here\'s m

相关标签:
1条回答
  • 2021-01-27 17:12

    Change

    <div data-dojo-id="gridDiv"...
    

    to

    <div id="gridDiv" ...
    

    Note that data-dojo-id is meant to be used to create a global JS variable that holds the widget. In your situation, you are populating the datagrid and asking dojo to replace a DOM node with id gridDiv with the datagrid. Since dojo is not able to find such a node, you are not seeing the datagrid

    0 讨论(0)
提交回复
热议问题