JarekZ Posted February 4, 2020 Share Posted February 4, 2020 hello Does the component PIVOTGRID have an error? In the Pivot2 demo the columns are + but you can't see anything expanded. In my program a similar effect [..] l:=UniDBPivotGrid1.TopAxis.Add; l.FieldName:='Odmiana'; l:=UniDBPivotGrid1.TopAxis.Add; l.FieldName:='Kategoria'; [...] the first one is visible with + but when expanded, there is nothing Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 5, 2020 Share Posted February 5, 2020 10 hours ago, JarekZ said: Does the component PIVOTGRID have an error? In the Pivot2 demo the columns are + but you can't see anything expanded. In my program a similar effect Hello, Which build of UniGUI are you using? Can we reproduce this issue? Quote Link to comment Share on other sites More sharing options...
JarekZ Posted February 5, 2020 Author Share Posted February 5, 2020 ver. 1.90.0.1514 on the second picture you can see that after expanding you can't see the "sub" columns this is the whole code procedure TMainForm.UniButton1Click(Sender: TObject); var l:TUniCustomPivotGridItem; begin with ADOQuery1 do begin Close; SQL.Clear; SQL.AddStrings(UniSyntaxEditEx1.Lines); Open; end; UniDBPivotGrid1.LeftAxis.Clear; UniDBPivotGrid1.Aggregators.Clear; UniDBPivotGrid1.TopAxis.Clear; l:=UniDBPivotGrid1.LeftAxis.Add; l.FieldName:='Producent'; l:=UniDBPivotGrid1.LeftAxis.Add; l.FieldName:='Twr_Nazwa'; l:=UniDBPivotGrid1.TopAxis.Add; l.FieldName:='Odmiana'; l:=UniDBPivotGrid1.TopAxis.Add; l.FieldName:='Kategoria'; l:=UniDBPivotGrid1.Aggregators.Add; l.FieldName:='Ilosc'; l.Aggregator:=piaSum; UniDBPivotGrid1.RefreshCurrentRow(true); end; Quote Link to comment Share on other sites More sharing options...
JarekZ Posted February 5, 2020 Author Share Posted February 5, 2020 I checked in the resulting html and the column headers are just the height of the DIV is too small and you can't see it on the screen. Quote Link to comment Share on other sites More sharing options...
mehmet07 Posted February 5, 2020 Share Posted February 5, 2020 you must enter something in the column header Quote Link to comment Share on other sites More sharing options...
JarekZ Posted February 5, 2020 Author Share Posted February 5, 2020 unfortunately it doesn't do anything. I have completed HEADER and nothing. As I wrote before, headers are in the resulting HTML but the DIV height is too small Quote Link to comment Share on other sites More sharing options...
JarekZ Posted February 6, 2020 Author Share Posted February 6, 2020 do you have any solution for this? Quote Link to comment Share on other sites More sharing options...
mehmet07 Posted March 10, 2021 Share Posted March 10, 2021 Quote .pivoth-grid .x-grid-header-ct{ background-color: #F7F7F7; background-image:initial; border:initial; border-bottom-width: 1px !important; border-bottom-color: #E4E4E4 !important; border-bottom: 1px solid #E4E4E4 !important; height:60px; } Add this CSS code to servermodule -> customCSS. Then write pivoth-grid in PivotTable -> LayoutConfig -> ComponentCls section. YourPivotTable.LayoutConfig.ComponentCls:='pivoth-grid'; The problem will be fixed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.