I'm getting the following Warning, preceded by a Stack Overflow Exception whenever I click on any of the items in my TreeView, which is inside a DropDownButton.
System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control.; Action='Stop'; Storyboard='System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode='55034768'; Storyboard.Type='System.Windows.Media.Animation.Storyboard'; TargetElement='System.Windows.Media.Animation.Storyboard'; TargetElement.HashCode='55034768'; TargetElement.Type='System.Windows.Media.Animation.Storyboard'
And my XAML:
<telerik:RadDropDownButton.DropDownContent>
<telerik:RadTreeView ItemsSource="{Binding ProjAreaPaths}"
SelectedItem="{Binding Path=AreaPath, Mode=TwoWay}"
ItemContainerStyle="{StaticResource RedStyle}">
<telerik:RadTreeView.ItemTemplate>
<HierarchicalDataTemplate ItemsSource="{Binding ChildNodes}"
ItemContainerStyle="{StaticResource GreenStyle}">
<TextBlock Text="{Binding Name}"/>
</HierarchicalDataTemplate>
</telerik:RadTreeView.ItemTemplate>
</telerik:RadTreeView>
</telerik:RadDropDownButton.DropDownContent>
</telerik:RadDropDownButton>
Hi;
I'm currently overriding the labeldefinition property in ChartSeries with a template. So if I change the value of this property for the first time it will not be updated(shown). Unless I close the view and reopen it again, Then it will be Triggered and updated normally. is It a Telerik bug? and how to make it updated correctly
Thanks :)
Hello,
I have a RadGridView and I would like that the details for one row to be opened on double clicking on them and that several rows could be open on the same time.
Here is a sample of code :
<telerik:RadGridView x:Name="rdGrid"
ShowGroupPanel="False"
SnapsToDevicePixels="True"
BorderThickness="0"
RowDetailsVisibilityMode="VisibleWhenSelected"
RowDetailsStyle="{StaticResource simpleRowDetailsStyle}"
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
ItemsSource="{Binding CompartmentsAnalysis, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
AutoGenerateColumns="False"
SelectedItem="{Binding Path=SelectedCompartmentAnalysis, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnSourceUpdated=True, NotifyOnTargetUpdated=True}">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Header="Name"
DataMemberBinding="{Binding xxxx.Name, IsAsync=True}"
IsReadOnly="True"
Width="*" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>
Hi, I hava a diagram, and want to export. The code is as follows:
FileStream fs = File.Open("D:\\a.png", FileMode.Create);
pair.Diagram.Zoom = 1;
pair.Diagram.ExportToImage(fs, null, new Rect(minX, minY, ww, hh));
fs.Close();
Now, the problem is that the exported image a.png is clear in my notebook PC(Screen resolution:1366*768). But it is fuzzy in my friend's(Screen resolution:1920*1080) by using the same code.
Why? Hope answer, thanks.
Hello! I am using the Windows8 theme throughout my WPF application, however I would like to exclude a ListView from the styling. Is this possible? I have searched a bit and have looked at this guide:
http://docs.telerik.com/devtools/wpf/styling-and-appearance/stylemanager/common-styling-themes-mscontrols
But I am not sure if I am able to 'null' out a style and let it take on the default styling while still having all other elements use the theme of my choice.
Thank you!
Regards,
Joel
Hi mates, i have a variable from database, it's the comparable flag to set a DataTemplate to my PivotGrid.
public override DataTemplate SelectTemplate(object item, DependencyObject container)
{
var cellAggregate = item as CellAggregateValue;
if (cellAggregate != null)
{
var description = cellAggregate.Description as PropertyAggregateDescription;
var test = item as PlannedRouteByMonthToGridPivot;
if (description.PropertyName == nameof(ViewModels.PlannedRouteByMonthToGridPivot.PercentExecuted))
{
if (System.Convert.ToDouble(cellAggregate.Value) >= 0.965d)
{
return this.GreenTemplate;
}
else
{
return this.RedTemplate;
}
}
}
return base.SelectTemplate(item, container);
}
I need replace the number 0.965d with a variable in my RadPivotGrid DataProvider, someone have any ideia how i can do it.
When creating the drag visual in codebeind, I am not seeing the data being bound to theTileViewItem, although the styles and templates are being applied, how can I get the data to bind?
01.
private
void
OnDragInitialize(
object
sender, DragInitializeEventArgs args)
02.
{
03.
var data = ((RadRadioButton)args.OriginalSource).DataContext
as
ITile;
04.
05.
var payload = DragDropPayloadManager.GeneratePayload(
null
);
06.
payload.SetData(
"DragData"
, data);
07.
08.
args.Data = payload;
09.
args.AllowedEffects = DragDropEffects.All;
10.
args.DragVisual =
new
RadTileViewItem
11.
{
12.
DataContext = data,
13.
ContentTemplate = Application.Current.FindResource(
"DashboardTileView_ContentTemplate"
)
as
DataTemplate,
14.
HeaderTemplate = Application.Current.FindResource(
"DashboardTileView_ItemTemplate"
)
as
DataTemplate,
15.
Style = Application.Current.FindResource(
"DashboardTileView_ItemStyle"
)
as
Style
16.
};
17.
}
Thank you,
Maurice