RadBusyIndicator when sending email

2 posts, 0 answers
  1. ابو
    ابو avatar
    15 posts
    Member since:
    Oct 2015

    Posted 14 May 2016 Link to this post

    hi my friends

    I have radbutton that send many emails with attachment to gmail

    I put in radbutton click event



    but not showing the RadBusyIndicator

    I don't know why


  2. Yana
    Yana avatar
    4653 posts

    Posted 18 May 2016 Link to this post


    I suppose the BusyIndicator is not shown as its IsBusy property is called in the same method (the button click event) in which the UI thread is frozen. As any UI control, RadBusyIndicator cannot be shown while the UI thread is frozen.

    In order to avoid this you could use a BackgroundWorker to show and hide the control. The approach is demonstrates in RadBusyIndicator First Look example in our WPF Demos. You could also take a look at the following topic which also demonstrates the usage of RadBusyIndicator with a BackgroundWorker:
    Integrate with services and a RadWindow.

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top