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

Loading

5 Answers 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ching-Yen
Top achievements
Rank 1
Ching-Yen asked on 09 Mar 2008, 02:55 AM
Hi,

I would like to have something like AJAX loading in my win application. Which means that, during the loading time, it will show some gif running sitting on top of a semi transparent panel (to avoid user continue using the application).

May I know izzit possible to do that with Telerik control?

Please advice.

5 Answers, 1 is accepted

Sort by
0
Kiril
Telerik team
answered on 10 Mar 2008, 08:57 AM
Hello Ching-Yen,

Thank you for sharing this feature idea with us. 

Could you please be more specific - within which control do you see a need for such a feature?

All the best,
Kiril
0
Ching-Yen
Top achievements
Rank 1
answered on 10 Mar 2008, 09:22 AM
I guess radPanel would be the one.. :D

0
Kiril
Telerik team
answered on 10 Mar 2008, 09:39 AM
Hello Ching-Yen,

Generally, this behavior is not supported in winforms, as there is no separation between a client and server tier of an application, which is the usual scenario where AJAX loading is used in the context of a web application.

Could you please describe your scenario in greater detail. This will allow us to provide more accurate advice on how to implement it.

Kind regards,
Kiril
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ching-Yen
Top achievements
Rank 1
answered on 10 Mar 2008, 11:51 AM
Hi,

Basically what I want is just that while there are some job running, I do not want the user to interfere the application (via mouse click or keyboard).

I was trying frmMain.Enabled = true and false

But, when, the frmMain.Enabled = false, it will show the form like "grayed out" then, few blinks and back to normal.

My alternate plan is having a transparent control, and add that control to the form as need to cover the entire form, and dispose that control after the loading.
0
Nikolay
Telerik team
answered on 13 Mar 2008, 08:59 AM
Hi Ching-Yen,

Thank you for writing.

You are able to achieve disabled controls with a normal look as if they are not diabled. You have to set the UseDefaultDisablePaint property of the controls' RootRadElement and of its subelements to false.

You should use a recursive algorithm to access them and modify the value of this property. I have attached a sample project that demonstrates the use of this algorithm. The BrowseControls() method browses all the controls on the Form and the BrowseElements() method browses the subelements of the RadControls' RootRadElement.

I hope this helps. If you have additional questions, do not hesitate to contact us.

All the best,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Ching-Yen
Top achievements
Rank 1
Answers by
Kiril
Telerik team
Ching-Yen
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or