Telerik Forums
UI for WPF Forum
4 answers
51 views
Hi!

Looks like a problem with new version of Telerik library. Following code:

GridViewColumn[] columns = new[]
            {
                new GridViewDataColumn()
                    {Header = "Test header"}
            };
 
    private void Button_Click(object sender, RoutedEventArgs e)
    {
        Grid.Columns.Clear();
        Grid.Columns.AddRange(columns);
    }


results in broken layout of column header after second button click. I think I can come up with workarounds but this seems to be a bug anyway. I have a repro solution ready if needed.

WBR,
Nikolay Ryabkov.

Nikolay
Top achievements
Rank 1
 answered on 21 Apr 2011
11 answers
264 views
The Q3 version does not appear to support mulitple column sorting when bound to a CollectionViewSource.View or DataView. When attempting to sort one column in ascending order and a second column in descending order, it does not correctly apply the second sort. This functionality had worked with the Q1 version. Has this functionality been purposefully removed?
Yordanka
Telerik team
 answered on 21 Apr 2011
6 answers
151 views
Hi,

I am using Telerik RadGridView which is implemented in a hierarchical manner in WPF Windows application.

While exporting to Excell I am getting the following error message in the Excell sheet, instead of displaying data.

[QCVG: Key=Private Capital; ItemCount=3; HasSubgroups=False; ParentGroup=[QCVG: Key=Alternatives; ItemCount=6; HasSubgroups=True; ParentGroup=[QCVG: Key=Root; ItemCount=6; HasSubgroups=True; ParentGroup=null];];];

Is there any solution to this issue.

Any quick sample code will be highly usefull to resolve this issue.

Thanks & Regards,
Hirak
Vlad
Telerik team
 answered on 21 Apr 2011
5 answers
83 views
Hi,
I faced with strange behavior of DataFilter.

When I open filter (by using RadGridView) and click on the first element and trying to use tab (to switch from one element to another one) the focus is going to be set to the parent element (RadGridView) instead of element that placed on my filter.

How to solve the problem with propagation of focus to parent element ? 

thank you,
Julian
Julian
Top achievements
Rank 1
 answered on 21 Apr 2011
2 answers
161 views
Hi!
I have a View with a Master - Details layout, in the Master i have a RadTreeList View with Hierarchical Data. In the Details I have a ComboBox which display the details of the selected value item of the Grid. How can i set the right property? I'm working with the MVVM, but i have difficulty to display the details. I want to display "Descrizione". Here my code,whats wrong? Thank you all :

<ComboBox 
                        DisplayMemberPath="Descrizione"
                        SelectedValuePath="Codice"
                        Style="{StaticResource ComboBoxStyle}"
                        Width="140" HorizontalAlignment="Left"
                        ItemsSource="{Binding Source={StaticResource commonProperties}, Path=Content.UnitaOrganizzative,Mode=TwoWay}"
                        SelectedValue="{Binding SelectedItem.Codice, Mode=TwoWay}"
                        SelectedIndex="{Binding SelectedItem.Padre}"
                        VerticalAlignment="Top" />
Roberto
Top achievements
Rank 1
 answered on 21 Apr 2011
1 answer
98 views
I have a RadBook which is loaded with a RadDocument. Currently my RadBook has fixed width and height, but this is not ideal for my application. What would improve the user experience is that if the RadBook is resized, then the pages and content are resized.

Is this something that the RadDocument within the RadBook can handle?
Petar Mladenov
Telerik team
 answered on 21 Apr 2011
5 answers
104 views
i wanted to ask if it is possible for us to have 2 tileView in a single xaml?
if yes, is there any solution for this?
I've tried to bind it to different content template, yet it failed.
Petar Mladenov
Telerik team
 answered on 21 Apr 2011
2 answers
119 views
Just wondering what it the easiest way to color-code countries? What do I do if I simply want to draw Russia in red color using OpenStreetMap provider?
Andrew
Top achievements
Rank 1
 answered on 20 Apr 2011
0 answers
99 views
Hi,

I have a collection of objects which I want to bind to a RadGridView. The class of the objects is looking like that (minimum code needed to understand) where I have 1 property and 1 array of values which :

public class AttributeEntry : INotifyPropertyChanged
    {
        public string Code { get; set; }
        private string[] _values;
        public string[] Values
        {
            get { return _values; }
            set { _values = value; }
        }
        public string this[int index]
        {
            get { return _values[index]; }
            set
            {
                _values[index] = value;
                if (PropertyChanged != null)
                    PropertyChanged(this, new PropertyChangedEventArgs(Binding.IndexerName));
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }

Is someone know a (simple) way, using the patern MVVM,  to have a RadGridView with some columns defined (in my case corresponding to the 'Code' property) and some columns "autogenerated" with each columns corresponding to the elements of a collection (in my case the elements of the array 'Values". If I have 7 values in my collection, I should have 7 "autogenerated" columns).
Philippe
Top achievements
Rank 1
 asked on 20 Apr 2011
1 answer
118 views
Hello!

I have a Grid with an activated InsertRow (ShowInsertRow=True) and a ComboBoxColumn that is readonly.
The Property bound to the SelectedValue of the ComboBox should only be set once a new item is inserted,
so i need the ComboBox to be editable in the InsertRow.
By default the ComboBox of the InsertRow inherits the Template of the Column and therefore is not editable.

How can I make that ComboBox editable, are there simple options as hooking a trigger ?
Is there a proper way to do it in Xaml (i'd like to avoid code behind) ?

Thank You.
Maya
Telerik team
 answered on 20 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?