<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://helpcentral.componentone.com/CS/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>Control Focus In WebDialog</title><link>http://helpcentral.componentone.com/CS/Legacy_26/f/69/p/78475/215208.aspx#215208</link><description>Hello, I&amp;#39;m using a button to load a webdialog. This works great using the code I&amp;#39;ve seen on this forum. Now I want to set the focus to a control on the dialog when it loads. However, I can&amp;#39;t seem to get it to work. Any suggestions? Also, how</description><dc:language>en</dc:language><generator>Telligent Community (Build: 5.5.134.11459)</generator><item><title>Re: Control Focus In WebDialog</title><link>http://helpcentral.componentone.com/CS/thread/217248.aspx</link><pubDate>Thu, 30 Apr 2009 06:28:47 GMT</pubDate><guid isPermaLink="false">6ffc9ae0-0270-4839-b826-46696419445e:217248</guid><dc:creator>C1_SergeiS</dc:creator><description>&lt;div&gt;&lt;font face="Arial" size="2"&gt;Hi,&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="Arial" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;&lt;font face="Arial" size="2"&gt;
&lt;div&gt;&lt;br /&gt;You need to use C1WebDialog.OnClientShown client-side event.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Suppose there is a textbox with ID set to &amp;quot;TextBox2&amp;quot; in C1WebDialog, which 
we&amp;#39;d like to focus on when a dialog&lt;br /&gt;is shown:&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; function 
C1WebDialog1_OnClientShown(sender, e)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
$get(&amp;quot;TextBox2&amp;quot;).focus();&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;lt;c1d:C1WebDialog ... OnClientShown=&amp;quot;C1WebDialog1_OnClientShown&amp;quot; 
....&amp;gt;&lt;br /&gt;...&lt;br /&gt;&amp;lt;/c1d:C1WebDialog&amp;gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Regards,&lt;/div&gt;
&lt;div&gt;Sergey.&lt;/font&gt;&lt;/div&gt;
&lt;blockquote style="PADDING-RIGHT:0px;PADDING-LEFT:5px;MARGIN-LEFT:5px;BORDER-LEFT:#000000 2px solid;MARGIN-RIGHT:0px;"&gt;
  &lt;div&gt;&amp;lt;melong1&amp;gt; wrote: &lt;a&gt;news:215208@10.0.1.98&lt;/a&gt;...&lt;/div&gt;
  &lt;p&gt;Hello,&lt;/p&gt;
  &lt;p&gt;I&amp;#39;m using a button to load a webdialog.&amp;nbsp; This works great using the 
  code I&amp;#39;ve seen on this forum.&amp;nbsp; Now I want to set the focus to a control 
  on the dialog when it loads.&amp;nbsp; However, I can&amp;#39;t seem to get it to 
  work.&amp;nbsp; Any suggestions?&lt;/p&gt;
  &lt;p&gt;Also, how do you make a WebTopicBarGroup scroll?&amp;nbsp; I&amp;#39;ve tried 
  everything and I&amp;#39;m getting frustrated.&amp;nbsp; I see that there is a 
  C1WebScrollableGroup but how do you make the topic bar use it?&lt;/p&gt;
  &lt;p&gt;Again, sorry if this has been covered but I&amp;#39;ve looked everywhere and can&amp;#39;t 
  seem to find any solutions.&lt;/p&gt;
  &lt;p&gt;ASP.NET&lt;/p&gt;
  &lt;p&gt;VB.NET&lt;/p&gt;&lt;br /&gt;
  &lt;hr /&gt;
  &lt;a href="http://helpcentral.componentone.com/cs/forums/p/78475/215208.aspx#215208"&gt;http://helpcentral.componentone.com/cs/forums/p/78475/215208.aspx#215208&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Control Focus In WebDialog</title><link>http://helpcentral.componentone.com/CS/thread/215208.aspx</link><pubDate>Tue, 10 Mar 2009 23:32:49 GMT</pubDate><guid isPermaLink="false">6ffc9ae0-0270-4839-b826-46696419445e:215208</guid><dc:creator>melong1</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using a button to load a webdialog.&amp;nbsp; This works great using the code I&amp;#39;ve seen on this forum.&amp;nbsp; Now I want to set the focus to a control on the dialog when it loads.&amp;nbsp; However, I can&amp;#39;t seem to get it to work.&amp;nbsp; Any suggestions?&lt;/p&gt;
&lt;p&gt;Also, how do you make a WebTopicBarGroup scroll?&amp;nbsp; I&amp;#39;ve tried everything and I&amp;#39;m getting frustrated.&amp;nbsp; I see that there is a C1WebScrollableGroup but how do you make the topic bar use it?&lt;/p&gt;
&lt;p&gt;Again, sorry if this has been covered but I&amp;#39;ve looked everywhere and can&amp;#39;t seem to find any solutions.&lt;/p&gt;
&lt;p&gt;ASP.NET&lt;/p&gt;
&lt;p&gt;VB.NET&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>