C1Flexgrid large column header text is cut-off

Posted by: anildabral3k on 18 July 2019, 9:23 pm EST

    • Post Options:
    • Link

    Posted 18 July 2019, 9:23 pm EST

    Hi,

    I am having an issue with C1Flexgrid (v4.0.20153.497) where I have a column header with a large text. This text is not fully shown(starting and ending characters are getting cut off). After searching, I found that I can use “AutoSizeColumns” to fix the cut-off issue by passing an appropriate value to the parameter named ‘extra’. It worked in the begining. But when I added more text to my large column header to make it even larger, it again started cutting off some part and I had to go back and increase the value of ‘extra’ parameter to fix it further.

    Is there a way so that I do not have to keep modifying ‘extra’ parameter based on the size of my column header text?

    I have attached my sample project. If you add more text to the ‘longColHeader’ you also have to modify the ‘extra’ in the Flexgrid_LayoutUpdated() event in the sample project.

    Thanks,

    Anil

    C1FlexgridTest(Col headers is cut-off).zip

  • Posted 21 July 2019, 9:46 pm EST

    Hello,

    Use the following line of code to acheive your requirements:

           ```
    

    flexgrid.AutoSizeColumns(0, flexgrid.ColumnHeaders.Columns.Count - 1, extra,true,true);

    
    Thanks.
  • Posted 22 July 2019, 2:09 pm EST

    Your solution worked. Thank you Mohitg.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels