Forums

Full Version: remove secondary row header from pivotgrid
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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" });

});