Telerik Forums
UI for WPF Forum
2 answers
221 views
Hi

I'm trying to customise the RadCalendar, but I do not see how I can change the hover over and selection colors for days when in certain views (E.g. month/week view)

I have tried editing the Template using Blend and also checked out the post at
http://www.telerik.com/community/forums/wpf/calendar/how-to-change-datepicker-monthview-s-header.aspx

which is somewhat relevant, but I do not see any such property.

How should I go about achieving this?



Regards
Nikolay
Telerik team
 answered on 24 Jul 2009
3 answers
120 views
The text can be translated "drag a column header here to group by that column" to other languages

How can I do?

Thanks
Carles Vazquez
Top achievements
Rank 1
 answered on 23 Jul 2009
4 answers
107 views
I cannot get the Sample project to show the GridView from the Q2 release.  So, I decided to open the project in debug and see what was going on.  I find it very hard to believe that you are releasing a sample that compiles with 13 warnings of Obsolete classes.  How are we supposed to be using the sample project as a basis of our development if you are delivering usages of obsolete items?

Not pleased at all with this...
Stefan Dobrev
Telerik team
 answered on 23 Jul 2009
3 answers
227 views
I am using a RadCarousel and would like to change how the navigation buttons look.  I am assuming that the way to go about this is to use a ControlTemplate, however I have been unable to affect the visual appearance of the ScrollViewer.  Does anyone have an example of how to apply custom styling to the scrollviewer in a RadCarousel?

Thanks
Milan
Telerik team
 answered on 23 Jul 2009
8 answers
248 views
Hi

My RadPanelBar is bound to a collection of objects like this:

XAML:
<HierarchicalDataTemplate x:Key="hdt" ItemsSource="{Binding ClientPublications}">                         
            <TextBlock Text="{Binding Name}"></TextBlock> 
</HierarchicalDataTemplate> 
 
<telerik:RadPanelBar x:Name="reportMenuPanelBar" Grid.Row="1" Margin="1,0,1,1" ItemsSource="{Binding}" ItemTemplate="{StaticResource hdt}" Selected="reportMenuPanelBar_Selected"
</telerik:RadPanelBar> 

C#:
IList<ClientReport> reports = mgr.GetAllClientReports(); 
reportMenuPanelBar.DataContext = reports; 

I want the textweight for the child panel bar items to be different (i.e. bold or normal) depending on the value of an object's property.

How can I do this?

Thanks.
Ryan
Top achievements
Rank 1
 answered on 23 Jul 2009
1 answer
208 views
Hi all,

I'm trying the combo box control for WPF.

How to attach a command at the selectionchange event ?

Thanks
Valeri Hristov
Telerik team
 answered on 23 Jul 2009
3 answers
147 views
Hello,

I am trying to create a totals row using code.
I saw the Totals example using XAML and also found the following post:
http://www.telerik.com/community/forums/wpf/gridview/2q2-9-radgridview-footer-row-sample-question.aspx
however I got stuck. No value is displayed in the Totals row.

Thanks,

Erez


<Window x:Class="TestTelerikQ2.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"
    Title="Window1" Height="378" Width="536">
    <Grid>
        <StackPanel Orientation="Vertical">
            <telerik:RadGridView Margin="12,20,-12,-20"
                                Name="radGridView1"
                                Loaded="radGridView1_Loaded"
    ShowColumnFooters="True" AutoGenerateColumns="False" >
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn  UniqueName="Number"
       DataMemberBinding="{Binding Number}">
                    </telerik:GridViewDataColumn>
                </telerik:RadGridView.Columns>
               
            </telerik:RadGridView>
        </StackPanel>
    </Grid>
</Window>



using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
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 Telerik.Windows.Controls;
using Telerik.Windows.Controls.GridView;
using Telerik.Windows.Data;

namespace TestTelerikQ2
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class Window1 : Window
    {
        public Window1()
        {
            try
            {
                InitializeComponent();

                GridViewFooterCell g;
               
                GridViewFooterRow footerRow = new GridViewFooterRow();

                Telerik.Windows.Data.SumFunction sum = new SumFunction();

                sum.Caption = "sum: ";

 

                sum.ResultFormatString = "{}{0:c}";

                sum.SourceField = "Number";

                Telerik.Windows.Controls.GridViewDataColumn column =
                        (Telerik.Windows.Controls.GridViewDataColumn)radGridView1.Columns["Number"];

               

                //column.Footer = footerRow;

                DataTable dt = new DataTable();
                DataView dv;

                dt.Columns.Add("Display", typeof(string));
                dt.Columns.Add("Number", typeof(int));

                dt.Rows.Add("show", 1);
                dt.Rows.Add("show", 2);
                dt.Rows.Add("hide", 3);

                dv = new DataView(dt);

 

                radGridView1.ItemsSource = dv;

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

                       
        }

    }
}

Stefan Dobrev
Telerik team
 answered on 23 Jul 2009
3 answers
121 views
Hello,

I have a small issue with a dataview and selecting a row while being in edit mode in a cell.

Below is the code-
If I start the below app, double click into one of the visible cells and than press on the
"ClickMe" button, the RowFilter is changed by code, the last line become visible, however
it is not selected even due I try to do so.

If I press again on the button,  the row is then selected.

Any ideas ?

Thanks,

Erez

P.S: "RadControls for WPF Q1 2009 SP2"




<Window x:Class="WpfToTelerikForum.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="333" Width="639" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <StackPanel Orientation="Vertical">
        <telerik:RadGridView Margin="12,20,-12,-20"
                             Name="radGridView1"
                             Loaded="radGridView1_Loaded" />
        <Button Margin="8" Height="50" Width="50" Content="ClickMe" Click="Button_Click"/>
    </StackPanel>
</Window>

 

 

using System;
using System.Data;
using System.Windows;
using System.Windows.Controls;
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.GridView;
using Telerik.Windows.Data;

namespace WpfToTelerikForum
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class Window1 : Window
    {
        public Window1()
        {
            InitializeComponent();
        }

        private void radGridView1_Loaded(object sender, RoutedEventArgs e)
        {
            DataTable dt = new DataTable();
            DataView dv;

            dt.Columns.Add("Display", typeof(string));
            dt.Columns.Add("Number", typeof(int));

            dt.Rows.Add("show", 1);
            dt.Rows.Add("show", 2);
            dt.Rows.Add("hide", 3);

            dv = new DataView(dt);

            dv.RowFilter = "Display = 'show'";

            radGridView1.ItemsSource = dv;

        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            DataTable dt;
            DataView dv;

            dv = ((DataView)radGridView1.ItemsSource);
            dt = dv.Table;

            dt.Rows[dt.Rows.Count-1]["Display"] = "show";

            radGridView1.Records[radGridView1.Records.Count-1].IsSelected = true;
        }
    }
}

 

 

Rossen Hristov
Telerik team
 answered on 23 Jul 2009
5 answers
321 views
Hello,
I tried different binding method with you gridview and i was able to make it work.
I'd like to see a sample project(wpf web project) using this scenario:
objectdataprovider using as datacontext a linqtosql class with the ability to update , delete and insert.

Thanks
Regards
Stefan Dobrev
Telerik team
 answered on 23 Jul 2009
1 answer
89 views
Hi,

Is there a way to rotate the 3D chart x-axis labels?

This works for a 2D chart, but does not rotate the 3D charts...

chart.DefaultView.ChartArea.AxisX.LabelRotationAngle = 90;


Thanks,
Pauly
Vladimir Milev
Telerik team
 answered on 22 Jul 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?