﻿<?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 - Button click event fires twice</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Button-click-event-fires-twice/</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>Button click event fires twice</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Button-click-event-fires-twice/</link><pubDate>Fri, 04 Sep 2009 06:06:23 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Ok, thank you for your feedback. I will forward this to our development team about this.&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Button click event fires twice</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Button-click-event-fires-twice/</link><pubDate>Tue, 01 Sep 2009 20:21:34 GMT</pubDate><dc:creator>GeorgeB</dc:creator><description>&lt;p&gt;Handy&lt;/p&gt;&lt;p&gt;On the button bottom being clipped.&lt;/p&gt;
&lt;p&gt;One would assume that if i use the defaultstyle the row would display correctly. That is the font would be sized to fit; buttons would fit; etc.&lt;/p&gt;
&lt;p&gt;You need to rethink this.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Button click event fires twice</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Button-click-event-fires-twice/</link><pubDate>Mon, 31 Aug 2009 23:44:23 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'times new roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; " /&gt;&lt;/p&gt;&lt;/p&gt;&lt;p style="margin-top: 10px; margin-bottom: 10px; "&gt;You only need to customize &lt;i&gt;&lt;b&gt;RowHeightDefault&lt;/b&gt;&lt;/i&gt; property. The size of height need to be customized based on your button size.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;For the last issue about numbering, thank you for reporting to us. I can see the issue in here now. I will forward this to our developer team. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Regards, &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Handy &lt;br /&gt;&lt;/p&gt;&lt;/div&gt;
&lt;p /&gt;</description></item><item><title>Button click event fires twice</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Button-click-event-fires-twice/</link><pubDate>Mon, 31 Aug 2009 19:49:14 GMT</pubDate><dc:creator>GeorgeB</dc:creator><description>&lt;p&gt;Thanks Handy.&lt;br /&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;
&lt;p&gt;There is still one open issue and that is the bottom of the button is not displayed. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I can't open your wmv file. &lt;br /&gt;&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;this is a test 
&lt;p&gt;second line. i would expect this line to be numbered 2&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;i'm using firefox. this should be numbered 3.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;  &lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;</description></item><item><title>Button click event fires twice</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Button-click-event-fires-twice/</link><pubDate>Mon, 31 Aug 2009 00:01:44 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello George,&lt;/p&gt;&lt;p&gt;On your scenario, some issues happened because you were missing some settings. &lt;/p&gt;
&lt;p&gt;When you are using Ajax Update panel, our control needs some settings inside. &lt;/p&gt;
&lt;p&gt;I modified your sample and you can see the detail codes in there. &lt;/p&gt;
&lt;p&gt;For alert issue in WebButton, It happened because you are using FullPostBack mode. &lt;br /&gt;In FullPostBack mode, of course the alert did not show. &lt;br /&gt;&lt;br /&gt;Try to compare it with WebGrid button. It is not FullPostBack.&lt;br /&gt;That's why you can see the alert (&lt;i&gt;&amp;nbsp;AutoPostBack= true &lt;/i&gt;and &lt;i&gt;PostBackMode=FlyPostBack &lt;/i&gt;).&lt;/p&gt;
&lt;p&gt;About your report forum issues, I have tried numbering but it worked fine. You can also see the attached recording.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Button click event fires twice</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Button-click-event-fires-twice/</link><pubDate>Sat, 29 Aug 2009 21:34:26 GMT</pubDate><dc:creator>GeorgeB</dc:creator><description>&lt;p&gt;Thanks Handy,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I followed your suggestion and still was getting strange results. in debug there would be a double click and in view browser one click. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;So I rebuilt it (see attached). I also added a webButton and AJAX. I get the same reuslts with or without Ajax. &lt;br /&gt;&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Click the button in the grid and the alert is displayed but the textbox doesn't change.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Click the webButton and the alert isn't displayed but the textbox changes. &lt;br /&gt;&lt;/li&gt;&lt;li&gt;Note that the bottom of the webgrid button is missing. &lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt; &lt;/p&gt;
&lt;p&gt; still having problems attaching a file. i had to change the file name.. also, if i turn on numbering and type lines then the numbering doesn't work. if i type the lines, highlight them and select numbering then it works.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Button click event fires twice</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Button-click-event-fires-twice/</link><pubDate>Fri, 28 Aug 2009 00:14:28 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;George,&lt;/p&gt;&lt;p&gt;It works in here. Your sample is missing something because you run in VB. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Here, try to see your code below.&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;Protected Sub WebGrid1_ButtonClick(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.ButtonEventArgs) Handles WebGrid1.ButtonClick
        TextBox1.Text = "Button clicked event. "
        WebGrid1.ClientAction.Alert(TextBox1.Text)
    End Sub&lt;/pre&gt;
