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

Need GridHyperLinkColumn to Trigger Wait Graphic in RadAjaxLoadingPanel

2 Answers 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeremy Yoder
Top achievements
Rank 1
Jeremy Yoder asked on 06 Aug 2011, 04:34 PM

I have a RadGrid with a GridHyperLinkColumn. When clicked, it calls a javascript function that takes several seconds to run. I have a RadAjaxLoadingPanel set to run the wait graphic against the Grid, which works for other things on the Grid when a postback occurs. The GridHyperLinkColumn is as follows...

<telerik:GridHyperLinkColumn HeaderText="" UniqueName="View" DataTextField="CheckType" DataTextFormatString="View"
    DataNavigateUrlFields="CheckNumber,CheckType"
    DataNavigateUrlFormatString="javascript:ViewCheck({0},'{1}')">
    <HeaderStyle Width="100px" />
    <ItemStyle HorizontalAlign="Right"/>
</telerik:GridHyperLinkColumn>

The javascript function "ViewCheck" works (accepting the grid row's fields and calling a WebMethod in VB code-behind). But because there's no postback, the wait graphic never shows. How can I get the wait graphic to appear over the Grid in this scenario?

2 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 11 Aug 2011, 11:40 AM
Hello Jeremy,

You can explicitly show and hide the loading panel when needed through client script. You can read more about this in this help article and see a live example in this online demo.

I hope this helps.

Regards,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Jeremy Yoder
Top achievements
Rank 1
answered on 15 Aug 2011, 07:07 PM

Very slick! Thanks!
Tags
Grid
Asked by
Jeremy Yoder
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Jeremy Yoder
Top achievements
Rank 1
Share this question
or