Article K18357 provides excellent background info and an explanation of why your controls will not normally render side-by-side. It also offers a couple of suggestions on how to overcome this limitation. The article, though, is 6 years old. And in fact it makes reference at the end to the “new” ASPxFormLayout. I’m already using the FormLayout, but I’d like still add some of your controls side-by-side. I’ve tried applying the in-line style as suggested, but that does not seem to have the desired effect — each subsequent control appears below its predecessor. Do you have any more recent guidance (or preferably an example) of how to accomplish this within the FormLayout? Here’s an example. In one specific situation I need to allow for the entry of parts or all of a date. I can’t use an actual date control because I need to allow for partial dates (e.g. “July 2010”). I am using a dropdown list of month names, then a text box for the day and a text box for the year. The desire is to have it appear just like a written date entry (e.g., “January 12, 2010”). Putting each element in separate layout item introduces too much space between. Putting multiple items in the same layout item results in the stacked appearance. I can accomplish this using the standard lightweight HTML controls. The only downside to this approach is that the month dropdown now has a different appearance than other dropdowns on the form (which are ASPxDropdowns). (And there are other similar situations with multiple command buttons. I’d like to use the single theme-controlled color scheme throughout.)
- demo asked 9 years ago
- You must login to post comments