I have created a simple filtering form containing several lines of Label-TextBox, or Label-DropDownList (the standard Microsoft DropDownList). In each case the TextBox (or DropDownList) sits to the right of the Label (they are both on the same line, as normal).
I would like to use the Infragistics WebCombo to replace some of the Microsoft DropDownList's, so the user can type free form as well as select from the list.
I was able to successfully do that except for one problem. The WebCombo insists on being on its own line. It will not sit to the right of the label. I have looked at all the Width settings, etc., and everything seems to fit easily; there is plenty of room for the label and the WebCombo to fit on the line. However the WebCombo will always go to the next line. (Or, in experimenting, if I put anything to the right of the WebCombo, that will also move to the next line no matter how skinny it is.)
Can someone explain how I can get the WebCombo to sit to the right of the label?
I have NetAdvantage version 8.1.
Thanks for sharing your solution here.
The reason that the WebCombo tries to appear on its own line is because it renders as an HTML table element. Most browsers will force elements that would otherwise appear adjacent to an HTML table to a new line - unless you use some kind of layout mechanism (such as another HTML table) to prevent this from occurring.
What an easy solution!
Actually, I couldn't get the Panel to work. It also wanted to be on its own line. But I used a Table with two columns (one for the label, the other for theWebCombo) and it worked fine. Thanks for the idea.
There might be some configuration, but an easy try would be to place the combo inside of a Panel or groupbox :)