12-23-2022, 05:13 AM
var comp = sdk.getWidget( 'datagrid1' );
comp.m_exporttopdfgrid.exportastable = true; // (if false, it will be exported as image in pdf)
comp.m_exporttopdfgrid.theme = "striped"; // ('striped', 'grid' or 'plain')
comp.m_exporttopdfgrid.orientation = "l"; // ( l for landscape and p for portrait mode )
comp.m_exporttopdfgrid.exportastable = true; // (if false, it will be exported as image in pdf)
comp.m_exporttopdfgrid.theme = "striped"; // ('striped', 'grid' or 'plain')
comp.m_exporttopdfgrid.orientation = "l"; // ( l for landscape and p for portrait mode )