We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Wait image while filtering or sorting

Thread ID:

Created:

Updated:

Platform:

Replies:

108264 Apr 10,2013 02:29 PM Apr 15,2013 01:21 PM ASP.NET MVC (Classic) 1
loading
Tags: Grid
Marc Oden
Asked On April 10, 2013 02:29 PM

Is there anyway to display an image that indicates that the command is proccessing when one performs a search, sort, or filter of a cell?

Rakesh D [Syncfusion]
Replied On April 15, 2013 01:21 PM

Hi Marc,

 

Thank you for your interest in Syncfusion products.

 

Query : Wait image while filtering or sorting ?

 

To achieve your requirement we suggest you to use “OnActionBegin” event of grid and hide the default waiting popup and  show the waiting popup which is created according to your requirement. During “OnActionComplete” event of grid  hide the waiting popup which is shown in OnActionBegin event. Please refer below code snippet for further details.

 

[ aspx ]

 

<%=Html.Syncfusion().WaitingPopup("mypopup")

                    .Skin(Skins.Office2007Blue)

                    .ShowImage(true)

                    .ImageUrl(Url.Content("~/Content/ajax-loader.gif"))

                    .TargetId("grid")

        %>

 

<%=Html.Syncfusion().Grid<MvcSampleApplication.Models.EditableOrder>("flatgrid")

.ClientSideEvents(events =>

                    {

                        events.OnActionComplete("complete");

                        events.OnActionBegin("begin");

                    })

. . . . .

 

 

<script type="text/javascript">

        function complete(sender, args) {

            var waitingObj = $find("mypopup");

            waitingObj.HidePopUp();

        }

 

        function begin(sender, args) {

            sender.HideWaitingPopup()

            var waitingObj = $find("mypopup");

            waitingObj.ShowPopUp();

        }

    </script>

 

 

For your convenience we have prepared a sample for the above scenario and it is attached below. Please refer to it.

 

 

Please let us know if you have any concerns.

 

Regards,

Rakesh D

 

 



sample Waiting popup_384f5f90.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;