Telerik Forums
UI for WPF Forum
1 answer
105 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
151 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
87 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
1 answer
123 views
Hi,

When I set a filter on the GridviewComboboxColumn I see the SelectedValuePath instead of the DisplaymemberPath.
This is not what you would expect.

In your RadComboBox you have an ItemTemplate and a SelectionBoxItemTemplate.  I also would like to have this behaviour for the GridViewComboBoxColumn. Is this possible?

Thanks,

Thomas.
Rossen Hristov
Telerik team
 answered on 30 Nov 2009
2 answers
127 views
Hi.

At the moment I can only show one property in the gridviewcomboboxcolumn; the property name I assign to the displaymemberpath.

What I like to do, is to show a datatemplate where I use a combination of several properties of the itemssource e.g. Firstname and Lastname. Is this possible?

Thanks,

Thomas
Thomas
Top achievements
Rank 1
 answered on 30 Nov 2009
1 answer
95 views

Hi,

 

we are just migrated to the Silverlight. In that we are used the RadGridView.

So can you please let know any way to implement Pagination of Telerik Radgrid in Silverlight.

 

Thanks In Advance.

 

Regards,

S s

Vlad
Telerik team
 answered on 30 Nov 2009
2 answers
467 views
Hi,

Since the last update (2009.3.1120.35), some of my radcombobox's are not working anymore:
in the selectionbox the linq to sql entity is shown instead of the DisplayMemberPath property.
The selected item is shown as expected.


 <telerik:RadComboBox   
                                          Margin="2,0,0,0"  
                                          Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="4" 
                                          Name="cbOmschrijving" 
                                          ToolTip="Standaard omschrijving artikel" 
                                          DisplayMemberPath="Tekst" 
                                           
                                          SelectedValuePath="NLStandaardTekstID" 
                                          SelectedValue="{Binding StandaardOmschrijvingID 
                                                ,UpdateSourceTrigger=PropertyChanged}" 
                                          Height="20" > 
                                    <telerik:RadComboBox.ContextMenu> 
                                        <ContextMenu> 
                                            <MenuItem Header="Bewerken" Click="OmschrijvingBewerken"/> 
                                        </ContextMenu> 
                                    </telerik:RadComboBox.ContextMenu> 
                                </telerik:RadComboBox> 


Thomas
Top achievements
Rank 1
 answered on 30 Nov 2009
1 answer
79 views
can you show me an example of how to make a gridview which sorts it's columns?

code it only in xaml

thanks
Vlad
Telerik team
 answered on 30 Nov 2009
7 answers
189 views
Hi,


but it doesn't work. it doesn't even compile. Can someone help?
Milan
Telerik team
 answered on 27 Nov 2009
4 answers
219 views
RadControls for WPF Q3 2009.

I have an ObservableCollection<T> with a class that implements INotifyPropertyChanged, bound to a RadGridView.

A column on the RadGridView implements a GridViewDataColumn for summing and displaying in a footer.

The Sum, shows up correctly upon running the application, however whenever a cell is edited, the sum does not update to reflect the new figure.
Am I supposed to invoke something to update the column sum?

Additionally, Columns are right aligned.  Upon entering a leaving the cell, the data is left aligned.  Is this a bug?

using System;  
using System.ComponentModel;  
 
public class Product : INotifyPropertyChanged  
{
    #region fields  
    private string _id;  
    private string _name;  
    private double _unitPrice;  
    private DateTime _date;
    #endregion  
 
    #region ctor  
    public Product()  
    {  
 
    }  
 
    public Product(string id, string name, double unitPrice, DateTime date)  
    {  
        _id = id;  
        _name = name;  
        _unitPrice = unitPrice;  
        _date = date;  
    }
    #endregion  
 
    #region properties  
    public string ID  
    {  
        get { return _id; }  
        set 
        {  
            _id = value;  
            NotifyPropertyChanged("ID");  
        }  
    }  
 
    public string Name  
    {  
        get { return _name; }  
        set 
        {  
            _name = value;  
            NotifyPropertyChanged("Name");  
        }  
    }  
 
    public double UnitPrice  
    {  
        get { return _unitPrice; }  
        set 
        {  
            _unitPrice = value;  
            NotifyPropertyChanged("UnitPrice");  
        }  
    }  
 
    public DateTime Date  
    {  
        get { return _date; }  
        set 
        {  
            _date = value;  
            NotifyPropertyChanged("Date");  
        }  
    }
    #endregion  
 
    #region Interface INotifyPropertyChanged  
    public event PropertyChangedEventHandler PropertyChanged;  
 
    private void NotifyPropertyChanged(string propertyName)  
    {  
        if (PropertyChanged != null)  
            PropertyChanged(this, new PropertyChangedEventArgs(propertyName));  
    }
    #endregion  
}  
 

public Window6()  
{  
    InitializeComponent();  
 
 
    ObservableCollection<Product> list2 = new ObservableCollection<Product>();  
    list2.Add(new Product("A", "Apple", 11.23, DateTime.Now));  
    list2.Add(new Product("B", "Banana", 1.123, DateTime.Now));  
    list2.Add(new Product("C", "Cherry", 112.3, DateTime.Now));  
    list2.Add(new Product("D", "Durian", 12.3, DateTime.Now));  
    list2.Add(new Product("E", "Eggplant", 1.23, DateTime.Now));  
    list2.Add(new Product("F", "Fireberry", .123, DateTime.Now));  
    list2.Add(new Product("G", "Golfball", 1.12, DateTime.Now));  
    list2.Add(new Product("H", "Help", 1.13, DateTime.Now));  
 
    Binding binding = new Binding();  
    binding.Source = list2;  
    RadGridView1.SetBinding(RadGridView.ItemsSourceProperty, binding);  
} 

