Telerik Forums
UI for WPF Forum
1 answer
66 views
Is there an ordinary radEditBox...?
Maya
Telerik team
 answered on 30 Apr 2010
2 answers
103 views
Hello,

Just updated my controls to 2010.1.402.1. We were going off of the GridView/Hierarchy/CustomHierarchy example. in the DataLoading method if we set ShowColumnFooters = true then none of the columns are displayed. We did try it with a DataTemplate in xaml instead and that seemed to work just fine. Any ideas on how to display the column footers without setting it all up in xaml?

<Window  
    x:Class="RadGridViewTest.Window1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
    xmlns:local="clr-namespace:RadGridViewTest" 
    Title="Window1"
    <Grid> 
        <telerik:RadGridView  
            x:Name="rgv"  
            AutoGenerateColumns="False" DataLoading="RadGridView_DataLoading"
            <telerik:RadGridView.Columns> 
                <telerik:GridViewDataColumn UniqueName="Column1" Header="Column 1" /> 
                <telerik:GridViewDataColumn UniqueName="Column2" Header="Column 2" /> 
            </telerik:RadGridView.Columns> 
        </telerik:RadGridView> 
    </Grid> 
</Window> 

using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 
using System.Windows; 
using System.Windows.Controls; 
using System.Windows.Data; 
using System.Windows.Documents; 
using System.Windows.Input; 
using System.Windows.Media; 
using System.Windows.Media.Imaging; 
using System.Windows.Navigation; 
using System.Windows.Shapes; 
using System.Collections; 
using System.Collections.ObjectModel; 
using Telerik.Windows.Controls.GridView; 
using Telerik.Windows.Data; 
using Telerik.Windows.Controls; 
 
