Telerik Forums
UI for WPF Forum
2 answers
119 views
Anyone,

First, I must say I am new to Telerik controls, so please forgive my ignorance.

My issue: I have a collection of objects which have multiple collections of objects which have objects.

Workflows
-- containing details
--  -- containing specific action
-- containing schedule
-- -- containing recurrence data

I am able to successfully bind the workflows.

I am able to use a variety of methods to bind the next level, details or schedule.

I have not been successful binding the third level of the hierarchy. I have tried the "property" method and the "field descriptor name pair" method.

I would welcome any help,

mark summers
Top achievements
Rank 1
 answered on 16 Oct 2009
5 answers
108 views
We are evaluating Telerik control for our next gen Rich client app development, and downloaded trial version of Telerik WPF Toolkit. However, after installation, i don't see the tileview control in control tool box ? Is it missing or is it available only in silverlight world ?

Cheers
Yogesh
Nikolay
Telerik team
 answered on 16 Oct 2009
7 answers
985 views
Hi
I have a Grid inside a StackPanel
when I click on an expand button
something very strange happens:
it looks like the scrolls are flashing:
appear and disappear .. appear and disappear .. appear and disappear

this is my xaml

<GroupBox Name="gbAccountManagment" Margin="2,2,2,2" MaxHeight="580" Height="480" VerticalAlignment="Top" > 
                <GroupBox.Header> 
                    <Grid> 
                        <Grid.ColumnDefinitions> 
                            <ColumnDefinition></ColumnDefinition>  
                            <ColumnDefinition></ColumnDefinition>  
                        </Grid.ColumnDefinitions> 
                        <Button Grid.Column="0" Name="btnAccountManagmentPlus" Visibility="Hidden" Width="20" Click="btnAccountManagmentPlus_Click">+</Button> 
                        <Button Grid.Column="0"  Name="btnAccountManagmentMinus"  Width="20" Click="btnAccountManagmentMinus_Click">-</Button> 
                        <Label Grid.Column="1">ניהול חשבונות</Label> 
                    </Grid> 
                </GroupBox.Header> 
                <StackPanel > 
                    <StackPanel Orientation="Horizontal">  
                        <TextBlock Margin="100,5,5,5" FontWeight="Bold" Width="60">סוג תקציב</TextBlock> 
                        <ComboBox Name="cmbBudgetType" DisplayMemberPath="Name" Margin="5,5,5,5" Width="120" SelectionChanged="cmbBudgetType_SelectionChanged"></ComboBox> 
                        <TextBlock Margin="100,5,5,5" FontWeight="Bold" Width="60">סוג פעילות</TextBlock> 
                        <ComboBox Name="cmbActivityType" DisplayMemberPath="Name" Margin="5,5,5,5" Width="120" SelectionChanged="cmbActivityType_SelectionChanged"></ComboBox> 
                        <Button Name="btnFilter" Margin="30,5,5,5" Click="btnFilter_Click">הצג</Button> 
                        <Button Visibility="Hidden" Name="btnTry" Margin="30,5,5,5" Click="btnTry_Click">Try</Button> 
                    </StackPanel> 
                    <StackPanel> 
                      <StackPanel.Resources> 
                        <Style x:Key="ToolTipColumnStyle" TargetType="telerik:GridViewCell">  
                            <Setter Property="ToolTip" Value="{Binding Content,RelativeSource={RelativeSource Self}}" /> 
                        </Style> 
                    </StackPanel.Resources> 
                      <telerik:RadGridView Name="gvAccount" Margin="5,5,5,5" AutoGenerateColumns="False"   
                                         CanUserResizeColumns="False" CanUserReorderColumns="False" ScrollMode="RealTime" 
                                         CanUserFreezeColumns="False" ShowGroupPanel="False" CanUserSortColumns="False" 
                                         FlowDirection="RightToLeft" IsFilteringAllowed="False" ShowColumnHeaders="True" CanUserInsertRows="False">  
                        <telerik:RadGridView.Columns> 
                            <telerik:GridViewDataColumn IsReadOnly="True" UniqueName="BudgetTypeName" Header="תקציב"  Width="60"/>  
                            <telerik:GridViewDataColumn IsReadOnly="True" UniqueName="Name" Header="שם חשבון/&#13;סעיף/תת סעיף"  Width="160" CellStyle="{StaticResource ToolTipColumnStyle}"/>                                  
                            <telerik:GridViewDataColumn IsReadOnly="True" UniqueName="DisplayNum" Header="מס' חשבון/&#13;סעיף/תת סעיף" Width="110" /> 
                            <telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="TotalBudget" Header="הקצבה&#13;כוללת&#13;(אש''ח)"  Width="75"/>  
                            <telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="BalanceBudgetAllocation" Header="יתרה&#13;לתקצוב&#13;(אש''ח)" Width="75" /> 
                            <telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="SumBudgetRequest" Header="שריון &#13;לפעילויות&#13;(אש''ח)" Width="75"/>  
                            <telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="SumOrderAllocation" Header="התחייבות&#13;לפעילויות&#13;(אש''ח)" Width="75" /> 
                            <telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="SumOrderPaid" Header="שולם&#13;בפועל&#13;(אש''ח)"  Width="75"/>  
                            <telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="BalanceToPay" Header="יתרה&#13;לתשלום&#13;(אש''ח)" Width="75"/>  
                            <telerik:GridViewDataColumn IsReadOnly="True" DataFormatString="{}{0:#,##0.00₪}" UniqueName="ActivityTypeName" Header="סוג&#13;פעילות" Width="120"/>  
                        </telerik:RadGridView.Columns> 
                        <telerik:RadGridView.HierarchyChildTemplate> 
                            <DataTemplate>                            
                                    <telerik:RadGridView Name="gvBudget" Loaded="OnChildGridLoaded" 
                                                         CanUserReorderColumns="False"  HorizontalContentAlignment="Right" 
                                                         CanUserFreezeColumns="False" ShowGroupPanel="False" AutoGenerateColumns="False" 
                                                         FlowDirection="RightToLeft" IsFilteringAllowed="False" ShowColumnHeaders="False" CellEditEnded="gvBudget_CellEditEnded">  
                                        <telerik:RadGridView.Columns> 
                                                <telerik:GridViewDataColumn IsReadOnly="True" UniqueName="aa" Header="סוג תקציב"  Width="33"/>  
                                                <telerik:GridViewDataColumn IsReadOnly="True" UniqueName="Name" Header="שם חשבון"  Width="160"  CellStyle="{StaticResource ToolTipColumnStyle}"/>  
                                                <telerik:GridViewDataColumn IsReadOnly="True" UniqueName="DisplayNum" Header="מספר חשבון"  Width="110"/>  
                                                <telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="TotalBudget" Header="הקצבה כוללת &#13;אש''ח"  Width="75"/>  
                                                <telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="BalanceBudgetAllocation" Header="יתרה&#13;לתקצוב&#13;אש''ח" Width="75" /> 
                                                <telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="SumBudgetRequest" Header="שריון &#13;לפעילות&#13;אש''ח" Width="75"/>  
                                                <telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="SumOrderAllocation" Header="התחיבות&#13;לפעילות&#13;אש''ח" Width="75" /> 
                                                <telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="SumOrderPaid" Header="שולם&#13;בפועל"  Width="75"/>  
                                                <telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="BalanceToPay" Header="יתרה&#13;לתשלום" Width="75"/>  
                                                <telerik:GridViewComboBoxColumn UniqueName="ActivityTypeID" DataMemberBinding="{Binding ActivityTypeID}" DisplayMemberPath="Name" SelectedValueMemberPath="Id" Header="סוג&#13;פעילות" Width="120"  /> 
                                        </telerik:RadGridView.Columns> 
                                        <telerik:RadGridView.HierarchyChildTemplate> 
                                            <DataTemplate> 
                                                    <telerik:RadGridView Name="gvSubBudget" Loaded="OnSubChildGridLoaded" CellEditEnded="gvBudget_CellEditEnded" 
                                                         CanUserReorderColumns="False"  HorizontalContentAlignment="Right" 
                                                         CanUserFreezeColumns="False" ShowGroupPanel="False" AutoGenerateColumns="False" 
                                                         FlowDirection="RightToLeft" IsFilteringAllowed="False" ShowColumnHeaders="False">  
                                                    <telerik:RadGridView.Columns> 
                                                        <telerik:GridViewDataColumn IsReadOnly="True" UniqueName="aa" Header="סוג תקציב"  Width="32"/>  
                                                        <telerik:GridViewDataColumn IsReadOnly="True" UniqueName="Name" Header="שם חשבון"  Width="160"  CellStyle="{StaticResource ToolTipColumnStyle}"/>  
                                                        <telerik:GridViewDataColumn IsReadOnly="True" UniqueName="DisplayNum" Header="מספר חשבון"  Width="110"/>  
                                                        <telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="TotalBudget" Header="הקצבה כוללת &#13;אש''ח"  Width="75"/>  
                                                        <telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="BalanceBudgetAllocation" Header="יתרה&#13;לתקצוב&#13;אש''ח" Width="75" /> 
                                                        <telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="SumBudgetRequest" Header="שריון &#13;לפעילות&#13;אש''ח" Width="75"/>  
                                                        <telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="SumOrderAllocation" Header="התחיבות&#13;לפעילות&#13;אש''ח" Width="75" /> 
                                                        <telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="SumOrderPaid" Header="שולם&#13;בפועל"  Width="75"/>  
                                                        <telerik:GridViewDataColumn DataFormatString="{}{0:#,##0.00₪}" IsReadOnly="True" UniqueName="BalanceToPay" Header="יתרה&#13;לתשלום" Width="75"/>  
                                                        <telerik:GridViewComboBoxColumn UniqueName="ActivityTypeID" DataMemberBinding="{Binding ActivityTypeID}" DisplayMemberPath="Name" SelectedValueMemberPath="Id" Header="סוג&#13;פעילות" Width="120"/>  
                                                </telerik:RadGridView.Columns> 
                                                    </telerik:RadGridView>                                                  
                                            </DataTemplate> 
                                        </telerik:RadGridView.HierarchyChildTemplate> 
                                    </telerik:RadGridView>                               
                            </DataTemplate> 
                        </telerik:RadGridView.HierarchyChildTemplate>                      
                    </telerik:RadGridView>                     
                    </StackPanel> 
                </StackPanel> 
            </GroupBox> 