<grid:RadGridView Grid.Row="1" Margin="0,0,0,1" x:Name="RadGridView1" ItemsSource="{Binding RandomProducts}" ShowColumnFooters="True" ShowGroupFooters="True" Width="900" 
             AutoGenerateColumns="False" IsReadOnly="False" CanUserFreezeColumns="False">  
    <grid:RadGridView.Columns> 
        <grid:GridViewDataColumn Header="ID" DataMemberBinding="{Binding ID}">  
            <grid:GridViewDataColumn.AggregateFunctions> 
                <data:CountFunction Caption="Count: " /> 
            </grid:GridViewDataColumn.AggregateFunctions> 
        </grid:GridViewDataColumn> 
        <grid:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}">  
            <grid:GridViewDataColumn.AggregateFunctions> 
                <data:MinFunction FunctionName="MinUnitPrice" ResultFormatString="{}{0:c}" SourceField="UnitPrice" /> 
            </grid:GridViewDataColumn.AggregateFunctions> 
            <grid:GridViewDataColumn.Footer> 
                <Button Content="Show smallest UnitPrice" Click="Button_Click" Margin="5,0" /> 
            </grid:GridViewDataColumn.Footer> 
        </grid:GridViewDataColumn> 
        <grid:GridViewDataColumn Width="200" Header="Unit Price" TextAlignment="Right" DataMemberBinding="{Binding UnitPrice}" DataFormatString="{}{0:c}">  
            <grid:GridViewDataColumn.AggregateFunctions> 
                <data:SumFunction Caption="Sum: " ResultFormatString="{}{0:c}" SourceField="UnitPrice" /> 
                <data:AverageFunction Caption="Average: " ResultFormatString="{}{0:c}" SourceField="UnitPrice" /> 
            </grid:GridViewDataColumn.AggregateFunctions> 
            <grid:GridViewDataColumn.Footer> 
                <StackPanel Orientation="Vertical" Margin="5,0">  
                    <TextBlock Text="Custom footer with aggregates:" Margin="0,0,0,2" /> 
                    <gridView:AggregateResultsList ItemsSource="{Binding}" VerticalAlignment="Center" Grid.Column="4">  
                        <ItemsControl.ItemTemplate> 
                            <DataTemplate> 
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center">  
                                    <TextBlock VerticalAlignment="Center" Text="{Binding Caption}" /> 
                                    <TextBlock VerticalAlignment="Center" Text="{Binding FormattedValue}" /> 
                                </StackPanel> 
                            </DataTemplate> 
                        </ItemsControl.ItemTemplate> 
                        <ItemsControl.ItemsPanel> 
                            <ItemsPanelTemplate> 
                                <StackPanel Orientation="Vertical" /> 
                            </ItemsPanelTemplate> 
                        </ItemsControl.ItemsPanel> 
                    </gridView:AggregateResultsList> 
                </StackPanel> 
            </grid:GridViewDataColumn.Footer> 
            <grid:GridViewDataColumn.GroupFooterTemplate> 
                <DataTemplate> 
 
                    <StackPanel Orientation="Vertical" Margin="5,0">  
                        <TextBlock Text="Custom footer with aggregates:" Margin="0,0,0,2" /> 
                        <gridView:AggregateResultsList ItemsSource="{Binding}" VerticalAlignment="Center" Grid.Column="4">  
                            <ItemsControl.ItemTemplate> 
                                <DataTemplate> 
                                    <StackPanel Orientation="Horizontal" VerticalAlignment="Center">  
                                        <TextBlock VerticalAlignment="Center" Text="{Binding Caption}" /> 
                                        <TextBlock VerticalAlignment="Center" Text="{Binding FormattedValue}" /> 
                                    </StackPanel> 
                                </DataTemplate> 
                            </ItemsControl.ItemTemplate> 
                            <ItemsControl.ItemsPanel> 
                                <ItemsPanelTemplate> 
                                    <StackPanel Orientation="Vertical" /> 
                                </ItemsPanelTemplate> 
                            </ItemsControl.ItemsPanel> 
                        </gridView:AggregateResultsList> 
                    </StackPanel> 
                </DataTemplate> 
 
            </grid:GridViewDataColumn.GroupFooterTemplate> 
        </grid:GridViewDataColumn> 
        <grid:GridViewDataColumn Width="200" Header="Date" DataMemberBinding="{Binding Date}" DataFormatString="{}{0:d}" TextAlignment="Right">  
            <grid:GridViewDataColumn.AggregateFunctions> 
                <data:MinFunction Caption="Min: " ResultFormatString="{}{0:d}" SourceField="Date" /> 
                <data:MaxFunction Caption="Max: " ResultFormatString="{}{0:d}" SourceField="Date" /> 
            </grid:GridViewDataColumn.AggregateFunctions> 
        </grid:GridViewDataColumn> 
    </grid:RadGridView.Columns> 
</grid:RadGridView> 
 

Vlad
Telerik team
 answered on 27 Nov 2009
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?