&lt;p&gt;and in html code:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGrid ID="WebGrid1" runat="server" DataSourceID="AccessDataSource1"
DefaultStyleMode="Elegant" Height="250px" UseDefaultStyle="True" Width="500px"
OnButtonClick="WebGrid1_ButtonClick" OnInitializeDataSource="WebGrid1_InitializeDataSource"&amp;gt;&lt;/pre&gt;
&lt;p&gt;In .vb code, there is &lt;b&gt;&lt;i&gt;'H&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;andles WebGrid1.ButtonClick' &lt;/i&gt;&lt;span style="font-weight: normal; "&gt; while in your html code also has &lt;/span&gt;&lt;i&gt;'OnButtonClick="WebGrid1_ButtonClick"' &lt;/i&gt;&lt;span style="font-weight: normal; "&gt;. &lt;br /&gt;In vb, it would be automatically added (default behavior). That's why the event is called twice.&lt;br /&gt; &lt;br /&gt;So, you will need to choose discard &lt;b&gt;&lt;i&gt;H&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;andles WebGrid1.ButtonClick' &lt;span style="font-style: normal; font-weight: normal; "&gt;or&amp;nbsp;&lt;span style="font-style: italic; font-weight: bold; "&gt;OnButtonClick="WebGrid1_ButtonClick"' &lt;span style="font-style: normal; font-weight: normal; "&gt;. &lt;br /&gt;This should fix your issue.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>Button click event fires twice</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Button-click-event-fires-twice/</link><pubDate>Thu, 27 Aug 2009 18:56:03 GMT</pubDate><dc:creator>GeorgeB</dc:creator><description>&lt;p&gt;Handy,&lt;br /&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;
&lt;p&gt;There was a misunderstanding.  The button is in the WebGrid. Attached is a simple sample.  &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Clicking button "Hello" adds "Hello" to textbox1. Clicking "Clear" clears textbox1. &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Clicking the button in the "Select" column should change textbox1 to "Button
clicked event. " it doesn't on my system. That is, if textbox1 =
"hello", after clicking the button in the grid textbox1 still has
"hello" instead of "Button clicked event." The grid button also
displays an Alert with the contents of textbox1. On my system the Alert is displayed twice. &lt;br /&gt;
&lt;/p&gt;Also, please note that the button in the grid is missing the bottom. 

&lt;p&gt; &lt;/p&gt;
&lt;p&gt;This sample does not use Ajax or flypostback. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;btw, i tried to attach a file from a shared drive and it wouldn't work. i moved the file to my desktop and it worked. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Button click event fires twice</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Button-click-event-fires-twice/</link><pubDate>Thu, 27 Aug 2009 01:06:30 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;/p&gt;attached files are my recording and my sample. You can also modify it so it can replicate your issue. Hope this helps. &lt;img id="" style="border-right: medium none; border-top: medium none; border-left: medium none; border-bottom: medium none" src="http://www.intersoftpt.com/WebResources/Images/Community/Editor/smiley1.gif" /&gt; </description></item><item><title>Button click event fires twice</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Button-click-event-fires-twice/</link><pubDate>Thu, 27 Aug 2009 00:40:46 GMT</pubDate><dc:creator>GeorgeB</dc:creator><description>&lt;p&gt;there is a global.asax.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;it just a button in a column labled   "Select" &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;i put a break at the event and it happens twice. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Button click event fires twice</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Button-click-event-fires-twice/</link><pubDate>Wed, 26 Aug 2009 11:29:46 GMT</pubDate><dc:creator>GeorgeB</dc:creator><description>&lt;p&gt;i have a webGrid with a select button. Clicking the button causes the event to fire twice. I've tried this in Ajax and WebFlyPostBack. Has anyone else seen this action?&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>