Telerik Forums
UI for WPF Forum
1 answer
182 views
I have a simple implementation of a RadTileView.

The tile view is contained within a radpane which is docked.

If a drag the pane out of the docking area so the pane is floating I see both vertical and horizontal scrollbars.

But, if I maximize one of the TileViewItems and then drag the pane out of the docking area so it is floating I see the vertical scrollbar but not the horizontal scrollbar.

Please advise.

<Grid>
    <telerik:RadTileView 
        IsItemsAnimationEnabled="False"
        ColumnsCount="3"
        ColumnWidth="Auto"
        DragMode="Slide" 
        IsItemsSizeInPercentages="True"        
        IsAutoScrollingEnabled="True"
        PreservePositionWhenMaximized="True"
        RowHeight="Auto"
        MinimizedRowHeight="300"
        MinimizedColumnWidth="300"
        telerik:TileViewPanel.IsColumnsShrinkEnabled="True"
        telerik:TileViewPanel.IsRowsShrinkEnabled="True"
        telerik:TileViewPanel.IsSizeBoundToPosition="True">         
        <telerik:RadTileViewItem Header="{Binding Path=PatchMi.Title}">
            <telerik:RadChart x:Name="RadChart" ItemsSource="{Binding Path=PatchMi.Metrics}" BorderThickness="0">
                <telerik:RadChart.DefaultView>
                    <telerik:ChartDefaultView ChartLegendPosition="Bottom">
                        <telerik:ChartDefaultView.ChartLegend>
                            <telerik:ChartLegend x:Name="ChartLegend"
                                         UseAutoGeneratedItems="True">
                            </telerik:ChartLegend>
                        </telerik:ChartDefaultView.ChartLegend>
                    </telerik:ChartDefaultView>
                </telerik:RadChart.DefaultView>
                <telerik:RadChart.SeriesMappings>
                    <telerik:SeriesMapping>
                        <telerik:SeriesMapping.SeriesDefinition>
                            <telerik:DoughnutSeriesDefinition LegendDisplayMode="DataPointLabel"></telerik:DoughnutSeriesDefinition>
                        </telerik:SeriesMapping.SeriesDefinition>
                        <telerik:SeriesMapping.ItemMappings>
                            <telerik:ItemMapping DataPointMember="YValue" FieldName="Value"></telerik:ItemMapping>
                            <telerik:ItemMapping DataPointMember="LegendLabel" FieldName="Key"></telerik:ItemMapping>
                        </telerik:SeriesMapping.ItemMappings>
                    </telerik:SeriesMapping>
                </telerik:RadChart.SeriesMappings>
            </telerik:RadChart>
        </telerik:RadTileViewItem>
        <telerik:RadTileViewItem Header="Calendar">
            <telerik:RadCalendar DisplayMode="MonthView" Height="Auto" Width="Auto" />
        </telerik:RadTileViewItem>
        <telerik:RadTileViewItem Header="Item3" >
            <TextBlock Text="Item3 Content"/>
        </telerik:RadTileViewItem>
    </telerik:RadTileView>
</Grid>         
Pavel R. Pavlov
Telerik team
 answered on 14 May 2013
8 answers
1.2K+ views
Hi,

Do you know where I can download the source code for the Sales Dashboard sample application for WPF/Silverlight?

Thanks in advance,

Wagner
Dimitrina
Telerik team
 answered on 14 May 2013
7 answers
128 views
Hi,

I am creating the ItemPropertyDefinition(s) in code-behind.  I add the definitions one at a time based on various user selections peculiar to my app.  As I add a ItemPropertyDefinition to the ItemPropertyDefinitions collection, I would like the ItemPropertyDefinition display names to be presented in alphabetical order. Can this be done?

Thanks
Rich
Rossen Hristov
Telerik team
 answered on 14 May 2013
4 answers
118 views
Hi, we need an event to be fired from the control, when one of the logical operators (AND/OR) are being changed by the user. Is there a way to achieve this?
Shankar
Top achievements
Rank 1
 answered on 14 May 2013
2 answers
184 views
Hi,

This is treeview code:
<telerik:RadTreeView Grid.Row="2" IsRootLinesEnabled="False" IsLineEnabled="True" ItemsSource="{Binding DisplayDataList}" PreviewSelectionChanged="RadTreeView_PreviewSelectionChanged" telerik:StyleManager.Theme="{StaticResource MetroStyle}" FontFamily="{StaticResource font_global}" HorizontalContentAlignment="Stretch">
<telerik:RadTreeView.ItemTemplate>
<HierarchicalDataTemplate ItemsSource="{Binding TreeNodeList}">
<TextBlock FontSize="16" Text="{Binding TreeNodeID}" />
</HierarchicalDataTemplate>
</telerik:RadTreeView.ItemTemplate>
</telerik:RadTreeView>

