Resizing Dojox DataGrid

394
1
09-16-2018 03:24 AM
LopezChepez
New Contributor

Hello, 

I need help on resizing datagrid as shown below. I need the grid to resize on its own when the parent container (widget) is resized. 

I've tried dojo.connect to connect to window which works. But when I changed to mygrid, it failed.  

function resizeGrid() {
console.log("heightcontainer:" )
}

dojo.add"color: #d4d4d4;">(function() {
dojo.connect(mygrid, "", resizeGrid);
});

Thanks in advance 

Chepez

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Chepez,

  Dojo connect has been depreciated for years now. You need to be using Dojo on. Also you have to specify what event you are listening for when using connect or on

on(mygrid, "resize",‍ resizeGrid);
0 Kudos