﻿<?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 - webgrid hyperlink image button</title><link>http://www.intersoftsolutions.com/Community/WebGrid/webgrid-hyperlink-image-button/</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>webgrid hyperlink image button</title><link>http://www.intersoftsolutions.com/Community/WebGrid/webgrid-hyperlink-image-button/</link><pubDate>Thu, 23 Aug 2012 00:13:54 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;What do you mean? As I described in my previous posted, I have some though regarding your requirement.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>webgrid hyperlink image button</title><link>http://www.intersoftsolutions.com/Community/WebGrid/webgrid-hyperlink-image-button/</link><pubDate>Wed, 15 Aug 2012 20:33:44 GMT</pubDate><dc:creator>Andre</dc:creator><category>WebGrid</category><description>&lt;p&gt;can you give me an example where the webgridcolumn goes in the html?&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGrid  
                                    &amp;lt;LayoutSettings&amp;gt;
&lt;/pre&gt;&lt;pre&gt;???&lt;/pre&gt;&lt;pre&gt;                                    &amp;lt;/LayoutSettings&amp;gt;
                                &amp;lt;/ISWebGrid:WebGrid&amp;gt;&lt;/pre&gt;
</description></item><item><title>webgrid hyperlink image button</title><link>http://www.intersoftsolutions.com/Community/WebGrid/webgrid-hyperlink-image-button/</link><pubDate>Wed, 15 Aug 2012 06:12:13 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;As far I know, you could not use asp button for your scenario. To trigger server side event, you need to use AutoPostBack true. In this state, any click clientside event would be ignored because it got postback first.&lt;/p&gt;
&lt;p&gt;Also, I am not sure about what did you mean by "I can't resize the image". Does this mean, that button size is not fit with the row height? If that so, to make it automatic size became fit, simple set &lt;b&gt;RowHeightDefault&lt;/b&gt; to &lt;b&gt;-1&lt;/b&gt;.&lt;/p&gt;
&lt;p&gt;In order to fullfil your scenario, I think you might want to try WebButton. Our WebButton has some advantages than the default button.&lt;br /&gt;You can set the display as image button. Also, you can also trigger flypostback.&lt;br /&gt;In this state you should able call your serverside event plus your clientside event.&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGridColumn Caption="ButtonImageColumn" ColumnType="Template" EditType="NoEdit"
Name="ButtonImageColumn" Width="100px" ButtonAutoPostback="True"&amp;gt;
    &amp;lt;CellTemplate&amp;gt;
         &amp;lt;ISWebDesktop:WebButton ID="WebButton1" runat="server" Height="20px"
          Text="TES" AutoPostback="True" onclicked="WebButton1_Clicked"  OnClientClick="WebButton1_OnClientClick"&amp;gt;
         &amp;lt;/ISWebDesktop:WebButton&amp;gt;
    &amp;lt;/CellTemplate&amp;gt;
&amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>webgrid hyperlink image button</title><link>http://www.intersoftsolutions.com/Community/WebGrid/webgrid-hyperlink-image-button/</link><pubDate>Tue, 14 Aug 2012 09:42:15 GMT</pubDate><dc:creator>Andre</dc:creator><category>WebGrid</category><description>&lt;p&gt;I have tried to use that buttonImagecolumn. The problem is their is a square around the image like it's a button, the Onclick event is fired on mouse down, not up, I can't resize the image (not sure how) and I also need to call a javascript Alert box first.&lt;/p&gt;
&lt;p&gt;So I figured If you could tell me how to just use a typical asp:imagebutton I could fix all my issues. I just need to know how to add it to the grid and know what button is being fired on postback.&lt;/p&gt;</description></item><item><title>webgrid hyperlink image button</title><link>http://www.intersoftsolutions.com/Community/WebGrid/webgrid-hyperlink-image-button/</link><pubDate>Mon, 13 Aug 2012 23:10:24 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hello Andre,&lt;/p&gt;&lt;p&gt;I guess you want to have image button that have click serverside event, correct? If that so, why don't you use our WebGrid ButtonImage type column?&lt;/p&gt;
&lt;p&gt;To trigger its server side, simple set the autopostback true.&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGridColumn Caption="ButtonImageColumn" ColumnType="ButtonImage" EditType="NoEdit" 
                        Name="ButtonImageColumn" Width="100px" ButtonAutoPostback="True" 
                        ButtonPostbackMode="FullPagePostback"&amp;gt;
&amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>webgrid hyperlink image button</title><link>http://www.intersoftsolutions.com/Community/WebGrid/webgrid-hyperlink-image-button/</link><pubDate>Mon, 13 Aug 2012 10:00:24 GMT</pubDate><dc:creator>Andre</dc:creator><category>WebGrid</category><description>&lt;p&gt;Thank you this works.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Can you send me an example on how to create a custom column using a ASP Control and capture the on click event?  So take the the example above where I add an html image and on click I capture the javascript event.  Now I want to be able to capture the server on click event.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;How do I add a server side control and how do I capture on click event?  The built in image button doesn't fit my needs.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Andre&lt;/p&gt;</description></item><item><title>webgrid hyperlink image button</title><link>http://www.intersoftsolutions.com/Community/WebGrid/webgrid-hyperlink-image-button/</link><pubDate>Sun, 12 Aug 2012 22:51:31 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;It would be easier if you use Custom column. You can combine any type/script in there.&lt;/p&gt;
&lt;p&gt;e.g&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt; if (e.Row.Cells.GetNamedItem("CustomerID").Text == "ALFKI")
 {
            e.Row.Cells.GetNamedItem("Test1").Text = "&amp;lt;a href='http://google.com'&amp;gt; &amp;lt;img alt='HyperLink' src='../../images/1.gif'/&amp;gt;";
 }&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>webgrid hyperlink image button</title><link>http://www.intersoftsolutions.com/Community/WebGrid/webgrid-hyperlink-image-button/</link><pubDate>Sat, 11 Aug 2012 13:56:07 GMT</pubDate><dc:creator>Andre</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I want to add an image to Columns 0 then on click run javascript code.&lt;/p&gt;
&lt;p&gt;When using a hyperlink another page opens no matter what target I use.  I only need an image and javascript to run, no hyperlink.&lt;/p&gt;
&lt;p&gt;Can you tell me how to have an image column and run javascript on click?&lt;/p&gt;&lt;pre style="background: white; color: black; font-family: consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: blue;"&gt;protected&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;void&lt;/span&gt;&amp;nbsp;WebGrid1_InitializeRow(&lt;span style="color: blue;"&gt;object&lt;/span&gt;&amp;nbsp;sender,&amp;nbsp;ISNet.WebUI.WebGrid.&lt;span style="color: rgb(43, 145, 175);"&gt;RowEventArgs&lt;/span&gt;&amp;nbsp;e)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WebGrid1.RootTable.Columns[0].ColumnType&amp;nbsp;=&amp;nbsp;ISNet.WebUI.WebGrid.&lt;span style="color: rgb(43, 145, 175);"&gt;ColumnType&lt;/span&gt;.HyperLink;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WebGrid1.RootTable.Columns[0].HyperlinkDisplayText&amp;nbsp;=&amp;nbsp;&lt;span style="color: rgb(163, 21, 21);"&gt;" &amp;lt;img onclick=\"msgbox3('Tools Update','ToolsAdminUpdate.aspx?id="&lt;/span&gt;&amp;nbsp;&amp;#43;&amp;nbsp;e.Row.Cells[0].Text&amp;nbsp;&amp;#43;&amp;nbsp;&lt;span style="color: rgb(163, 21, 21);"&gt;"','500px','420px')\" style='border:0; width:35px' alt='"&lt;/span&gt;&amp;nbsp;&amp;#43;&amp;nbsp;&lt;span style="color: rgb(163, 21, 21);"&gt;"?id="&lt;/span&gt;&amp;nbsp;&amp;#43;&amp;nbsp;e.Row.Cells[0].Text&amp;nbsp;&amp;#43;&amp;nbsp;&lt;span style="color: rgb(163, 21, 21);"&gt;"' src='Images/edit.png'/&amp;gt;"&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WebGrid1.RootTable.Columns[0].HyperlinkTarget&amp;nbsp;=&amp;nbsp;ISNet.WebUI.WebGrid.&lt;span style="color: rgb(43, 145, 175);"&gt;HyperlinkTarget&lt;/span&gt;.UseBase;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/pre&gt;</description></item></channel></rss>