﻿<?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 - loading image in webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/loading-image-in-webgrid/</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>loading image in webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/loading-image-in-webgrid/</link><pubDate>Thu, 13 Jan 2011 23:54:01 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I’d like to suggest you to use the SetBusy() and SetIdle() WebGrid method. The SetBusy() method marks the grid status as busy. When a grid is busy, we have to wait until the grid is set to idle before we can invoke another action. While the SetIdle() method marks the grid status as idle.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Both SetBusy() and SetIdle() methods are invoked from client-side. You can utilize the InvokeScript method to invoke client-side function script from server-side as shown in the following snippet code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;default.aspx.cs&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;protected void WebGrid1_ButtonClick(object sender, ISNet.WebUI.WebGrid.ButtonEventArgs e)
{
    WebGrid1.ClientAction.InvokeScript("SetWebGridToBusy()");
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;default.aspx&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;script type="text/javascript"&amp;gt;
    &amp;lt;!--
    function SetWebGridToBusy() {
        var WebGrid1 = ISGetObject("WebGrid1");

        // Use SetBusy() method to marks the grid status as busy.
        WebGrid1.SetBusy();

        // Use SetIdle() method to marks the grid status as idle.
        //WebGrid1.SetIdle();

        return true;
    }
    --&amp;gt;
&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>loading image in webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/loading-image-in-webgrid/</link><pubDate>Thu, 13 Jan 2011 03:57:43 GMT</pubDate><dc:creator>ismail</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I am using Webgrid (2009 R2).&lt;/p&gt;
&lt;p&gt;Here in my webgrid, i am using one column as button. The code is as below&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGrid ID="WebGrid2" Visible="False" runat="server" Height="530px" UseDefaultStyle="True"
                        Width="770px" OnInitializeLayout="WebGrid1_InitializeLayout" oninitializedatasource="WebGrid1_InitializeDataSource"  DefaultStyleMode="Win7" onbuttonclick="WebGrid1_ButtonClick"&amp;gt;
                        &amp;lt;RootTable&amp;gt;
                            &amp;lt;Columns&amp;gt;
                                &amp;lt;ISWebGrid:WebGridColumn ButtonAutoPostback="True" ButtonImage="Images/select.png"
                                    ButtonText="Select" Caption="Select" ColumnType="ButtonImage" DataMember="CUST_CODE"
                                    EditInfoImage="images/login1.png" EditType="NoEdit" Name="WebGridColumn7" Width="60px"&amp;gt;
                                &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                               
                            &amp;lt;/Columns&amp;gt;
                        &amp;lt;/RootTable&amp;gt;
                        &amp;lt;LayoutSettings AllowColumnMove="Yes" AllowExport="Default" AllowFilter="Yes" AllowGrouping="Yes"
                            AllowMultipleSelection="Default" AllowSelectColumns="Yes" AllowSorting="Yes" AutoFitColumns="True" PagingSize="10" AlwaysShowHelpButton="False" StatusBarVisible="False" GroupByBoxVisible="True"&amp;gt;
                           &amp;lt;ButtonStyle BackColor="Transparent" Width="200px" BorderWidth="0px"&amp;gt;
            &amp;lt;/ButtonStyle&amp;gt;
                            &amp;lt;/LayoutSettings&amp;gt;
&amp;lt;/ISWebGrid:WebGrid&amp;gt;&lt;/pre&gt;

&lt;p&gt; &lt;/p&gt;
&lt;p&gt;When i click on the button, i am doing something lengthy operation in the backend. Here i want to use "loading" indication on the page, when some one click the button.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I tried th use Ajax updateprogress and ajax upadepanel to implement the loading effect by putting grid inside the updatepanel. But it is not working.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Is there any way to do it in your webgrid control&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;thanks and regards&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;ismail&lt;/p&gt;</description></item></channel></rss>