Telerik Forums
UI for WPF Forum
2 answers
237 views

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>

george
Top achievements
Rank 1
 answered on 12 Jul 2017
1 answer
45 views

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 :)

Martin Ivanov
Telerik team
 answered on 12 Jul 2017
6 answers
627 views
I'm binding a richtextbox to a viewmodel property, not exporting.
I need to format the output HTML, I don't want the document declaration and I don't want style sheets, I want the styles inline.
How do I get access to the formater to setup those options?

Thanks.
Birgit
Top achievements
Rank 1
 answered on 11 Jul 2017
1 answer
744 views

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>



Dilyan Traykov
Telerik team
 answered on 11 Jul 2017
1 answer
254 views
I am using the telerik Gridview control to display hierarchial data. Wrote the program as per details provided at 
http://docs.telerik.com/devtools/wpf/controls/radgridview/hierarchical-gridview/how-to/access-child-gridview
(used ChildTableDefinitions & HierarchyChildTemplate)

The data displayed in the grid is as follows -

Parent columns -
* Parent Name
* Current Status

Child columns -
* Timestamp
* Status

Requirement -
Parent Grid's last column ("Current Status") width is set to * so that it can take the full available width of the page.
When we click on the "+" sign near the parent, the child grid view gets expanded.
In the child grid view, the last column ("Status") width  should be equal to last column ("Current Status") width of the parent.
Currently the column width of the last column ("Current Status") is set to *.


Observed behavior -
The child grid view's last column ("Status") width is set to a large value more than the laset column width of the parent.
Due to this large width, a scroll bar gets added at the bottom to scroll to the end.
Note that the data in the last column ("Status") of child grid is very less, so no idea why its creating the column width of such large value.
Please check attached file "child_grid_expanded_with_comments.png".

Can you please let me know how to solve this problem.
Stefan
Telerik team
 answered on 11 Jul 2017
5 answers
241 views

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. 

Jonathan
Top achievements
Rank 1
 answered on 11 Jul 2017
5 answers
470 views

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

Russell
Top achievements
Rank 1
 answered on 10 Jul 2017
6 answers
317 views
I have 2 questions about this event.

1. How can I cancel pane closing in this event (or any other way)?
2. What this event is designed for?

Regards,
Adrian
Kalin
Telerik team
 answered on 10 Jul 2017
1 answer
94 views

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.

Polya
Telerik team
 answered on 10 Jul 2017
5 answers
146 views

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

Dilyan Traykov
Telerik team
 answered on 10 Jul 2017
Narrow your results
Selected tags
Tags
+113 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?