Telerik Forums
UI for WPF Forum
1 answer
91 views
Hello all

We used Q1 radcontrols.  In RadGridView 
while i click on GridView Header it call mouse bouble click event
I want to handle mouse double click event when click on Datagrid header


Thanks in advance


Pavel Pavlov
Telerik team
 answered on 28 Dec 2009
5 answers
138 views
Hi

I have a RadTreeView with several items, as shown here:

http://tinypic.com/view.php?pic=29m6sxs&s=5

Is there a way to change the RadTreeViewItem's highlighting yellow selection bar to not span across until the end of the tree view, but to end when where the tree view item's label ends?

The TreeView may get quite wide so I don't want the selection highlight to span until the rightmost portion of it, so ideally it would span from the beginning of the item until the end of the item.

Many thanks
Bobi
Telerik team
 answered on 28 Dec 2009
3 answers
587 views
Hello,

I was wondering if you could help me out with styling the radpane header. I'm actually just looking to change the background color, contextmenu color, and the button colors. I've been playing with it a bit in blend but cant seem to get it working right. when i change the style of the paneheader it throws an error "Type reference cannot find public type named 'RadDockingCommands'"

any help on this would be great
thanks,
~Boots
Miroslav Nedyalkov
Telerik team
 answered on 28 Dec 2009
5 answers
167 views
Hi,
I would like to know the correct way to download and Update my Q3 2009 version of WPF-Controls with the Q3 2009 SP1 (version 3.2.9.1211).
I've to solve the problem with Style of the Scheduler's Navigation Header ...

Thank's in advance
Michele
Nikolay
Telerik team
 answered on 28 Dec 2009
1 answer
55 views
Hello,

Just updated to version 2009.3.1208.35. Found a problem, well it worked with the last version. When i set the RadCarouselPannel ItemsPerPage to 7 and only display 6 items i need to scroll the items in order to see them. on the last version i didnt need to. I was curious if this is expected and i need to code around this?

here is a quick example
<Window  
    x:Class="WpfApplication1.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"
    <Grid> 
        <telerik:RadCarousel x:Name="RadCaoursel1"
            <telerik:RadCarousel.ItemsPanel> 
                <ItemsPanelTemplate> 
                    <telerik:RadCarouselPanel 
                            ItemsPerPage="7" /> 
                </ItemsPanelTemplate> 
            </telerik:RadCarousel.ItemsPanel> 
        </telerik:RadCarousel> 
    </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.ObjectModel; 
 
namespace WpfApplication1 
    /// <summary> 
    /// Interaction logic for Window1.xaml 
    /// </summary> 
    public partial class Window1 : Window 
    { 
        public Window1() 
        { 
            InitializeComponent(); 
 
            ObservableCollection<CarouselExample> items = new ObservableCollection<CarouselExample>(); 
 
            for (int i = 0; i < 6; i++) 
            { 
                items.Add(new CarouselExample() { Name = "Test" + i }); 
            } 
            this.RadCaoursel1.ItemsSource = items
        } 
    } 
 
    public class CarouselExample 
    { 
        public String Name { get; set; } 
    } 
 

thanks much,
~Boots
Milan
Telerik team
 answered on 25 Dec 2009
2 answers
428 views
Hello,
    When trying to delete specific rows from the WPF grid I get this error when I execute this command:

grid_name.Items.RemoveAt(<position of row to delete>);

The error is: Operation is not valid while ItemsSource is in use. Access and modify elements with ItemsControl.ItemsSource instead.

When I try deleting row 2 or greater from the datatable I get an error message saying that I've tried deleting an entry in the datatable that does not exist. Essentially an out of bounds error. Strangely enough I can delete the first row.

If I break the association between the grid and the datatable by doing this I can delete whatever row I want.

grid_name.ItemsSource = null;
datatable_name.Rows.RemoveAt(<position of row to delete>);
grid_name.ItemsSource = dataset_name.Tables[0].DefaultView; // I only have 1 datatable in the dataset.

