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

8 posts, 0 answers
  1. Wim Tra Kranen
    Wim Tra Kranen avatar
    16 posts
    Member since:
    Feb 2006

    Posted 26 Oct 2006 Link to this post

    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!

  2. Chris
    Admin
    Chris avatar
    221 posts

    Posted 27 Oct 2006 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Wim Tra Kranen
    Wim Tra Kranen avatar
    16 posts
    Member since:
    Feb 2006

    Posted 27 Oct 2006 Link to this post

    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
  5. Ivo
    Admin
    Ivo avatar
    689 posts

    Posted 30 Oct 2006 Link to this post

    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
  6. Muhammad Khalid
    Muhammad Khalid avatar
    9 posts
    Member since:
    Jul 2008

    Posted 06 Jul 2009 Link to this post

    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


  7. Aaron
    Aaron avatar
    8 posts
    Member since:
    Jul 2009

    Posted 06 Aug 2009 Link to this post

    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(); 
            } 

  8. Wim Tra Kranen
    Wim Tra Kranen avatar
    16 posts
    Member since:
    Feb 2006

    Posted 06 Aug 2009 Link to this post

    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
  9. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 10 Aug 2009 Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready