This is a migrated thread and some comments may be shown as answers.

How to grey out the grid and disable while loading

4 Answers 291 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Sub
Top achievements
Rank 1
Sub asked on 08 May 2009, 08:24 PM
I used to have a RadGrid inside AJAXPanel and specify LoadingPanelID="ajaxLoadingImage"

 

<telerik:RadAjaxLoadingPanel ID="ajaxLoadingImage" EnableViewState="false" runat="server" BackColor="Gray" Transparency="90">

 

 

</telerik:RadAjaxLoadingPanel>

I want to grey out the grid and disable it when ever the grid is loading in MVC. I understand The Rad Ajax is not supported in MVC. Is there any work around to grey it out?

Thanks 

 

4 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 11 May 2009, 02:29 PM
Hello Sub,

I guess you are building your submit buttons/links in MVC using Ajax.ActionLink - AjaxExtensions..::.ActionLink Method .
This extension method has as last parameter AjaxOptions in which you can specify markup that will be used as loading panel and show above the updated content. There are also few event that you can use for customizing where and what to be shown: AjaxOptions..::.LoadingElementId Property

Greetings,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Sub
Top achievements
Rank 1
answered on 11 May 2009, 02:55 PM
I am sorry I did not mention that I am using JQuery to load the grid. The Fading on images can be done by jquery. But I could NOT grey out the RadGrid.
0
Sub
Top achievements
Rank 1
answered on 13 May 2009, 01:31 PM
Is there any workaround suggested by Telerik??
0
Nikolay Rusev
Telerik team
answered on 14 May 2009, 12:36 PM
Hello Sub,

For your convenience I am attaching sample project.
It demonstrates ajaxified RadGrid in MVC project. There are two handlers attached: OnBegin and OnComplete/more info on AjaxOptions Properties/. Those events are fired whenever you click on RadGrid(page/sort etc.) and you can use them to do your custom loading screen.
In both events you have reference to RadGrid client object.

Please find the attached project and review the code.

Best wishes,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Sub
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Sub
Top achievements
Rank 1
Share this question
or