Telerik Forums
UI for WPF Forum
14 answers
202 views
Hi,

I'm using a RadGridView with a lot of columns, which requires horizontal scrolling to see all the columns. But when a filter is applied to a column outside the view, and that filter returns no results (empty list), the view scrolls to the start and the horizontal scrollbar disappears. If that happens, I can't clear the filter because I can't scroll to the column the filter is set on.

I tried:

<telerik:RadGridView ScrollViewer.HorizontalScrollBarVisibility="Visible">  
<!-- columns and stuff --> 
</telerik:RadGridView> 

But the scrollbar still disappears.

Is there some solution for this problem?

Thanks in advance.
Vlad
Telerik team
 answered on 02 Dec 2009
2 answers
442 views
Hi,

I'm binding data to a pie chart. My YValues are double representing percentage (e.g. 0.258963 for 25,90 %).
I would like that the Telerik Pie Chart display label  as percentage (25.90%) and not as the value of the double (0.258963).
What's the solution ? Should i convert my YValues on my own or Telerik have a "format" properties.

Thanks in advance.

G. Moelens
Khoa Ho
Top achievements
Rank 1
 answered on 02 Dec 2009
3 answers
125 views
How can I set a context menu when I right click on the tab of a document in the DocumentHost?
Miroslav Nedyalkov
Telerik team
 answered on 01 Dec 2009
2 answers
83 views

Hello, 

when grouping is active there seems to be a problem with multi-selection by clicking on the CheckBoxes of a GridViewSelectColumn (using the current internal build). CheckBox and row change state, but SelectionChanged is not raised.

Multi-selection by mouse clicking is raising SelectionChanged as expected. 

Thanks for looking into this,

Alex

Alexander
Top achievements
Rank 1
 answered on 01 Dec 2009
1 answer
199 views

Hello,

How can I set the CellStyle for All Cell of RadGridView ?


Tsvyatko
Telerik team
 answered on 01 Dec 2009
4 answers
425 views
Hi
I'm using a RadTreeView with checkboxes. I'm binding the ItemsSource property of the radtreeview to a collection of my businessobject. I need to retrieve the checked items (businesss objects) on my view model class. I tried to bind the CheckedItems property to an ObservableCollection on my viewmodel. but it gives me a compile error because the set accessor is not accessible.
Is there another way of doing this other than hooking it to the checked event from the code behind?
Binu Abraham
Top achievements
Rank 1
 answered on 30 Nov 2009
4 answers
152 views

Hello,

I have recently upgraded to the latest Q3 release and have run into a problem that used to work with the Q2 binaries.  I have an object that I use to “collect” properties from multiple objects for displaying on a grid.  For instance, I have a person object with name properties, and an address object(collection) with its fields.  In a grid, I’d like to display the person’s name and their (primary) address.

I had a solution that worked well in the Q2 binaries, but since the upgrade my solution will no longer work as the item source seems to look at the base class, instead of the object being passed in. 

Here’s a boiled down example to illustrate my issue.   


Here's the class difinitions:
        public class Visualitems : List<Visualitem> {  
            object Parent { getset; }  
        }  
        public abstract class Visualitem {  
            public object Parent { getset; }  
        }  
        public class GridDataItem : Visualitem {  
            public GridDataItem( string first, string middle, string last ) {  
                this.FirstName = first;  
                this.LastName = last;  
                this.MiddleName = middle;  
            }  
            public string FirstName { getset; }  
            public string MiddleName { getset; }  
            public string LastName { getset; }  
        }  
 

Here's how I attempt to setup and populate the grid:
            Visualitems items = new Visualitems();  
            items.Add( new GridDataItem( "Jon""A""Smith" ) );  
            items.Add( new GridDataItem( "Tom""P""Jones" ) );  
            items.Add( new GridDataItem( "Ken""W""Adams" ) );  
            items.Add( new GridDataItem( "Kelly""C""Truman" ) );  
 
            Telerik.Windows.Controls.GridViewDataColumn gvc = new Telerik.Windows.Controls.GridViewDataColumn();  
            gvc.UniqueName = "FirstName";  
            gvc.Header = "First Name";  
            gvc.DataContext = "FirstName";  
            gvc.IsVisible = true;  
            gvc.Width = new Telerik.Windows.Controls.GridViewLength( 1, Telerik.Windows.Controls.GridViewLengthUnitType.Star );  
            grid.Columns.Add( gvc );  
              
            Binding binding = new Binding();  
            binding.Source = items;  
            binding.Mode = BindingMode.OneWay;  
            binding.BindsDirectlyToSource = true;  
 
            grid.DataContext = binding.Source;  
            grid.SetBinding( Telerik.Windows.Controls.RadGridView.ItemsSourceProperty, binding ); 

This will generate the error:  "Property with name FirstName cannot be found on type Visualitem"

Any guidance on this matter would be appreciated...

Thank you in advance for your time,

Craig
capsule
Top achievements
Rank 1
 answered on 30 Nov 2009
1 answer
72 views
Hi, i am trying to use RadGridView
i have add the reference dll and add namespace definition, 
and use this Code in my project 

<Controls1:RadGridView ItemsSource="{Binding Orders}" AutoGenerateColumns="True"></Controls1:RadGridVie> 


I have no compiler error, but when i lunch the application i get the follow exception:

Can not assign value  '/Telerik.Windows.Controls.GridView;component/themes/office/black/GridViewToggleButton.xaml' to property 'Source' of object 'System.Windows.ResourceDictionary'. Object reference not set to an instance of an object. Error at object 'System.Windows.ResourceDictionary' at markup file 'Telerik.Windows.Controls.GridView;;;Component/Themes/GenericOfficeBlack.xaml'.

How Can i solve my problem ? 


Rossen Hristov
Telerik team
 answered on 30 Nov 2009
1 answer
90 views
Hi,
I am creating a chart in code behind.

I have a small problem when using SplineAreaSeriesDefinition -> see attachment.
I cant get the series x axis to start at zero ?

Does anyone have a tip ?

Best regards.
krissi.
Sia
Telerik team
 answered on 30 Nov 2009
1 answer
54 views
All,

   I have found a bug in the RadGridView control which causes the group area to be larger then expected.  To reproduce this bug, just set the MinHeight property of the grid view control to some large number.  This even proves true in designer mode.

- Rashad Rivera
Kalin Milanov
Telerik team
 answered on 30 Nov 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?