JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Data Grid Could anyone share tips on Grid for Angular?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #112855
    emily.thorne91
    Participant

    How can I make the Smart Grid responsive?

    #112859
    Markov
    Keymaster

    Hi,

    Smart Grid (smart-grid) is responsive out of the box, but to make it adapt nicely across different screen sizes you usually combine a few things:

    Use percentage or auto width/height

    Instead of fixed px, let the Grid resize with its container:

    
    <smart-grid id="grid"></smart-grid>
    
    <style>
      smart-grid {
        width: 100%;
        height: 100%;
      }
    
      /* Example: responsive container */
      .grid-container {
        width: 100%;
        height: calc(100vh - 100px);
        overflow: hidden;
      }
    </style>

    Best regards,
    Markov

    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.