And this is tree node modle code:
public class AccountTreeNode
    {
        private Object treeNodeObject;
        public Object TreeNodeObject
        {
            get { return treeNodeObject; }
            set { treeNodeObject = value; }
        }
 
        private Type treeNodeType;
        public Type TreeNodeType
        {
            get { return treeNodeType; }
            set { treeNodeType = value; }
        }
 
        private ObservableCollection<AccountTreeNode> treeNodeList;
        public ObservableCollection<AccountTreeNode> TreeNodeList
        {
            get { return treeNodeList; }
            set { treeNodeList = value; Notify("TreeNodeList"); }
        }
    }

In the case of treeview's scrollbar displayed. The scrollbar will be uncontrolled movement when clicked one tree node in the treeview.
And tree node can be selected more than one.

If the scroll bar isn't displayed, the above problems would not have occurred.

Ye HaoChen
Top achievements
Rank 1
 answered on 14 May 2013
8 answers
142 views
Hi all,

I have a property grid which is populated when an item in a tree view is selected.

The appropriate description appears when you click a property in the grid. However, when a new item in the tree view is selected, although the new set of properties is loaded up the old description remains.

I need to be able to clear this when I click on a new item in my tree view

Thanks is advance


Arthur
Maya
Telerik team
 answered on 13 May 2013
0 answers
298 views
Hi I am using the busy indicator while I have a simulator setting it self up. I need to give the user a method to perform an emergency stop if needed. I tried adding a button to the data template but clicking it seems to do nothing. Can this be done? Below is the XMAL and command definition
<telerik:RadBusyIndicator IsIndeterminate="True" IsBusy="{Binding IsVehicleRotating}">
            <telerik:RadBusyIndicator.BusyContentTemplate>
                <DataTemplate>
                    <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
                        <Grid.RowDefinitions>
                            <RowDefinition></RowDefinition>
                            <RowDefinition Height="23"></RowDefinition>
                        </Grid.RowDefinitions>
                        <diControls:DILabel>
                            Vehicle is rotating
                        </diControls:DILabel>
                        <diControls:DIButton Grid.Row="1">
                            Emergency Stop
                        </diControls:DIButton>
                    </Grid>
                </DataTemplate>
            </telerik:RadBusyIndicator.BusyContentTemplate>
<!--Content is here-->
   </telerik:RadBusyIndicator>
private RelayCommand emergencyStopCommand;
        public RelayCommand EmergencyStopCommand
        {
            get
            {
                return emergencyStopCommand ?? (emergencyStopCommand = new RelayCommand(() =>
                    {
                        IsVehicleRotating = false;
                        vehicleStateController.EmergencyStop();
                        Cleanup();
                    }
                ));
            }
        }
.

Josh
Top achievements
Rank 1
 asked on 13 May 2013
1 answer
65 views
So I have a basic DataFormatString based on columns but there will be rows that are a exception (they show percentage between the other rows) and I need to format those rows as a percentage number.

I've took a look into both Row- and CellStyleSelector and CellTemplateSelector but not sure any of these can do the trick because they don't seem to manage the DataFormatString.

RowStyle with  <Setter Property="ContentStringFormat" Value="P" /> does nothing, probably because he tries to apply that to the whole row which of course is not a string.
Dimitrina
Telerik team
 answered on 13 May 2013
1 answer
62 views
I want to add a button to the right of the last column, can this be done?

The following link shows an image with the button highlighted:

http://farm8.staticflickr.com/7306/8734034759_4e632a1cb0_b.jpg

Pavel Pavlov
Telerik team
 answered on 13 May 2013
5 answers
292 views
HI,

My grid view contains number of rows and one column in the grid view contains a list box.

I am using the below code to change the color of textblock placed inside the list box based on its parent grid view row.

<Style TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">

<Style.Triggers>

<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type telerik:GridViewRow}}, Path=IsSelected}" Value="True">

<Setter Property="Foreground" Value="White" />

</DataTrigger>
</Style.Triggers>

</Style>



Though its working fine but i want one more condition in this trigger to check wheather Parent grid view selected row's selection is active or not.For that i modified condition inside the trigger as mentioned below:

<
MultiDataTrigger>
<Condition
 Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type telerik:GridViewRow}}, Path=IsSelected}" Value="true"/>
<Condition Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type telerik:GridViewRow}}, Path=Selector.IsSelectionActive}" Value="true"/>
</
MultiDataTrigger>

But its not working. Can you please suggest which approach to use to get parent row's Selector.IsSelectionActive property.

Looking forward for your reply.
Thanks And Regards,
Kavita
Pavel Pavlov
Telerik team
 answered on 13 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
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
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?