This is a migrated thread and some comments may be shown as answers.

Columns does not displaying

1 Answer 121 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dmitriy
Top achievements
Rank 1
Dmitriy asked on 22 Oct 2010, 07:53 PM

Hello!

Now I testing a trial version of RadControls, and I have one issue:

I trying to create RadGridView with 40+ columns, with binds to ObservableCollection<>.

When I start my application, I can see the horizontal scrollbar, but not all of my columns are visible. If I will make several random clicks on RadGridView component, scrollbar width increases, and all columns became visible. What I do wrong?

1.<Grid>
2.        <telerik:RadGridView Name="dataGrid1"
3.                            EnableColumnVirtualization="True"
4.                             EnableRowVirtualization="True"
5.                             DataLoadMode="Asynchronous"
6.                             />
7.</Grid>

01.public partial class MainWindow : Window
02.    {
03.        /// <summary>
04.        /// Here is sample data class with a lot of fields
05.        /// </summary>
06.        class MyDataClass
07.        {
08.            public bool IsChecked { get; set; }
09.            public int Number { get; set; }
10.            public int Num43ber { get; set; }
11.            public int Num4ber { get; set; }
12.            public int Nu543mber { get; set; }
13.            public int Num45ber { get; set; }
14.            public int Nu5343mber { get; set; }
15.            public int Num435ber { get; set; }
16.            public int Num4vd5ber { get; set; }
17.            public int Nu543sdmber { get; set; }
18.            public int Num4sd5ber { get; set; }
19.            public int Nu43mber { get; set; }
20.            public int Num4fsdf35ber { get; set; }
21.            public int Nu54fds3vmber { get; set; }
22.            public int Nu52435mber { get; set; }
23.            public int Num43dsad5ber { get; set; }
24.            public int Num5435ber { get; set; }
25.            public int Nu4532mber { get; set; }
26.            public int Nu45mber { get; set; }
27.            public int f5344 { get; set; }
28.            public int Nufdmber { get; set; }
29.            public int Nu3fg45mber { get; set; }
30.            public int Nu52dfg435mber { get; set; }
31.            public int Numfdg43dsad5ber { get; set; }
32.            public int Numfdg5435ber { get; set; }
33.            public int Nudfg4532mber { get; set; }
34.            public int Nu4fdg5mber { get; set; }
35.            public int f53fdg44 { get; set; }
36.            public int Nufgfdmber { get; set; }
37.            public int Nufgdf345mber { get; set; }
38.            //
39.            public int Nufds45mber { get; set; }
40.            public int f5dsf344 { get; set; }
41.            public int Nasdfufdmber { get; set; }
42.            public int Nadsfu3fg45mber { get; set; }
43.            public int Nudasf52dfg435mber { get; set; }
44.            public int Nasdfumfdg43dsad5ber { get; set; }
45.            public int Nudsafmfdg5435ber { get; set; }
46.            public int Nuadsfdfg4532mber { get; set; }
47.            public int Nudsf4fdg5mber { get; set; }
48.            public int f5dsaf3fdg44 { get; set; }
49.            public int Nuadffgfdmber { get; set; }
50.            public int LASTCOLUMN { get; set; }
51.        }
52.  
53.        // here is sample collection
54.        ObservableCollection<MyDataClass> list;
55.        public MainWindow()
56.        {
57.            InitializeComponent();
58.            list = new ObservableCollection<MyDataClass>();
59.            // fill the collection with some elements
60.            for (int i = 0; i < 50; i++)
61.                list.Add(new MyDataClass() { IsChecked = true, Number= i });
62.            // bind it to RadGridView
63.            dataGrid1.ItemsSource = list;
64.        }
65.    }

Thanks. And sorry for my bad english, please :(.

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 26 Oct 2010, 01:03 PM
Hello Dmitriy,

It seems you have hit a known bug in RadGridView. there is an issue when column widths are left unset (
auto mode ) , the scrollbar behaves this way. Please excuse us for the inconvenience caused!
We are already working on fixing this  and the fix will be present in our very next official version ( within  two weeks ) .

Meanwhile as a workaround I would suggest to set explicit widths to the columns of RadGridView . This should fix the problem .

Let me know in case you find further troubles.

Regards,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Dmitriy
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or