Forums
remove secondary row header from pivotgrid - 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: remove secondary row header from pivotgrid (/showthread.php?tid=511)



remove secondary row header from pivotgrid - harshabalan - 12-23-2022

How to  remove the secondary header row in pivotgrid.

(12-23-2022, 10:57 AM)harshabalan Wrote: How to  remove the secondary header row in pivotgrid and change the header text alignment.
provide the rendercallback script in the dashboard script area :

sdk.setAfterRenderCallBack('pivotgrid1', function() {
$("#dataGridDiv"+sdk.getWidget('pivotgrid1').m_objectid).find(".datagrid-header-row .datagrid-cell-group").css("text-align","center");
$("#dataGridDiv"+sdk.getWidget('pivotgrid1').m_objectid).find(".datagrid-header-row .datagrid-cell").css("text-align","center");
$("#" + sdk.getWidget('pivotgrid1').m_componentid).find('.datagrid-header-row').eq(2).css({"visibility": "collapse" });

});