|
Title: [SOLVED] pivotgrid frozencolumntitle Post by: jega on January 16, 2019, 01:37:52 AM Hi
Have a strange problem fct gives me the top row name. Need to put this in frozencolumntitle, but in code below the onLoadSuccess goes into loop $('#pg').pivotgrid({ onLoadSuccess: function(){ $('#pg').pivotgrid('collapseAll'); var opt = $('#pg').pivotgrid('options'); var rows = opt.pivot.rows; var fct = rows[0]; console.log(fct); $(this).pivotgrid({frozenColumnTitle:'<span style="font-weight:bold">'+fct+'</span>'}) }, }) Any help Regards Jesper Title: Re: pivotgrid frozencolumntitle Post by: jarry on January 16, 2019, 05:48:06 AM Please try to use this code instead.
Code: var title = $(this).data('datagrid').dc.header1.find('.datagrid-cell>span:first');Title: Re: pivotgrid frozencolumntitle Post by: jega on January 16, 2019, 01:18:15 PM Thanks for quick reply.
Works great. |