Thanks




Stefano Zambonin
Top achievements
Rank 1
 answered on 16 Oct 2009
1 answer
136 views

I have the latest build of WPF Q2 SP1 and I am getting the following error:
A TwoWay or OneWayToSource binding cannot work on the read-only property 'xxx' of type 'TelerikTestProject.TestClass'. This error happens whenever I place the GridView inside of a Actipro PopupButton and then inside of a Actipro ResizableContentControl. If I take the RadGrid out of the control I don't get the error. I have a sample project I can send you to reproduce the error.

<Window x:Class="TelerikTestProject.Window1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Title="Window1" Height="300" Width="300"   
    xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared" 
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
        > 
    <Grid> 
        <shared:PopupButton Grid.Column="1" HorizontalContentAlignment="Left" BorderThickness="0" BorderBrush="Transparent" PopupContent="{Binding}" VerticalContentAlignment="Center" Margin="0" Background="Transparent" IsRounded="True" DisplayMode="Merged">  
            <shared:PopupButton.PopupContentTemplate> 
                <DataTemplate> 
                    <shared:ResizableContentControl MinHeight="50" MinWidth="300" Padding="1" > 
                        <telerik:RadGridView ItemsSource="{Binding Items}" AutoGenerateColumns="False" ShowGroupPanel="False">  
                            <telerik:RadGridView.Columns> 
                                <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Path=Comments}" UniqueName="{x:Null}"/>                                  
                            </telerik:RadGridView.Columns> 
                        </telerik:RadGridView> 
 
                    </shared:ResizableContentControl> 
                </DataTemplate> 
            </shared:PopupButton.PopupContentTemplate> 
        </shared:PopupButton> 
 
    </Grid> 
