Skip to content

Infragistics Community Forum / Web / Ignite UI for Angular / Change row height for igx-grid in Angular

Change row height for igx-grid in Angular

New Discussion
Charlie
Charlie asked on May 11, 2018 7:35 AM

I tried the new native Angular grid. The rows height are too large for me as I need to display lots of rows.

I would want the height to be around 21px.

I couldn’t find any documentation on how to do that.

Please advise.

Thank you

Sign In to post a reply

Replies

  • 0
    Aleksandar Kamenov
    Aleksandar Kamenov answered on May 8, 2018 11:52 AM

    Hello Charlie,

    You can refer here and see the whole documentation of the grid. Under the grid topic is the whole API documentation about it.

    If you have any further questions, please contact us again.

    • 0
      Charlie
      Charlie answered on May 8, 2018 6:10 PM

      Can you please point out where you see any info on row height. I’ve looked through the page you referred, multiple times. Can’t find any info on row height.

      • 0
        Aleksandar Kamenov
        Aleksandar Kamenov answered on May 10, 2018 11:42 AM

        Hello Charlie,

        Sorry about my misunderstanding. We haven't exposed such option. The way you can set the height of current row is to access the class and override the height style with important annotation. But this is strongly not recommended. We are planning to expose such options that you would be able to override the styles through given classes but for now you are restricted to set height per every row.

        If you have further questions, please contact us again.

      • 0
        Charlie
        Charlie answered on May 10, 2018 12:57 PM

        Hi, thanks for the reply.

        Actually I found that the grid has a rowHeight parameter that I can set in HTML [rowHeight]=“25”.

        The only other thing I needed was to override the padding to 0 for the igx-grid__td css class

      • 0
        Aleksandar Kamenov
        Aleksandar Kamenov answered on May 11, 2018 7:35 AM

        Hello Charlie,

        This was exactly what I had planned to tell you today. But you have found the property. Here you can find the documentation about how to use this input exactly. For instance If you have some styling upon the rows for example you want to set height through some class, you have to specify this height also through this same property too.

        In the future we are planning to create a theme which would be only related to the grid you would be able to override the styling about the grid through this theme without any struggling.

        You can see the roadmap it is the point 9.

        If you have further questions, please contact us again.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Charlie
Favorites
0
Replies
5
Created On
May 11, 2018
Last Post
8 years, 3 months ago

Suggested Discussions

Tags

Created by

Created on

May 11, 2018 7:35 AM

Last activity on

Feb 23, 2026 1:46 PM