RadBusyIndicator when sending email

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

    Posted 14 May Link to this post

    hi my friends

    I have radbutton that send many emails with attachment to gmail

    I put in radbutton click event

    RadBusyIndicator.isBusy=true;

     

    but not showing the RadBusyIndicator

    I don't know why

     

  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 18 May Link to this post

    Hello,

    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.

    Regards,
    Yana
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top