Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1960
Set the grid's width using a css class
posted

Right I'm setting the width of the grid using the property UltraWebgrid.Width, which seems to be the same as the UltraWebgrid.DisplayLayout.FrameStyle.Widht. I want to set the width in my css, and then set UltraWebgrid.DisplayLayout.FrameStyle.CssClass to a class located in the css. I did that and it doesn't work.

Is there a way to set the widht from a css?

Parents
  • 28464
    posted

    Hello Oscar,

    Applying Css style directly on FrameStyle did the trick for me (works only for width though, height for tables in Css seems like a generally tricky topic), so I assume something in the other settings of your grid interferes? I started with an empty grid (dropped from toolbox), bound to NorthWind AccessDataSource1 and then I have this:

    <style type="text/css">
       
        .gridSize
        {
            width: 300px;
            height: 300px;
        }
      
       
        </style>
       
    <FrameStyle CssClass="gridSize"></FrameStyle>

    With applies as expected to me. What am I missing? 

Reply Children