Hi,
We've run into an issue that only seems to happen when the following are true:
* There's a DataForm inside a BusyIndicator
* The BusyIndicator initially has IsBusy=True
* IsBusy becomes false afterwards (e.g. when the viewmodel property it's bound to changes.)
When IsBusy becomes false, the "Loading..." animation disappears, but the DataForm remains grayed out. If I click on a TextBox or other control inside the DataForm, the grayed-out effect goes away, and the DataForm appears normal.
I tried the "restore the focus" technique, but it didn't work - this seems to be a separate issue.
We're using the Q3 2010 release.
Here's a sample to illustrate the problem:
I've also attached screenshots showing (1) the busy indicator correctly appearing busy, (2) the unexpected disabled effect, and (3) the correct appearance of the DataForm after I click inside the text box.
Thanks for your help,
Richard
We've run into an issue that only seems to happen when the following are true:
* There's a DataForm inside a BusyIndicator
* The BusyIndicator initially has IsBusy=True
* IsBusy becomes false afterwards (e.g. when the viewmodel property it's bound to changes.)
When IsBusy becomes false, the "Loading..." animation disappears, but the DataForm remains grayed out. If I click on a TextBox or other control inside the DataForm, the grayed-out effect goes away, and the DataForm appears normal.
I tried the "restore the focus" technique, but it didn't work - this seems to be a separate issue.
We're using the Q3 2010 release.
Here's a sample to illustrate the problem:
<
UserControl
x:Class
=
"IMS.UI.Views.MP.Test"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:tk
=
"clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit"
xmlns:System
=
"clr-namespace:System;assembly=mscorlib"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"400"
>
<
UserControl.Resources
>
<!-- dummy resource just so the dataform has something to bind to -->
<
System:String
x:Key
=
"Foo"
/>
</
UserControl.Resources
>
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"*"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
telerik:RadBusyIndicator
x:Name
=
"busyIndicator"
Grid.Row
=
"0"
IsBusy
=
"True"
>
<
tk:DataForm
x:Name
=
"dfForm"
CurrentItem
=
"{StaticResource Foo}"
>
<
tk:DataForm.EditTemplate
>
<
DataTemplate
>
<
StackPanel
Height
=
"100"
>
<
TextBlock
>Blah</
TextBlock
>
<
TextBox
Text
=
"this is some text"
/>
</
StackPanel
>
</
DataTemplate
>
</
tk:DataForm.EditTemplate
>
</
tk:DataForm
>
</
telerik:RadBusyIndicator
>
<
CheckBox
Grid.Row
=
"1"
Content
=
"Busy"
IsChecked
=
"{Binding ElementName=busyIndicator, Path=IsBusy, Mode=TwoWay}"
/>
</
Grid
>
</
UserControl
>
I've also attached screenshots showing (1) the busy indicator correctly appearing busy, (2) the unexpected disabled effect, and (3) the correct appearance of the DataForm after I click inside the text box.
Thanks for your help,
Richard