</Window> 
 

Thanks,

Billy Jacobs
Milan
Telerik team
 answered on 15 Oct 2009
4 answers
216 views
Is there an example of this for a WPF application.  I found an example for a silverlight example, but I am having trouble adapting it to WPF.

Any help is appreciated.

Thanks

Damon
Frédéric
Top achievements
Rank 1
 answered on 15 Oct 2009
1 answer
80 views

Hi,

I wanted to manage 2 listBoxs with drag and drop functionnality in a AppointmentDialogWindow of sheduler.

 

So,i designed in a  ControlTemplate of AppointmentDialogWindow 2 listBox with drag and drop functionnality.

In the code behind, I declare  :

 
RadDragAndDropManager.AddDragQueryHandler(this,OnDragQuery);  
RadDragAndDropManager.AddDragInfoHandler(this, OnDragInfo);  
RadDragAndDropManager.AddDropQueryHandler(this, OnDropQuery);  
RadDragAndDropManager.AddDropInfoHandler(this, OnDropInfo);  
 

where “this” is the form contain the radSheduler.

The problem is the methodes “OnDragQuery”, “OnDragInfo”, “OnDropQuery” and “OnDropInfo” aren’t actived when I drag and drop a item.

 

How can i catch  eventDragAndDrop’s listBox  designed in  AppointmentDialogWindow  of a sheduler from the sheduler’s form?

 
Thanks for your help.

