12-23-2022, 10:57 AM
(This post was last modified: 12-23-2022, 10:57 AM by harshabalan.)
How to remove the secondary header row in pivotgrid.
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" });
});
(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" });
});