var chartSeries = new RadHierarchicalObservableCollection<ObservableCollection<AnalogDataPoint>>(); |
public class AttributeIntTypeToEnabledConverter : IValueConverter |
{ |
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
{ |
if (value != null) |
{ |
int count = (int)value; |
if (count == 1) |
return true; |
else |
return false; |
} |
else |
{ |
return false; |
} |
} |
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
{ |
return null; |
} |
} |
<telerikGridView:GridViewDataColumn x:Name="gridAttributes_attrValInt" Header="Value" |
DataMemberBinding="{Binding attribute_id}" |
IsVisible="{Binding attribute_id, Converter={StaticResource AttributeIntTypeToEnabledConverter}}"> |
IsVisible="{Binding ElementName=gridAttributes_AttributeType1, Path=SelectedValue, Converter={StaticResource AttributeIntTypeToEnabledConverter}}" |
Hello,
I have a difficulty about binding a list of type Binding<T> list to Grid. The binding is working fine, but grouping is not working on the side of XAML.
<Telerik:RadGridView.GroupDescriptors> |
<data:GroupDescriptor Member="CodeOrganizationType"> |
<data:GroupDescriptor.AggregateFunctions> |
<data:CountFunction Caption="Count:" /> |
</data:GroupDescriptor.AggregateFunctions> |
</data:GroupDescriptor> |
</Telerik:RadGridView.GroupDescriptors> |
private
void btnDisplay_Click(object sender, RoutedEventArgs e)
{
try
{
for (int i = 1; i < 9; i++)
{
Image myImg = new Image();
myImg.Source =
new BitmapImage(new Uri("C:\\00002512\\00000000" + i.ToString() + ".TIF", UriKind.Absolute));
this.TransitionControl1.Content = myImg;
this.radProgressBar1.Value = i;
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
I get this error : "Cannot perform action because the specified Storyboard was not applied to this object for interactive control." when I try to load the second image.
Can you help me?
thanks in advance
Max
<telerik:GridViewCell x:Name="theCell" |
BorderThickness="0" |
Foreground="{StaticResource ColorMessageText}" |
Value="{Binding Owner}" |
Margin="0,0,0,2" |
Content="Owner" |
Background="{x:Null}" |
BorderBrush="{x:Null}" |
FontSize="11" |
HorizontalAlignment="Left" |
HorizontalContentAlignment="Left" |
Width="90" |
Visibility="{Binding Column.IsVisible, Converter={StaticResource VisibilityOfBool}, ElementName=theCell}"/> |