Jump to content

Pivotgrid


JarekZ

Recommended Posts

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

Link to comment
Share on other sites

ver. 1.90.0.1514

 

 

  obraz1.thumb.png.a3c1555ef5f58965059f0f4b53e6e5b2.pngobraz2.thumb.png.53f3bc890b083430e726df71dca8041b.png

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;

Link to comment
Share on other sites

  • 1 year later...
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...