I have problem with sorting on GridView
I have two number columns (integers) and when I click on the column header to sort it sorts them as string and not numeric values.
.xaml file
<telerik:RadGridView x:Name="gridViewOrders"
ShowGroupPanel="False"
AutoGenerateColumns="False"
CanUserSortColumns="True"
RowIndicatorVisibility="Collapsed"
IsFilteringAllowed="False">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Order}"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Account}" />
<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Timestamp}"/>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
cs file
gridViewOrders.ItemsSource = tradesRepo.ListOfPendingOrders;
Any ideas?
Thanks

Hello,
I am catching MouseLeftButtonUp event. I select multiple items and then select one item from that multiple selected item (The focus and selection is now in one item). When MouseLeftButtonUp fires, it still displays the multiple selection count in SelectedItems.count. Is it a bug? how to do a work around? Thanks in advance. I am using file version 2015.2.728.45 Telerik.Windows.Controls.dll.
Hi,
I have gridview in which I added some common group headers to group the columns logically. Depending on the context some of these logical groups have no data and therefore I hide them in the UI (IsVisible=false on DataLoaded event). On exporting the grid to Excel (.ExportToXlsx method) the Group Headers does not line up with the relevant columns. I put this down to the hidden columns so my solution was to first show all the columns (IsVisible=true), do the export and then hide the relevant empty columns again. However, now none of the group headers are exported.
I capture the ElementExportingToDocument event and can see a CommonColumnHeaderRow element being exported but no CommonColumnHeaderCell element or the like (next element is HeaderRow).
Any thoughts?
I have an app used for Dispatch Scheduling.
The scheduler is used by dispatchers to assign appointments for technicians. So in my scheduler, they are grouped by technicians and used the GroupHeaderContentTemplateSelector for my templates whether it be Horizontal or Vertical view.
Most of the time they have lots of technicians in their view. To find one technician, you have to scroll to the left or right or up or down depending on the orientation.
The task is to provide a way for dispatchers to easily locate the technician by let's say right clicking the scheduler and click Go To ... specific technician.
It should scroll to that technician in view.
I have seen an implementation for ScrollViewer where you specify the desired position using the ScrollToHorizontalOffset or ScrollToVerticalOffset. What is the best way to locate a specific technician in my case within the grouping as my parameter? Or any implementation that would help implement the requirement would be great.
A sample code is very much appreciated.
Thanks!
I'm using a RadSemicircleNorthGauge and with NumericIndicator.Positions using the telerik:SevenSegsNumberPosition for a digital display inside the gauge.
It is working but I'm getting these kinds of warnings in debug output:
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='SevenSegsSb'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='SevenSegsSb'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='SevenSegs7'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='SevenSegs7'
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='SevenSegs7'
Any help is appreciated.
Hallo, I have to use ListCollectionView as an ItemsSource for RadListBox and at the same time I have to pass SelectedItems down to my ViewModel. I was trying to use new ListBoxSelectedItemsBehavior.SelectedItemsSource which is working flawlessly for ObservableCollection<T> as ItemsSource but not at all when using ListCollectionView or CollectionViewSource.
I have modified a sample from github, simply I've added two more collections for SelectedItems and new ListCollectionView and CollectionViewSource with some simple filters as ItemsSource for additional RadListBoxes. Binding directly to SelectedItems works, but in some cases ElementName binding does not work so to have other approach is always good.
Attached screenshot is from modified sample and as you can see, SelectedItems from additional listboxes contains only items manually added in constructor and not reflecting changes in selection made in associated control.
I suspect that this is because neither ListCollectionView nor CollectionViewSource is strongly typed collection and CollectionTypeComparerHelper is not detecting that they hold same type as binded SelectedItemsSource collection.
Hello,
I have a RadTreeView which I need to display inside a combobox and also to be able to sort/filter through it. I can't seem to make it work using your examples from here
http://www.telerik.com/blogs/treeview-in-a-combobox-dropdown-using-radcontrols-for-silverlight and here
http://www.telerik.com/blogs/treeview-in-combobox-take-3-silverlight-3-wpf-and-radcontrols . (they don't seem to work/compile either)
What I did manage was to partly replicate the behaviour I wanted using your RadDropDownButton tutorial provided here: http://www.telerik.com/blogs/treeview-in-combobox-with-radcontrols-for-silverlight-or-wpf-final-take
Problem is I really need it to be sortable the way ComboBox is. Can you show me an updated example I can use to make this work?
I set specific cell background in grid click. But on grid scroll it set
back to default. I perefer not to use EnableRowVirtualization as False.
This is My Code:
<telerik:RadGridView ItemsSource="{Binding PersonList}" Name="grid"Height="200" PreviewMouseUp="grid_PreviewMouseUp" >private void grid_PreviewMouseUp(object sender, MouseButtonEventArgs e){ var cell = (sender as RadGridView).CurrentCell; cell.Background = Brushes.Aqua;}
Thank
Hi All
By any chance that I could add a new custom color in to standard color palette please ?
I am using RadColorPicker
Thanks in advance