I have a self referencing grid inwhich the users want to see a processing status indicator. I have set the ShowStatusBar="True" and it appears to be working when the hierarchy within the grid is collapsed but it is not showing when the grid is expanding. There is nothing in the code behind that would stop this from appearing. Does anyone have any idea why this would happen? I need the status to display on both the expand and collapse.
Thanks!
Thanks!
4 Answers, 1 is accepted
0

Richard
Top achievements
Rank 1
answered on 02 May 2012, 04:35 PM
Casey:
If you've not already seen this, there's a previous and recent forum thread that deals with the RadGrid Status Bar display that provides some insights:
ShowStatusBar=true not working
"... the status bar is intended primarily for use when RadGrid is used with RadAjaxManager to indicate when RadGrid is performing asynchronous AJAX requests."
It refers to the Hierarchical RadGrid online demo, which uses the Status Bar: Grid/Declarative Relations. In this demo, the status indicator only appears on collapse, and not on expand.
Apparently, there is no asynchronous AJAX request caused by the expansion.
Hope this helps!
If you've not already seen this, there's a previous and recent forum thread that deals with the RadGrid Status Bar display that provides some insights:
ShowStatusBar=true not working
"... the status bar is intended primarily for use when RadGrid is used with RadAjaxManager to indicate when RadGrid is performing asynchronous AJAX requests."
It refers to the Hierarchical RadGrid online demo, which uses the Status Bar: Grid/Declarative Relations. In this demo, the status indicator only appears on collapse, and not on expand.
Apparently, there is no asynchronous AJAX request caused by the expansion.
Hope this helps!
0

Casey
Top achievements
Rank 1
answered on 02 May 2012, 04:48 PM
I have code behind for the ItemCommand event for special processing on expand and collapse. Do you know of anything I could add into this to trick the grid into thinking there was an asynchronous AJAX request caused by the expansion?
0
Accepted
Hi,
You could achieve your scenario by overriding the RadGrid initializeRequest function at the end of your page as it is shown below.
Regards,
Antonio Stoilkov
the Telerik team
You could achieve your scenario by overriding the RadGrid initializeRequest function at the end of your page as it is shown below.
Telerik.Web.UI.RadGrid.prototype._initializeRequest =
function
(sender, args)
{
var
postBackElement = args.get_postBackElement();
if
(args.get_postBackElement() ==
this
.get_element() ||
Telerik.Web.UI.Grid.IsChildOf(postBackElement,
this
.get_element()))
{
var
label = $get(
this
._statusLabelID);
if
(label)
{
label.title =
this
._loadingText;
label.style[
"visibility"
] =
"visible"
;
}
this
._isAjaxRequest =
true
;
}
}
Regards,
Antonio Stoilkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0

Casey
Top achievements
Rank 1
answered on 03 May 2012, 03:07 PM
That worked beautifully! Thank you for your help!!