<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Widening drop-down list at runtime</title><link>https://www.infopathdev.com:443/forums/thread/11920.aspx</link><pubDate>Tue, 26 Sep 2006 12:26:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11920</guid><dc:creator>LaurieAPMarsh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11920.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=11920</wfw:commentRss><description>I don't quite understand what you mean by using 2 sections.  Is there an example on InfoPatnDev?&lt;br /&gt;&lt;br /&gt;What I have is a repeating table.  Each row includes the drop-down box and a text box.  The user selects an item from the drop-down lit and then edits the text box to comment on his selection.  The comment is the most important item so I don't want to make it narrow.  The drop-down list is like an account list where there is a number and a description.  They need to see the description only to be sure they select the right account.  &lt;br /&gt;&lt;br /&gt;I am trying to keep each row in the repeating table to a single line of controls if at all possible.  &lt;br /&gt;</description></item><item><title>Re: Widening drop-down list at runtime</title><link>https://www.infopathdev.com:443/forums/thread/11919.aspx</link><pubDate>Mon, 25 Sep 2006 23:38:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11919</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11919.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=11919</wfw:commentRss><description>Hi Laurie,&lt;br /&gt;you can use two sections (with different width dropdowns bound to same data field) to conditionally control the width. This only gives two settings. If you need more dynamic settings, I would suggest either a) using a popup or b) taskpane. The view itself cannot be programmatically accessed since that would involve changing the XSL at runtime which isn't supported. However, switching between sections is supported and multiple controls can be bound to the same data field. Also, changing the width of a dropdown in the taskpane or a popup dialog is easy. Good luck!</description></item><item><title>Widening drop-down list at runtime</title><link>https://www.infopathdev.com:443/forums/thread/11726.aspx</link><pubDate>Mon, 25 Sep 2006 14:10:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11726</guid><dc:creator>LaurieAPMarsh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11726.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=11726</wfw:commentRss><description>I have an InfoPath form with a repeating section that I want to remain one line per item in the section.  However, one of the items is a drop-down list whose values are kind of long.  I would like the drop-down list to widen automatically when the user clicks on it to make his selection - so he can see not only the code but the length description too.  &lt;br /&gt;&lt;br /&gt;I don't see an attribute that allows this to happen so I thought I would just do it myself programmatically since I already have C# code behind the form.  However, I don't see how to create a &lt;br /&gt;handler for the Click event (or some other such event for a drop-down list).  I thought if I could get the Click event and the control object I could set the width to be wider and then set it back after the user makes his choice.  &lt;br /&gt;&lt;br /&gt;Is this possible or is there another way to achieve my goal? Do I have to pop up a secondary dialog box to act as the drop-down list?&lt;br /&gt;Laurie&lt;br /&gt;</description></item></channel></rss>