How to increase the width of the combobox?

Stimulsoft Reports.WEB discussion
Carlos Massam
Posts: 20
Joined: Wed Jul 30, 2014 1:26 pm

How to increase the width of the combobox?

Post by Carlos Massam »

When I create a combobox using the Web report form, it displays the combo box always with the same width (see picture on the link below).
There is how to increase the width of the combobox?

https://dl.dropboxusercontent.com/u/340 ... mbobox.png
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: How to increase the width of the combobox?

Post by Vladimir »

Hello,

You can increase the width of the dropdown list using the following style:

Code: Select all

    <style>
        table.dropDownMenu {
            width: 400px !important;
        }
    </style>
Thank you.
Carlos Massam
Posts: 20
Joined: Wed Jul 30, 2014 1:26 pm

Re: How to increase the width of the combobox?

Post by Carlos Massam »

Hello!
It turns out the form and combobox are automatically generated, because I'm using variables (as can be seen in the image link below).
When I use variables, the report automatically creates the form and the combo box.
Where should I add this up your code?

https://dl.dropboxusercontent.com/u/340 ... rt_web.png
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to increase the width of the combobox?

Post by HighAley »

Hello, Carlos.

Previously you sent us a screen-shot where you use StiWebViewer. So you should use this style on the ASPX page.
If you need to change request from user in any other Viewer or Designer, please, specify which one you use.

Thank you.
Carlos Massam
Posts: 20
Joined: Wed Jul 30, 2014 1:26 pm

Re: How to increase the width of the combobox?

Post by Carlos Massam »

Sorry, maybe I have expressed myself badly and then you do not understand me.
I developed the Form and the Combobox in my report like this video at the link below.
In the video we can see that has a combo box, where it is possible to select the country. My question is how to increase the width of this Combobox.

https://youtu.be/GllL2MTuues
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to increase the width of the combobox?

Post by HighAley »

Hello.

The name of the form is Request From User Panel.
The answer depends on Viewer that you use.
Could you specify where do you need to set the Width?

Thank you.
Carlos Massam
Posts: 20
Joined: Wed Jul 30, 2014 1:26 pm

Re: How to increase the width of the combobox?

Post by Carlos Massam »

Hello.
I made one edition in the Paint than I need. Below you'll see two image. Before and after. The "Before" shows how're leaving today. The "After" shows what I need to do.

Before: https://dl.dropboxusercontent.com/u/34040351/before.png

After: https://dl.dropboxusercontent.com/u/34040351/after.png

Thanks.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to increase the width of the combobox?

Post by HighAley »

Hello, Carlos.

As we wrote before you could do this next way:
Vladimir wrote:You can increase the width of the dropdown list using the following style:

Code: Select all

    <style>
        table.dropDownMenu {
            width: 400px !important;
        }
    </style>
Thank you.
Carlos Massam
Posts: 20
Joined: Wed Jul 30, 2014 1:26 pm

Re: How to increase the width of the combobox?

Post by Carlos Massam »

Hello.

Sorry to ask, but in that part of the report I should add this code?

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to increase the width of the combobox?

Post by HighAley »

Hello, Carlos.

You should add this style to a ASPX page the Viewer is placed.

Thank you.
Post Reply