Forums
Script to set height of the Datagrid component - Printable Version

+- Forums (https://bdn.bdb.ai)
+-- Forum: BDB Knowledge Base (https://bdn.bdb.ai/forumdisplay.php?fid=13)
+--- Forum: BDB Dashboards Designer (https://bdn.bdb.ai/forumdisplay.php?fid=43)
+---- Forum: BDB Designer Q & A (https://bdn.bdb.ai/forumdisplay.php?fid=16)
+---- Thread: Script to set height of the Datagrid component (/showthread.php?tid=399)



Script to set height of the Datagrid component - rubeena.hajira - 12-22-2022

Script to set the height of Datagrid component on click of another component.
* Below mentioned script is to be written on the label component script.
* Click on the label the Datagrid height will be changed which is set to 300 in the below-mentioned script.

var a = sdk.getWidget( 'datagrid1' );
a.m_height=300;
a.draw();