Telerik Forums
UI for WPF Forum
2 answers
264 views
Hello

My WPF RadGridView is bound to a list of business objects using its ItemsSource property. So far we were using the grid's Records property to get all objects that are being displayed after filtering and in the current sort order. In the latest version of the WPF control suite (Q2 2009) mostly everything related to RadGridView.Records (Record and DataRecord class) is marked as obsolete. So how to get the list of displayed items now?

I've already tried CollectionViewSource.GetDefaultView(myGrid.ItemsSource) but this gets the whole list not only the list after filtering.

Thanks for any help

Christian
Christian
Top achievements
Rank 1
 answered on 09 Jul 2009
10 answers
170 views
Hi,

Is the Filtered event not raised on purpose when the Clear Filter button is clicked?

Thanks.
Vlad
Telerik team
 answered on 09 Jul 2009
1 answer
169 views
I have a "hidden" column (made visible for debugging) called "Index" that I am sorting by...  When I first load the grid, the grid is loaded in the correct way - but probably because my list of objects is already sorted.  I implemented some custom commands attached to buttons inside the GridViewRow Template for moving objects UP or DOWN in the grid.  When the Move Up or Move Down buttons are pressed, the items are removed from the list, inserted at the right location and the list's Index properties are corrected for the new order...

BUT The first time I press Move Up or Move Down, the index changes (I see the indexes in the data records change), but the grid doesn't refresh the items.   The NEXT time I press either button, the grid resorts but not in a nice way...  Items are always in the wrong order.

For example:

Start with these objects in the grid
1 - AAA
2 - BBB
3 - CCC

Move Down for object AAA: Remove object AAA, insert at new spot in list, reindex.  Grid shows:
2- AAA
1 - BBB
3 - CCC

Move Down for object AAA: Remove object AAA, insert at new spot in list, reindex.  Grid shows:
2 - CCC
1 - AAA
3 - BBB

I may have to put a small sample together but I'm hoping not. Here is how I  have my grid defined:

            <telerik:RadGridView x:Name="SettingsGrid" ItemsSource="{Binding ElementName=UC, Path=CurrentTeamProjectList}" ScrollMode="RealTime"  
                                     AutoGenerateColumns="False" ShowGroupPanel="False" IsFilteringAllowed="False" ColumnsWidthMode="Fill" ShowColumnHeaders="False" 
                                     CanUserFreezeColumns="False" CanUserReorderColumns="False" CanUserSortColumns="False" VerticalGridlinesVisibility="Hidden" 
                                     Margin="4,2,4,2" Loaded="SettingsGrid_Loaded"
 
                <telerik:RadGridView.Columns> 
                    <telerik:GridViewDataColumn UniqueName="Index" IsReadOnly="True" DataType="{x:Type System:Int32}"/> 
                    <telerik:GridViewDataColumn UniqueName="Name" IsReadOnly="True" DataType="{x:Type System:String}"/> 
                    <telerik:GridViewDataColumn UniqueName="Boolean1" DataType="{x:Type System:Boolean}"/> 
                    <telerik:GridViewDataColumn UniqueName="Boolean2" DataType="{x:Type System:Boolean}"/> 
                    <telerik:GridViewDataColumn UniqueName="NumSeconds" DataType="{x:Type System:Int32}"/> 
                </telerik:RadGridView.Columns> 
                <telerik:RadGridView.SortDescriptions> 
                    <cm:SortDescription PropertyName="Index" Direction="Ascending" /> 
                </telerik:RadGridView.SortDescriptions> 
            </telerik:RadGridView> 
 

I tried adding a SortDescription object to the SortDescriptions collection in the grid loaded event, but that did the same thing.

Thoughts?
Greg
GPJ
Top achievements
Rank 1
 answered on 08 Jul 2009
2 answers
115 views
Hi,

I have implemented a custom GridViewRow Template but the vertical scrolling of the grid is gone...  I'm not sure if I turned it off though since there doesn't seem to be any property like "VerticalScrollBarVisibility" to set?
       
Here is a sample of how I am defining my grid:

            <telerik:RadGridView x:Name="SettingsGrid" ItemsSource="{Binding ElementName=UC, Path=CurrentSettingList}" ScrollMode="RealTime"  
                                     AutoGenerateColumns="False" ShowGroupPanel="False" IsFilteringAllowed="False" ColumnsWidthMode="Fill" ShowColumnHeaders="False" 
                                     CanUserFreezeColumns="False" CanUserReorderColumns="False" CanUserSortColumns="False" VerticalGridlinesVisibility="Hidden" 
                                     Margin="4,2,4,2" Loaded="SettingsGrid_Loaded"
 

Greg
GPJ
Top achievements
Rank 1
 answered on 08 Jul 2009
4 answers
370 views
Hi,
I want to be able to display a different context menu depending on which column cell the user right-clicks on as described on this article for the RadGridView for WinForms:
http://www.telerik.com/support/kb/winforms/gridview/radgridview-custom-context-menu-dependent-on-element-clicked.aspx


I need to be able to do the same in WPF. Is it possible?
Thanks,
Laura
Pavel Pavlov
Telerik team
 answered on 08 Jul 2009
3 answers
99 views
Hello,
I tried to recreating the 'First Look' sample with different objects. The code below is taken from the sample. I have only changed one line there.

public Example() 
        { 
            InitializeComponent(); 
            this.sampleRadCarousel.ItemsSource = DAL.GetCustomers(); 
            this.sampleRadCarousel.Loaded += new RoutedEventHandler(sampleRadCarousel_Loaded); 
        } 
 
        void sampleRadCarousel_Loaded(object sender, RoutedEventArgs e) 
        { 
            Path path = CreateLinePath(); 
            Telerik.Windows.Controls.RadCarouselPanel panel = this.sampleRadCarousel.FindCarouselPanel(); 
            panel.ItemsPerPage = 7; 
            panel.Path = path; 
        } 

The issue I am having is that the carousel does not display items until I move the mouse wheel or move the items in a different way.

The moduleCarousel.FindCarouselPanel().BringDataItemIntoView(customer); does not help. Is there a way to refresh or something ?
Milan
Telerik team
 answered on 08 Jul 2009
1 answer
116 views
I have a line chart bound to a collection, the X-Axis has DateTime values. The collection gets a new item added every few seconds, and the chart correctly updates. But if I have a tooltip displaying when the chart updates, that tooltip becomes fixed to the screen, permanently visible, even if I move the application window away, until I close the application.

I'm using the 2009 Q2 controls.

Steve
Giuseppe
Telerik team
 answered on 08 Jul 2009
1 answer
328 views
I recently downloaded the free version of the WPF controls. Is there any significant difference between the free version and the version that you can purchase from Telerik?
Vlad
Telerik team
 answered on 08 Jul 2009
4 answers
95 views
is it possible to have non-rectangular tabs, which also overlap, like the ones in VS2008?

Steve
SteveL
Top achievements
Rank 2
 answered on 07 Jul 2009
7 answers
204 views
The online documentation for the gridview doesn't seem comprehensive.
Is there any documentation that cover all the details?

Thanks
L uke
Top achievements
Rank 1
 answered on 07 Jul 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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?