Telerik Forums
UI for WPF Forum
3 answers
142 views
The RadDataPager works great for us, especially when it comes to speeding up the loading time for our records on the main page of our app (we were loading all of our records at the same time before, and there are a lot of them).

However, is it possible to sort data across pages when you're using the RadDataPager? Currently, when a user clicks on a column header in the RadGridView, it just sorts the records on that page. Would there be a way to sort all of the records across all pages when a user clicks a column header?

I'm assuming that we'll have to implement our own custom logic to get this to work, and I'm also assuming that we won't be able to get around the fact that we'll have to load all of the records in the gridview again, but I'm just wondering if anyone has found an efficient way to do this.

Thanks!

Rossen Hristov
Telerik team
 answered on 22 Nov 2011
5 answers
185 views
The standard WPF Richtextbox supports pasting of ImageData. Is there a way to get this working with the RadRichTextBox?
Iva Toteva
Telerik team
 answered on 22 Nov 2011
1 answer
148 views
I need to make the RadMap pan left/right/up/down based on some non-ui events.  How do I tell the map to pan programatically? Which property do I use?  Is there a RoutedUICommand or something?

I had to do the same thing for zooming and that was pretty easy.  I've found the PanningCompleted event, but don't know where the Pan function is :)  Please point me in the right direction.
Andrey
Telerik team
 answered on 22 Nov 2011
1 answer
508 views
Hi,

I'm currently using the RadDocking control in a project.
It's a fairly simple layout with dockable panes on the left of the screen and a document host filling up the rest of the space.

In order to track down this issue I only have 2 panes in the pane group for now.

What I'm trying to do is assign short cut keys to each of the panes.
Specifically, when you press the short cut key for a particular pane that pane will become active and the focus will be on the first control in the pane.

I've defined some RoutedUICommands and used Windows.InputBindings to assign short cut keys to the commands.
The Executed handler for each command does the following:
1. Sets the Selected Item property of the RadPaneGroup to the appropriate pane.
2. Calls control.Focus() on the appropriate control (within that pane).

Unfortunately, this isn't working as it should.

Ridiculously, I've found that by calling DoEvents() in between setting the selected item and setting the focus of the control it works as it should. I know C# doesn't officially have a DoEvents method but if you google it you'll find examples of code that looks like this:

Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, new Action(delegate { }));


Obviously, this is a hack and I'm keen to fix it the right way.

Any help would be appreciated, I have a sample application which illustrates the point if needed.

Thanks,


CA.


Ivo
Telerik team
 answered on 22 Nov 2011
8 answers
467 views
Hi,

I want to know the equivalent mecanism in WPF to bind Property  of the TreeView and TreeViewItems with properties in the ViewModel using MVVM pattern. For Example in silverlight  I do such and work perfectly:

<telerik:ContainerBindingCollection x:Name="BindingProperties">
   <telerik:ContainerBinding PropertyName="IsLoadOnDemandEnabled" Binding="{Binding Path=Expand, Mode=TwoWay}" />
 <telerik:ContainerBinding PropertyName="IsDropAllowed" Binding="{Binding Path=DropAllowed, Mode=TwoWay}"/>
</telerik:ContainerBindingCollection>

But this one doesn t work in WPF. Can U tell me how to adapt this in the WPF context??

Thank U for your Help

Alino
Tina Stancheva
Telerik team
 answered on 22 Nov 2011
1 answer
234 views

I dynamically built a form using a RadDocking, then a Vertical RadSplitContainer and inside the RadSpltContainer two Horizontal RadSplitContainers. The lower RadSplitContainer has three RadPaneGroups where the right outer contains three RadPanes.
The right outer container is filled like this:

radPaneGroupSystem.AddItem(ucStatusAlarms, Telerik.Windows.Controls.Docking.DockPosition.Top);
radPaneGroupSystem.AddItem(ucRSSFeed, Telerik.Windows.Controls.Docking.DockPosition.Left);
radPaneGroupSystem.AddItem(ucMessageViewer, Telerik.Windows.Controls.Docking.DockPosition.Right);

If I do that I get a "Object reference not set to an instance of an object." error, source "Telerik.Windows.Controls.Docking",
StackTrace   
at Telerik.Windows.Controls.RadPaneGroup.GetPaneGroup()
at Telerik.Windows.Controls.RadPaneGroup.AddItem(RadPane pane, DockPosition dockPosition)