Is this the correct way to delete stuff from the grid?
Jorge Gonzalez
Top achievements
Rank 1
 answered on 24 Dec 2009
3 answers
110 views
Hi,

I am setting the Maximum value of an NumericUpDown, but if user enters higher value, on lost focus it doesn't set value to maximum value. User needed to Focus-Unfocus the control to do this. (It works fine on first attempt, but not on next attempts...)
Am I doing something wrong ?

thanks,
dogu
Hristo Borisov
Telerik team
 answered on 24 Dec 2009
5 answers
93 views
I am trying to add a GridViewComboBoxColumn in radgridview dynmically usinfg the following code in my xaml.cs :

   GridViewComboBoxColumn comboColumn = new GridViewComboBoxColumn();
           
            comboColumn.DataMemberBinding = new Binding("CountryID");
            comboColumn.ItemsSource = GetCountries();
            comboColumn.DisplayMemberPath = "Name";
            comboColumn.UniqueName = "Name";
            comboColumn.SelectedValueMemberPath = "ID";
            this.RadGridView1.Columns.Add(comboColumn);


 private System.Collections.IEnumerable GetCountries()
        {
            List<Country> countries = new List<Country>();
            countries.Add(new Country() { ID = 0, Name = "Germany" });
            countries.Add(new Country() { ID = 1, Name = "Spain" });
            countries.Add(new Country() { ID = 2, Name = "UK" });
            return countries;
        }

When we select some value from the combobox and move to some other cell the binding for the combobox disapperas.
Kindly let us know your view as we are in the process of evaluating telirik radgridview control for one of our future wpf product devlopment.

Thanks
Anurag.


Tsvyatko
Telerik team
 answered on 24 Dec 2009
2 answers
194 views
Are there any examples of how to group data using the Pie Chart?  All of my attempts end with the entire pie showing just one of the possible groups.

            SeriesMapping seriesMapping = new SeriesMapping(); 
            seriesMapping.SeriesDefinition = new PieSeriesDefinition();
 
            seriesMapping.GroupingSettings.GroupDescriptors.Add(new ChartGroupDescriptor("Baker")); 
 
            ItemMapping itemMappingValue = new ItemMapping("PieID", DataPointMember.YValue, ChartAggregateFunction.Count); 
            seriesMapping.ItemMappings.Add(itemMappingValue); 
 
            ItemMapping itemMappingKey = new ItemMapping("Baker", DataPointMember.LegendLabel); 
            seriesMapping.ItemMappings.Add(itemMappingKey); 
 
            RadChart1.SeriesMappings.Add(seriesMapping); 
 
            List<PieTest> pies = new List<PieTest>(); 
            pies.Add(new PieTest() { PieID = 1, Baker = "John", Crust = "Corn Meal", Filling = "Chili" }); 
            pies.Add(new PieTest() { PieID = 2, Baker = "Peter", Crust = "Graham Cracker", Filling = "Cream Cheese" }); 
            pies.Add(new PieTest() { PieID = 3, Baker = "Paul", Crust = "Graham Cracker", Filling = "Chocolate Cream" }); 
            pies.Add(new PieTest() { PieID = 4, Baker = "Paul", Crust = "Flour", Filling = "Apple" }); 
            RadChart1.ItemsSource = pies; 

So with my example, how would I show a pie chart that represents how many pies each Baker baked?
Brandon Strevell
Top achievements
Rank 1
 answered on 23 Dec 2009
1 answer
106 views
Hello guys,
I want to show some statistics about the drives installed on the machine, i wanted to use a pie chart for that.
But the question is how can i make the item's label to be more pleasant .. like 23.5GB / 58KB, how can stick the appropriate string at the end (GB/MB/KB so on...). 
Any suggestions?
Bartholomeo Rocca
Top achievements
Rank 1
 answered on 23 Dec 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?