No announcement yet.
  • Filter
  • Time
Clear All
new posts

  • Isomorphic
    There are lots of ways to do this, but we don't have enough information to suggest the best approach; not sure why you'd want to "waste" left-hand screen space, as it seems you might be doing.

    One entirely programmatic approach is to stick the grid in a HLayout and have it take a percent space, and right-align it. Or use a LayoutSpacer to take up whatever space you want. Use of CSS is more efficient than this, of course.

    If your grid as skinned by you doesn't have a border around the outside, layoutLeftMargin would also do it, as the grid is a subclass of Layout.

    Leave a comment:

  • cdesilva
    started a topic ListGrid alignment

    ListGrid alignment

    SmartClient Version: v12.1p_2020-05-04/Pro Deployment

    Good Afternoon Isomorphic,

    I have been working on trying to get padding on a list grid. It has an adjusted width and I would just like to move it more towards the center of the screen. I have been trying a couple things such as setting left, left padding or left margin to the desired size and getting little to no results. I understand that I could do this in CSS but i was wondering if you had a way to do it on the JavaScript side.

    Any help is appreciated.

    Thank you,
    Attached Files