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 :(.