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

How do you get rid of the LoadingPanel?

1 Answer 49 Views
ImageGallery
This is a migrated thread and some comments may be shown as answers.
Joel Kraft
Top achievements
Rank 2
Joel Kraft asked on 26 Mar 2014, 09:09 PM
I'm excited to see what we are going to be able to do with this control in the future, but it seems like it needs a bit of refinement to make it to prime time.

I am wondering how to disable the creation and use of the freaking LoadingPanel.  I am using ImageGallery with LoopItems="true", and have nice animations defined, but the transitions are absolutely jarring because a LoadingPanel appears for a split second before every animation. Since the gallery is set to loop, and it has loaded all of it's images, there is absolutely no reason for a loading panel to be displayed at all. Since I didn't add it, I don't see why it would be there at all, either. The panel is displayed momentarily if you press the next or previous image buttons, as well. You can actually see it on your demo pages quite clearly.

As far as I'm concerned, the fact that it tries to show the LoadingPanel for an image that is available is a bug.

I tried setting RadImageGallery.LoadingPanel.Enabled = false, but that doesn't do anything. Setting RadImageGallery.LoadingPanel.Visiable = false breaks the slideshow altogether.  I tried RadImageGallery.LoadingPanel.Controls.Clear() and that does nothing ether. How can I get rid of it?

Joel

1 Answer, 1 is accepted

Sort by
0
Accepted
Kostadin
Telerik team
answered on 31 Mar 2014, 12:58 PM
Hi Joel,

You could use the following approach to hide the LoadingPanel.
protected void Page_Load(object sender, EventArgs e)
{
    this.RadImageGallery1.LoadingPanel.OnClientShowing = "function (sender, args) { args.set_cancelNativeDisplay(true); }";
}

I will log this as an improvement and our developers will implement a property which will allows you to hide the LoadingPanel.

Regards,
Kostadin
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
ImageGallery
Asked by
Joel Kraft
Top achievements
Rank 2
Answers by
Kostadin
Telerik team
Share this question
or