Telerik Forums
UI for WPF Forum
5 answers
328 views

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

 

 gridView​Orders.ItemsSource = tradesRepo.ListOfPendingOrders;​

 

 

Any ideas?

 

Thanks

Yoan
Telerik team
 answered on 15 Sep 2015
8 answers
276 views
Hi everyone, i'm displaying a simple window with a RadRichTextBox and a RadRichTextBoxRibbonUI as a modal dialog. I noticed that each time the modal is shown there's a significant spike in the application's memory usage, memory that never seems to be freed even after the dialog is closed. Eventually if the user opens the dialog enough time he/she receives an OutOfMemoryException.

Any ideas on what can be going on? I'm using version 2013 Q3

Thanks, Gonzalo
Tanya
Telerik team
 answered on 15 Sep 2015
5 answers
167 views

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.

Riyadh
Top achievements
Rank 1
 answered on 15 Sep 2015
2 answers
115 views

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?

Stefan
Telerik team
 answered on 15 Sep 2015
3 answers
153 views

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!

 

Oksana
Top achievements
Rank 1
Iron
 answered on 14 Sep 2015
1 answer
93 views

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.

 ​

Sia
Telerik team
 answered on 14 Sep 2015
10 answers
650 views

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.

Nasko
Telerik team
 answered on 14 Sep 2015
1 answer
373 views

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 Rad​DropDownButton 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?

Nasko
Telerik team
 answered on 14 Sep 2015
1 answer
46 views

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​

Ivan Ivanov
Telerik team
 answered on 14 Sep 2015
4 answers
353 views

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
Petar Mladenov
Telerik team
 answered on 14 Sep 2015
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)
WatermarkTextBox
DesktopAlert
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?