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

Can't get R.A.D. waitingbar to work

7 Answers 381 Views
WaitingBar
This is a migrated thread and some comments may be shown as answers.
Wim Tra Kranen
Top achievements
Rank 1
Wim Tra Kranen asked on 26 Oct 2006, 09:30 AM
HI i am trying to use the waitingbar bar but i can't get it to work, here is  my code:

  private void btnCheckServers_Click(object sender, EventArgs e)  
        {    
                this.radWaitingBar1.StartWaiting();  
                label1.Text = "trying to connect....";  
                Telnet Session = new Telnet(this.txtIP.Text, Convert.ToInt16(this.txtPortTest.Text), 1000);  
 
                try 
                {  
                    Session.Connect();  
                    label1.Text = Session.ReturnMessage;  
                }  
                catch (Exception ex)  
                {  
                    label1.Text = ex.Message;  
                }  
 
                this.radWaitingBar1.EndWaiting();  
   
        } 


Can someone tell me what i do wrong?

Thanx and greetings,
Wim

In the Help i read this:
  1. Place a RadWaitingBar control and a RadButton control on a form.
  2. Select the RadWaitingBar control.
  3. Set the StepWidth property to 4.
  4. Set the ThemeName property to ControlDefault.
  5. Set the BackColor property to BlueViolet.
  6. Select the RadButton control.
  7. Set the Text property to Animate.
  8. In the Properties window, click the events button.
  9. Double-click the Click event.
  10. Replace the automatically-generated event handler with this code:


thing is that i cant find property StepWidth!

7 Answers, 1 is accepted

Sort by
0
Chris
Telerik team
answered on 27 Oct 2006, 02:48 PM
Hello Wim,
First, thank you for evaluating r.a.d.controls for WinForms. I'm sorry for misleading you but it looks like there's an error in the documentation. The WaintingBar property which you should set is WaitingSpeed. For the final release we added one more property - WaitingStep which will be available for the official release next week.
The problem with the WatingBar control used in you particular application is that we start the waiting behavior of the control (as you have done via the StartWaiting() method) in the current thread of the application. We use timer ticks to change the position of the waiting indicator but we currently use the standard System.Windows.Forms.Timer class using its tick event, so when you try to establish a telnet session your application gets frozen for a few seconds and the timer starts ticking after the session is established. Then you call the EndWaiting() method of the control so there is no progress shown on the waiting area of the control.
Of course there's a workaround for this and we have attached a sample project (you have to update the references) which simply starts the telnet connection in a new thread and this way the UI of your application won't freeze while trying to connect to the telnet server.
I hope this information helps.

Regards,
Chris
the telerik team
0
Wim Tra Kranen
Top achievements
Rank 1
answered on 27 Oct 2006, 03:03 PM
Hi Chris,

Thanx for your response and the demoproject.
I think it will work out fine now.

I am reaaly looking forward for the final release because i am using the controls already alot in some applications and i am really happy with them. It fills the need for things missing in the standard controls?

Is ther going to be a datagrid in future releases like the R.A.D. grid for asp.net?

Kind regards Wim
0
Ivo
Telerik team
answered on 30 Oct 2006, 01:40 PM
Hi Wim,

We appreciate your interest in the new WinForms product line. The first official release of r.a.d.controls for WinForms will be out shortly.

A powerful DataGrid control is on our ToDo list for next releases, however we can not commit to any time-frame for the implementation yet. We will post an official statement once we start the development.

Thank you for your patience.

Sincerely yours,
Ivo
the telerik team
0
Muhammad Khalid
Top achievements
Rank 1
answered on 06 Jul 2009, 09:15 AM
Hi Chris ,
            I have used a Waiting bar and i have just download your examplecode  and run but i have facing some issue like Telnet.DLL reference missing . I try my best to find that telnet.dll but unfortunately i can't find the exact dll, Can you please tell me that where i can find, And how i can use .


Thanks ,
Khalid


0
Aaron
Top achievements
Rank 2
answered on 06 Aug 2009, 07:08 PM
Telnet.dll is probably from a 3rd party library unrelated to Telerik. So you don't have to go searching for that, here is some example code that uses a separate thread in a similar way as the example application.

        public void DoStuffThread() 
        { 
            // Pretend to do stuff that takes a long time 
            Thread.Sleep(5000); 
 
            DoneDoingStuff(); 
        } 
 
        private void radButton2_Click(object sender, EventArgs e) 
        { 
            radWaitingBar1.StartWaiting(); 
 
            Thread thread = new Thread(new ThreadStart(this.DoStuffThread)); 
            thread.Start(); 
        } 
 
        void DoneDoingStuff() 
        { 
            radWaitingBar1.EndWaiting(); 
        } 

0
Wim Tra Kranen
Top achievements
Rank 1
answered on 06 Aug 2009, 10:45 PM
Hi Muhammad,

Aaron is right my issue was with the waitingbar and not the telnet, but if you wanna now I use chilkat library for it!


Good luck
0
Victor
Telerik team
answered on 10 Aug 2009, 09:25 AM
Hello,

This particular article for RadWaitingBar is outdated and has now been removed entirely because it turns out that not every client machine has the required assemblies. The article will be replaced with a more informative one with no external dependencies. Until then, you can have a look at the Courseware provided by Falafel Software, it contains coverage of the controls in our WinForms suite. You can find it here.

All the best,
Victor
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
WaitingBar
Asked by
Wim Tra Kranen
Top achievements
Rank 1
Answers by
Chris
Telerik team
Wim Tra Kranen
Top achievements
Rank 1
Ivo
Telerik team
Muhammad Khalid
Top achievements
Rank 1
Aaron
Top achievements
Rank 2
Victor
Telerik team
Share this question
or