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

RadBusyIndicator react too late

1 Answer 214 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
Gyula
Top achievements
Rank 1
Gyula asked on 14 Dec 2011, 02:55 PM
Dear Support!

I am using RadControls_for_WPF_2011_3_1205_DEV_hotfix.

When I set RadBusyIndicator.IsBusy="True" and operating system is running a cpu hungry process, I can click on the RadBusyIndicator content before RadBusyIndicator show busy content (refer attachment).

Please let me know how to resolve the issue.

MainWindow.xaml
<Window x:Class="RadBusyIndicatorDemo.MainWindow"
        Title="MainWindow" Height="350" Width="525" WindowStartupLocation="CenterScreen">
     
    <StackPanel>
        <TextBlock x:Name="textBlock" />
        <telerik:RadBusyIndicator IsBusy="True">
            <StackPanel>
                <Button Content="Button1" Click="Button_Click"/>
                <telerik:RadGridView ItemsSource="{Binding Items}" Height="300" />
            </StackPanel>
        </telerik:RadBusyIndicator>
    </StackPanel>
</Window>


MainWindow.xaml.cs
namespace RadBusyIndicatorDemo
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
 
            this.DataContext = new MainViewModel();
        }
 
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            this.textBlock.Text = "clicked!"; // shouldn't happen
        }
    }
}

1 Answer, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 16 Dec 2011, 01:08 PM
Hello Balázs,

Setting the RadBusyIndicator property DisplayAfter to 0 will do the trick for you.

Greetings, Ivo
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
BusyIndicator
Asked by
Gyula
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Share this question
or