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
355
Unable to set width for WebDropDown input field
posted

Hi,

I've a WebDropDown control and have assigned a width to it. User selects any one value from the drop down list and we fire a server side event using OnSelectionChanged handler. After doing server side processing the width of the input field of WebDropDown reduces. We'd set the width of WebDropDown using Width property and made sure the css class igdd_ValueDisplay has Width set to 100%. Still no luck.

Also AutoPostBackFlags-SelectionChanged is set to "On".

Can you please let me know if I'm missing anything.

Thx,

Sagar

Parents
No Data
Reply
  • 49378
    Verified Answer
    posted

    Hi Sagar,

    Thank you for posting in the community.

    So far I am unable to replicate the matter using version 11.2. In order to research the matter further I would need a sample illustrating the behavior. In the meantime you could try using the Initialize client-side event to try and set the width of the input field using:

    ig_controls.WebDropDown1._elements["Input"].style.width = "100%";

    Please feel free to contact me if you have any questions.

Children