﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Defaultfocus and Defaultbutton</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Defaultfocus-and-Defaultbutton/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Defaultfocus and Defaultbutton</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Defaultfocus-and-Defaultbutton/</link><pubDate>Sun, 06 Dec 2009 22:06:52 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Hi Michael,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The problem is occured because, if you use the "IntegratedToDesktopManager", the object is undefined since it point back to the Main DektopManager. If you want to use property "IntegratedTODesktopManager", instead of using "parentFrame.ISGetObject("WebDialogBox1")", you need to use "parentFrame.window[1].ISGetObject("WebDialogBox1")".&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I hope it can help and please do not hesitate to ask if you have any other questions.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Thank you,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Defaultfocus and Defaultbutton</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Defaultfocus-and-Defaultbutton/</link><pubDate>Fri, 04 Dec 2009 08:09:38 GMT</pubDate><dc:creator>Michael</dc:creator><description>&lt;p&gt;Hi Andi&lt;/p&gt;
&lt;p&gt;IntegratedToDesktopManager was set "true" on WebDialogbox! That was the main problem!&lt;/p&gt;</description></item><item><title>Defaultfocus and Defaultbutton</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Defaultfocus-and-Defaultbutton/</link><pubDate>Thu, 03 Dec 2009 05:36:53 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Hi Michael,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In order to get the DialogObject for closing you will need more than window.parent, you will also need "parentFrame.ISGetObject&lt;/span&gt;&lt;span style="font-size: 9pt"&gt;("WebDialogBox1")". To understand more, I attach you my sample code that include the AutoFocus on WebInput inside the WebDialogBox and WebButton to &lt;/span&gt;&lt;span style="font-size: 9pt"&gt;close the WebDialogBox.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;But sorry to tell you, WebButton cannot be assigned for defaultButton. I hope it can help you, and if you have any other questions, please &lt;/span&gt;&lt;span style="font-size: 9pt"&gt;do not hesitate to ask.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Tha&lt;/span&gt;&lt;span style="font-size: 9pt"&gt;nk yo&lt;/span&gt;&lt;span style="font-size: 9pt"&gt;u,&lt;br /&gt;Andi Santoso.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;</description></item><item><title>Defaultfocus and Defaultbutton</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Defaultfocus-and-Defaultbutton/</link><pubDate>Wed, 02 Dec 2009 17:01:23 GMT</pubDate><dc:creator>Michael</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;How can i set &lt;strong&gt;defaultfocus on WebInput&lt;/strong&gt; and &lt;strong&gt;defaultbutton onWebbutton&lt;/strong&gt; Control?&lt;/p&gt;
&lt;p&gt;I have a Webform like sample Detailview.aspx but i use Desktopmanager&lt;/p&gt;
&lt;p&gt;- Desktopmanager &lt;/p&gt;
&lt;p&gt;  - Window x&lt;/p&gt;
&lt;p&gt;  - Window y&lt;/p&gt;
&lt;p&gt;  - &lt;span style="color: #ff0000"&gt;Window z&lt;/span&gt; (ContentMode =&lt;span style="color: #ffff00"&gt; &lt;span style="background-color: #bfbfbf"&gt;IFrame&lt;/span&gt;&lt;/span&gt;)&lt;/p&gt;
&lt;p&gt;     - &lt;span style="color: #ff0000"&gt;&lt;span style="color: #ffff00"&gt;&lt;span style="background-color: #bfbfbf"&gt;Webform_z1.aspx&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;includes WebGrid and Dialogbox (ContentMode = &lt;span style="color: #0070c0"&gt;IFrame&lt;/span&gt;)&lt;/p&gt;
&lt;p&gt;        - &lt;span style="color: #0070c0"&gt;Webform_Dialogbox.aspx&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please have a look on attached picure. &lt;/p&gt;
&lt;p&gt;How can i get the Dialogobject for closing? With &lt;em&gt;window.parent&lt;/em&gt; i get the object of Desktopmanager!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I want to customize this sample, that after loading the page automatically selects the first Webinput Control. I want to define the Add-Button as defaultbutton that I am only to press the Enter key for adding new records.&lt;/p&gt;
&lt;p&gt;On standalone Webforms i can set defaultbutton and defaultfocus on form tag. But this doesn't work in this sample!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The new record is inserted to database when i click on the Add Button. The &lt;strong&gt;dialog box closes&lt;/strong&gt; automatically and the &lt;strong&gt;WebGrid will be refreshed&lt;/strong&gt;! How this is done?&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;</description></item></channel></rss>