Problem of ModalPopUp with UpdateProgress in Grid View

Last post 07-13-2009 2:49 AM by harieis. 7 replies.

Sort Posts:

  • Problem of ModalPopUp with UpdateProgress in Grid View

    07-10-2009, 3:22 AM
    • Member
      point Member
    • baby_pinky
    • Member since 05-07-2009, 7:57 AM
    • Posts 9

    Hi All, I have a grid view where in contains image buttons (ID=btnEdit) in every row, when i click on this image button, it suppose to show up an Update Progress loading picture by using Modal Popup Extender. My problem is when it executing, will throw out an Errow Message which status that TargetControlID="btnEdit" couldn't find. How do trace the ID from grid view? Thank you.

    Below here is my code:-

    ***gvwTransaction

    <asp:GridView ID="gvwTransaction" runat="server">
        <Columns>
            <asp:TemplateField HeaderText="Edit" ShowHeader="False">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Top" Width="21" />
                <ItemTemplate>
                    <asp:ImageButton ID="btnEdit" runat="server" CausesValidation="False" CommandName="Edit"
                        ImageUrl="~/Images/edit.gif" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>

    ***pnlProgress

    <asp:Panel ID="pnlProgress" runat="server">
        <asp:UpdateProgress ID="UpdateProgress1" AssociatedUpdatePanelID="upCallTrack" runat="server">
            <ProgressTemplate>
                <div>
                    <center>
                        <asp:Image runat="server" ID="ProgressImage" ImageUrl="~/Images/loading1.gif" />
                    </center>
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    </asp:Panel>

    ***mpeProgress

    <ajaxToolkit:ModalPopupExtender ID="mpeProgress" runat="server" TargetControlID="btnEdit"
        PopupControlID="pnlProgress">
    </ajaxToolkit:ModalPopupExtender>

  • Re: Problem of ModalPopUp with UpdateProgress in Grid View

    07-12-2009, 7:58 AM

    I suppose that all this code is inside the update panel named "upCallTrack"

    then, I think you do not need the modal popup extender

    associating the update progress to the update panel makes the update progress be shown when the update panel is being updated, which is what you need as I understand

    Please Mark As Answer if my post helps you
    Thanks
  • Re: Problem of ModalPopUp with UpdateProgress in Grid View

    07-12-2009, 10:36 AM
    • Member
      point Member
    • baby_pinky
    • Member since 05-07-2009, 7:57 AM
    • Posts 9

    Hi Mohammed.Hassan,

    Thank you for the replied, you are right on 80% BUT my requirements requested the background to turn into "disable" mode when the update progress is showing on the screen. Any ideas on it?



  • Re: Problem of ModalPopUp with UpdateProgress in Grid View

    07-12-2009, 11:03 AM
    • Contributor
      5,621 point Contributor
    • alaa9jo
    • Member since 07-01-2009, 1:17 PM
    • Jordan
    • Posts 1,032

    Try this:

    <ProgressTemplate>

     

    <div class="progressBackgroundFilter"></div>
                                <center><div class="processMessage">

                        <asp:Image runat="server" ID="ProgressImage" ImageUrl="~/Images/loading1.gif" />
                    </div>
    </center>
                        </ProgressTemplate>

     

    In css:

    .processMessage
    
    {
    position: fixed;top: 39%;left: 41%;padding: 10px;width: 20%;z-index: 1001;background-color: #fff;border: outset 3px #6389ab; } 
    
    .progressBackgroundFilter
    {
    position: fixed;top: 0px;bottom: 0px;left: 0px;right: 0px;overflow: hidden;padding: 0;margin: 0;background-color: Gray;filter: alpha(opacity=60);opacity: 0.60;z-index: 1000;
     }
    


     

    Best Regards,
    Ala'a Alnajjar
    ----------------------------------------------------
    Please remember to click “Mark as Answer” on the post(s) that help(s) you even if they were for the same person.
    Also remember to close the thread by selecting “Resolved”,you will find it in your first post.

    Convert C# to VB.net and visa versus

    My Webblog
  • Re: Problem of ModalPopUp with UpdateProgress in Grid View

    07-13-2009, 2:12 AM

    Hi baby_pinky,

    You can disable the background when the update panel is being updated by using ModalUpdateProgress instead of UpdateProgress

    Check this link:

    http://www.codeproject.com/KB/ajax/ModalUpdateProgress.aspx

    Please Mark As Answer if my post helps you
    Thanks
  • Re: Problem of ModalPopUp with UpdateProgress in Grid View

    07-13-2009, 2:14 AM
    Answer

    Hi baby_pinky,

    You can disable the background when the update panel is being updated by using ModalUpdateProgress instead of UpdateProgress

    Check this link:

    http://www.codeproject.com/KB/ajax/ModalUpdateProgress.aspx

    Please Mark As Answer if my post helps you
    Thanks
  • Re: Problem of ModalPopUp with UpdateProgress in Grid View

    07-13-2009, 2:30 AM
    Answer

     Hi,

    Please check this link and use this modalupdate progress bar: http://vincexu.blogspot.com/2008/10/how-to-make-modalupdate-progress-bar-on.html


    Vince Xu
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Re: Problem of ModalPopUp with UpdateProgress in Grid View

    07-13-2009, 2:49 AM
    • Member
      561 point Member
    • harieis
    • Member since 04-23-2009, 8:11 AM
    • Trivandrum
    • Posts 150

    Hi


    I think the best way is update progress in the masterpage....

    the benefit is any postback will hapen the update progress wil wrok




    Please, Mark as Answer if this reply helped you
    ==============================================

    Harikrishnan.S
    Trivandrum,Technopark,
    Kerala,
    India
    harikrishnans82@gmail.com
    ==================================================
Page 1 of 1 (8 items)