invoke Best fit column by programmatically

4 posts, 0 answers
  1. Saminathan
    Saminathan avatar
    2 posts
    Member since:
    Jul 2013

    Posted 15 Jul 2013 Link to this post


    How to Invoke best fit column by programmatically,
    I tried all below but no success

     

     

     


    RP_Grid.PivotGridElement.BestFitHelper.BestFitColumn(New PivotGroupNode(RP_Gri)
    RP_Grid.PivotGridElement.BestFitHelper..BestFitRowHeaders()
    RP_Grid.PivotGridElement.BestFitHelper.BestFitRowHeaders(2)
    RP_Grid.PivotGridElement.BestFitHelper.BestFitRowHeaders(1)
    RP_Grid.PivotGridElement.BestFitHelper.BestFitColumns()

     

    Please help me on this.Very urgent

     

     

     

     

     

     

  2. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 18 Jul 2013 Link to this post

    Hi Saminathan,

    Thank you for writing.

    The correct way to call this method is the following:
    RP_Grid.PivotGridElement.BestFitHelper.BestFitColumns()

    Please note that this call should be made on Form.Load or later event, where the pivot has a valid layout.

    I hope this helps.
     

    Regards,
    Stefan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Saminathan
    Saminathan avatar
    2 posts
    Member since:
    Jul 2013

    Posted 19 Jul 2013 Link to this post

    Hi,

    Thank you, Best fit works for Data cell.

     I want best fit to be invoked while expand and collapse row Header. I have attached the Screen shot Actual Size and Best Fit  Regards,

     Saminathan.B

  5. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 24 Jul 2013 Link to this post

    Hi Saminathan,

    Thank you for writing back.

    RadPivotGrid does not offer such functionality and you should adjust the size of these colums/rows manually via pivot's API methods:
    radPivotGrid1.PivotGridElement.SetRowHeaderWidth(300, 0); //first row header will 300pixel
    radPivotGrid1.PivotGridElement.ColumnWidth = 300;
    //or RowHeight or ColumnWidth

    I hope this helps because I am not able to provide another way to resize these columns.

    Regards,
    Peter
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top