namespace RadGridViewTest 
    /// <summary> 
    /// Interaction logic for Window1.xaml 
    /// </summary> 
    public partial class Window1 : Window 
    { 
        public Window1() 
        { 
            InitializeComponent(); 
 
            ObservableCollection<Column> Columns = new ObservableCollection<Column>(); 
            ObservableCollection<ChildGridColumn> ChildGridColumns = new ObservableCollection<ChildGridColumn>(); 
 
            for (int i = 0; i < 100; i++) 
                ChildGridColumns.Add(new ChildGridColumn(i)); 
 
            for (int i = 0; i < 100; i++) 
                Columns.Add(new Column(i, i, ChildGridColumns)); 
 
            this.rgv.ItemsSource = Columns; 
 
 
            GridViewTableDefinition gvtd = new GridViewTableDefinition(); 
            gvtd.Relation = new PropertyRelation("ChildGridColumns"); 
            this.rgv.ChildTableDefinitions.Add(gvtd); 
        } 
 
        private void RadGridView_DataLoading(object sender, Telerik.Windows.Controls.GridView.GridViewDataLoadingEventArgs e) 
        { 
            GridViewDataControl dataControl = (GridViewDataControl)sender; 
            if (dataControl.ParentRow != null
            { 
                dataControl.ShowColumnFooters = true
 
                dataControl.AutoGenerateColumns = false
                dataControl.Columns.Add(new Telerik.Windows.Controls.GridViewDataColumn() 
                { 
                    UniqueName = "ChildColumn1"
                    Header = "Column 1" 
                }); 
 
                dataControl.Columns.Add(new Telerik.Windows.Controls.GridViewDataColumn() 
                { 
                    UniqueName = "ChildColumn2"
                    Header = "Column 2" 
                }); 
 
                dataControl.Columns.Add(new Telerik.Windows.Controls.GridViewDataColumn() 
                { 
                    UniqueName = "ChildColumn3"
                    Header = "Column 3" 
                }); 
            } 
        } 
    } 
 
    public class Column 
    { 
        public Column(int Column1, int Column2, ObservableCollection<ChildGridColumn> ChildGridColumns) 
        { 
            this.Column1 = Column1; 
            this.Column2 = Column2; 
            this.ChildGridColumns = ChildGridColumns; 
        } 
 
        public int Column1 { getset; } 
        public int Column2 { getset; } 
 
        public ObservableCollection<ChildGridColumn> ChildGridColumns { getset; } 
        
    } 
 
    public class ChildGridColumn 
    { 
        public ChildGridColumn(int Num) 
        { 
            this.ChildColumn1 = Num; 
            this.ChildColumn2 = Num; 
            this.ChildColumn3 = Num; 
        } 
        public int ChildColumn1 { getset; } 
        public int ChildColumn2 { getset; } 
        public int ChildColumn3 { getset; } 
    } 
 

Thanks Much,
~Boots
Boots
Top achievements
Rank 1
 answered on 30 Apr 2010
1 answer
99 views
Hi Telerik Team,

I'm binding the Grid with different Item Sources some of which contains Child Table Definition and some don't.

When switching between the two item sources, the grid view still displays a blank column for the results which does not contains a child table definition. I cleared the Child Table definition before binding the item source and it only hide the column in the item rows not in the header. Please see the attached snapshot on this. I even tried removing the  child table definition before binding the non-child definition item source but of no use.

cheers...
NK
Vlad
Telerik team
 answered on 30 Apr 2010
1 answer
367 views

 

 

I am trying to bind a IsChecked property of a RadMenuItem and does not fire the set event on my ViewModel property. When I had it set to a regular MenuItem, this was working. Is this not supported in the RadMenuItem?

DOES NOT WORK:

<telerikNavigation:RadMenuItem x:Name="ShowSummary" 
Header="Value Summary" 
IsChecked="{Binding Path=IsSummaryChecked}" 
IsCheckable="True" /> 
 
 

 

WORKS:

 

<telerikNavigation:RadMenuItem x:Name="ShowSummary" 
Header="Value Summary" 
IsChecked="{Binding Path=IsSummaryChecked}" 
IsCheckable="True" /> 
 
 

 

 

 

 

 

 

Hristo
Telerik team
 answered on 30 Apr 2010
2 answers
103 views
Hello,

We were using the Q3 2009 release and recently upgraded to the Q1 2010 SP1 release.  It appears the first row in the RadGridView is now automatically selected.  How can I set the grid to appear as nothing is selected when the application loads?
Chris Andrews
Top achievements
Rank 1
 answered on 30 Apr 2010
1 answer
94 views
Hi,

I have an ObservableCollection of objects (which implements INotifyPropertyChanging), binded to a PieChart.
If I increase/decrease values in my objects (responding to some input controls), Pie shouldn't reflect that by increasing corespondend slices (perhaps animating them)?
I can't get a simple example like this working and I want to know what's the default behaviour.

Thanks a lot!
Velin
Telerik team
 answered on 30 Apr 2010
0 answers
95 views

Hello,

I am trying to build a WPF application using Telerik with blend 3. I need to display HTML contents in a portion of my application window. I tried to use 'web browser' control for the purpose, it renders the HTML as desired. But the problem is when I apply a simple animation (change width) for the 'Web browser' control, using story board, the animation doesn’t take effect. I tried to play the story board at design time, animation is played as desired.

 

Can you please tell me how can I create animation for ‘Web browser’ and if it is possible please specify a sample? Thanks in advance.

 

Regards,

 

Haroon

Haroon
Top achievements
Rank 1
 asked on 30 Apr 2010
6 answers
139 views
Hello

I am working with VS2010/WPF4/Telerik 2010Q1.

When looking at visual appearance on an application after theming with Teleriks themes, they are very good looking. However, it feels as it behind the winforms theming as in overall visual experience.

I think I have tracked this down to the look of the 'regular' WPF-controls I am using; some are themed from Telerik, some are not.

I could of course try using other controls that Telerik ARE theming, but it feels awkward sometimes.

For an example, I did an experiment with using RadDocking to set up layout of an application instead of using the regular DockPanel and GroupBox:es which I have plenty of. It looks very nice, but it feels a bit clunky, since the only features in the RadDocking I am using is the layout abilities - turning off everything basically.

I read this in another thread:

Actually we have some of the MS WPF controls styled according our themes - RadioButton, CheckButton, Button, RepeadButton, ScrollViewer, Textbox , PasswordBox, Listbox.

So - to my questions:

1. Are you planning to support theming of more standard WPF-controls?
2. Are you planning to include more controls in the Telerik WPF controls (in this particular case I am thinking of a GroupBox or something with similar layout:ing functionality)?
3. Am I completely out of track with what I am trying to accomplish? I guess another route would be to try to adopt Telerik theming and style my non-Telerik controls myself with a style adopting Telerik-theme look-and-feel. This would be a last resort however.

Thanks in advance.

/Thomas

Kalin Milanov
Telerik team
 answered on 30 Apr 2010
1 answer
80 views
In the latest release of WPF Controls, there is a feature to allow where to locate the Legend. However I don't want the title "Legend" to accompany it. Is there a setting to not show the title "Legend"?
Velin
Telerik team
 answered on 30 Apr 2010
1 answer
201 views
Hello!
I have a tab control generated at runtime, having as ItemsSource an ObservableCollection of objects ( that implements IComparable interface; the tab names are the names of the objects and CompareTo method returns the String.compareTo value of those names ). Is there the possibility to show the tabs arranged in the alphabetical order?

Thank you!
Roxana C
Kiril Stanoev
Telerik team
 answered on 30 Apr 2010
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?