Rosi
Telerik team
 answered on 15 Oct 2009
1 answer
324 views
How do I add a custom column to my grid that contains a delete button?

I've found only one example of this but it's for the older version of the grid where the new one contains a data template in the grid column and/or a visual tree. I cannot figure out how to add a button into the data template.

grdCol =

new Telerik.Windows.Controls.GridViewColumn() { Name = "grdColDelete" };

 

DataTemplate dt =

new DataTemplate();

 

Button

 

btnDel = new Button(){Content = "Del", Width = 18, Height = 18, CommandParameter = new Binding("ApplicationCommands.Delete")};

 


//How do I get the btn into the data template??????????????????????????????

grdCol.CellTemplate = dt;

Rossen Hristov
Telerik team
 answered on 15 Oct 2009
3 answers
202 views
Hi,

First let me tell you I find the TileView control awesome and I am planning wide use of it for our next iteration. I have a problem though. I need to "inject" UserControls into the Content, SmallContent and LargeContent at runtime because my UserControls are created by Unity (the dependency Injection framework used in PRISM). 

I inject the controls in the contructor of the window and it works but when I show the control the app becomes unresponsive and when I pause in the debigger this is where it stops:

Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.RadFluidContentControl.MeasureOverride(System.Windows.Size availableSize = {System.Windows.Size}) Line 345 + 0x19 bytes.

I tried doing it all in code:

var viewItem = new RadTileViewItem(); 
var content = new RadFluidContentControl(); 
content.SmallToNormalThreshold = new Size(235, 35); 
content.NormalToSmallThreshold = new Size(305, 149); 
content.NormalToLargeThreshold = new Size(315, 155); 
content.LargeToNormalThreshold = new Size(725, 345); 
content.SmallContent = new TextBlock {Text = "Original Data"}; 
content.Content = ResolveControl<OriginalData, UDataTable>(); 
 
viewItem.Content = content; 
projectData.Items.Add(viewItem); 


And the xaml is:

<telerikNavigation:RadTileView x:Name="projectData" Margin="3"></telerikNavigation:RadTileView>

I also tried a combination of xaml and code using the xaml from your demo app:

The code was something like:

var s = (((projectData.Items[0] as ContentControl).Content) as RadFluidContentControl); 
s.Content = _unityContainer.Resolve&lt;MyUserControl&gt;(); 
I am using the exact xaml from your demo except for the contents which are replaced by this since then cannot be empty:

<telerikNavigation:RadFluidContentControl.Content>
         <Data:OriginalData></Data:OriginalData>
</telerikNavigation:RadFluidContentControl.Content>

Finally I tried using a Panel inside the contents and added my usecontrol to the panel but the results were the same.

I must be missing something critical and any help is appreciated,
Jose

Tihomir Petkov
Telerik team
 answered on 14 Oct 2009
4 answers
461 views
I have an bar chart with a series of bar columns and under each bar column on the x-axis is a label. The label text has been rotated 90 degrees counter-clockwise (appears to be default). I want the label text to be rotated 45 degress clockwise, so it will read better. how can I do that?
Giuseppe
Telerik team
 answered on 14 Oct 2009
3 answers
48 views
Hi,

May I know are we going to get PageNavigation for WPF?

Please advice.
Valentin.Stoychev
Telerik team
 answered on 14 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?