If I change the code and use panegroupParent.Items.Add(ucStatusAlarms), etc I get the three RadPanes as three Tabs functioning normally.

I checked the parameters going into the AddItem call, they are normally set to an instance.
Does anyone know why the Docking gives an Object reference not set to an instance of an object error and what I can do about it?

Pieter
Top achievements
Rank 2
 answered on 22 Nov 2011
1 answer
210 views
Hi,

I am using MaskedInput control for currency value. I want to set a negative currency value in the masked input control. I get () in the control when I type - symbol. How to set mask which accepts negative value for currency type.

Regards,
Jeyakumar
Petar Mladenov
Telerik team
 answered on 22 Nov 2011
6 answers
276 views
Hi,

I am using RadGridView with multiple/single field groupings based on conditions. When grid is first bound, it eats away first row of each group, which is event present in the datasource of the grid.

Code for setting default grouping when RadGridView is bound:
private void setGrouping() {
       if (this.grdScope != null) {
           this.grdScope.GroupDescriptors.Clear();
           GroupDescriptor serviceDescriptor = new GroupDescriptor();
           serviceDescriptor.Member = "Service";
           serviceDescriptor.SortDirection = ListSortDirection.Ascending;
           this.grdScope.GroupDescriptors.Insert(0, serviceDescriptor);
       }
   }

Edited: The missing row is restored when I toggle the radio buttons to change the mode (as below)
Below is the code to change the grouping:

//if radiobutton 1 is checked
private void rbService_Checked(object sender, RoutedEventArgs e) {
       if (this.grdScope != null) {
            this.grdScope.GroupDescriptors.Clear();
            GroupDescriptor serviceDescriptor = new GroupDescriptor();
            serviceDescriptor.Member = "Service";
            serviceDescriptor.SortDirection = ListSortDirection.Ascending;
            this.grdScope.GroupDescriptors.Insert(0, serviceDescriptor);
        }
    }
 
//if radiobutton 2 is checked
    private void rbPhase_Checked(object sender, RoutedEventArgs e) {
        if (this.grdScope != null) {
            GroupDescriptor phaseDescriptor = new GroupDescriptor();
            phaseDescriptor.Member = "Phase";
            phaseDescriptor.SortDirection = ListSortDirection.Ascending;
            this.grdScope.GroupDescriptors.Insert(0, phaseDescriptor);
            this.grdScope.ShowGroupPanel = false;
        }
    }

Any ideas suggestions on this?
Maya
Telerik team
 answered on 22 Nov 2011
2 answers
242 views
Hi,

I have a WPF application in which I rehost the .Net 4.0 Workflow designer alongside a RadTreeView. Items on the RadTreeView are dragged onto the designer and, when dropped, morph into self configuring workflow activities based on the context from which they were dragged.

I am using Telerik's DragDropManager and the AddDragEnterHandler and AddDragOverHandler methods to add handlers to the Workflow Designer View and that is working perfectly. However...

I need to control the drag cue over the designer and that is proving to be more problematic.

I first tried the following:
RadDragAndDropManager.AddDragQueryHandler(this.Designer.View, this.Designer_DragQueryHandler);

However the Designer_DragQueryHandler delegate would never fire.

So I thought it must be that the designer is handling that event before my delegate can be executed, so I tried the following:
this.Designer.View.AddHandler(RadDragAndDropManager.DragQueryEvent, new EventHandler<DragDropQueryEventArgs>(this.Designer_DragQueryHandler), true);

This did not work either.

I am at a dead end on this now and would greatly appreciate any direction on how I might achieve this.

Thanks in advance
Chris
Chris
Top achievements
Rank 1
 answered on 22 Nov 2011
0 answers
85 views
We are using autogenerated gridview and works fine but we have an issue with rebinding itemssource of filtered (by column default filters) by user.
If you refresh data (we do with background worker as datatable, then set grid itemsource to dataview.defaultview and call grid.rebind()) if the user has set column filters, it looses the ability to remove the filter but still reflects the filter in the grid.
Guru
Top achievements
Rank 2
 asked on 22 Nov 2011
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?