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
177
Changing dropdownlist height in UltraWebGrid
posted

Is it possible to change the height of dropdownlist (in edit mode) in UltraWebGrid? I tried:

Column.ValueList.Style.Height = Unit.Pixel(50)

 

But this does not work. Any idea?

Parents
No Data
Reply
  • 12679
    Verified Answer
    posted

    Hello vkamp,

     

    You can try this code :

       <style type="text/css">

            .testHeight{ height : 50px !important;}

        </style>

    <igtbl:UltraGridColumn Key="Item" BaseColumnName="Item" Type="DropDownList">

                         <ValueList>

                           <Style CssClass="testHeight" >

                             </Style>

                               <ValueListItems>

                               <igtbl:ValueListItem  DisplayText="Text1"/>

                                <igtbl:ValueListItem  DisplayText="Text2"/>

                                <igtbl:ValueListItem  DisplayText="Text3"/>

                               </ValueListItems>

                          </ValueList>

                      </igtbl:UltraGridColumn>

     

    I was able to apply custom rules for the dropdown only if I define a css class outside of the grid and reference it like in the code above.

    Hope that helps.

Children