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
210
The width of a dropdown in an UltraWebGrid
posted

I have an UltraWebGrid with a few columns, none of which are TemplateColumns, they are just regular columns.

One of these columns is a dropdown list and everything is working fine.

My only question is, Is there a way to affect the width of the dropdownlist in the column without making it a template column?

Basically as you can see above, I would like it if I could shorten the dropdown just a little bit but I can't seem to find out how without going to a template column.

Parents
No Data
Reply
  • 19693
    Verified Answer
    posted

    Hello Kusinagi ,

    Thank you for posting in our forums.

    You can use CustomRules property in order to set padding

        <igtbl:UltraGridColumn Key="KeyColumn" Width="200px" Type="DropDownList" IsBound="false"  AllowUpdate="Yes">                           

                                <ValueList >

                                    <Style Width="100px" HorizontalAlign="Left" VerticalAlign="Bottom" CustomRules="padding-right:2px;">                                    

                                    </Style>

                                    <ValueListItems>

    ….

                                    </ValueListItems>

                                </ValueList>

                            </igtbl:UltraGridColumn>

    Let me know if this helps.

Children
No Data