Telerik Forums
UI for WPF Forum
1 answer
258 views

Hello,
The BusyIndicator works very well, but one small detail that I don’t like. Let's see if I can help:
When I apply BusyIndicator on a RadGridView  the text color from the rows of RadGridView turns from gray tone Metro (My default template) to color black.

this is my code:

<telerik:RadBusyIndicator IsBusy="{Binding Cargando}" BusyContent="Cargando">
                                <telerik:RadGridView Focusable="False" telerik:PersistenceManager.StorageId="RGrid" Grid.Row="0" AutoGenerateColumns="False" x:Name="radGridView1" ItemsSource="{Binding Conocimientos}" SelectedItem="{Binding ConocimientoSeleccionado}" CanUserInsertRows="False" CanUserDeleteRows="False" IsManipulationEnabled="False" IsReadOnly="True">
                                    <i:Interaction.Triggers>
                                        <i:EventTrigger EventName="MouseDoubleClick">
                                            <ei:CallMethodAction MethodName="radGridView1_MouseDoubleClick" TargetObject="{Binding}" />
                                        </i:EventTrigger>
                                    </i:Interaction.Triggers>
                                    <telerik:RadGridView.Columns>
                                        <telerik:GridViewDataColumn MinWidth="0" Name="ColIdConocimiento" DataMemberBinding="{Binding IdConocimiento}" Header="{Binding TAAF_Gestiones_Presentation_WPF_ConocimientosLista_ColIdConocimiento_Header,Source={StaticResource resLanguage}}" Width="60" />
                                        <telerik:GridViewDataColumn MinWidth="0" Name="ColFecha" DataMemberBinding="{Binding Fecha}" Header="{Binding TAAF_Gestiones_Presentation_WPF_ConocimientosLista_ColFecha_Header,Source={StaticResource resLanguage}}" Width="80" DataFormatString="{}{0: dd/MM/yyyy}" />
                                        <telerik:GridViewDataColumn MinWidth="0" Name="ColPregunta" DataMemberBinding="{Binding Pregunta}" Header="{Binding TAAF_Gestiones_Presentation_WPF_ConocimientosLista_ColPregunta_Header,Source={StaticResource resLanguage}}" Width="200" />
                                        <telerik:GridViewDataColumn MinWidth="0" Name="ColRespuesta" DataMemberBinding="{Binding Respuesta}" Header="{Binding TAAF_Gestiones_Presentation_WPF_ConocimientosLista_ColRespuesta_Header,Source={StaticResource resLanguage}}" Width="200" />
                                        <telerik:GridViewDataColumn MinWidth="0" Name="ColIdAplicacion" DataMemberBinding="{Binding IdAplicacion}" Header="{Binding TAAF_Gestiones_Presentation_WPF_ConocimientosLista_ColIdAplicacion_Header,Source={StaticResource resLanguage}}" Width="40" />
                                        <telerik:GridViewDataColumn MinWidth="0" Name="ColAplicacion" DataMemberBinding="{Binding Aplicacion}" Header="{Binding TAAF_Gestiones_Presentation_WPF_ConocimientosLista_ColAplicacion_Header,Source={StaticResource resLanguage}}" Width="150" />
                                        <telerik:GridViewDataColumn MinWidth="0" Name="ColIdAplicacionModulo" DataMemberBinding="{Binding IdAplicacionModulo}" Header="{Binding TAAF_Gestiones_Presentation_WPF_ConocimientosLista_ColIdAplicacionModulo_Header,Source={StaticResource resLanguage}}" Width="40" />
                                        <telerik:GridViewDataColumn MinWidth="0" Name="ColAplicacionModulo" DataMemberBinding="{Binding AplicacionModulo}" Header="{Binding TAAF_Gestiones_Presentation_WPF_ConocimientosLista_ColAplicacionModulo_Header,Source={StaticResource resLanguage}}" Width="150" />
                                    </telerik:RadGridView.Columns>
                                </telerik:RadGridView>
                                </telerik:RadBusyIndicator>


Someone can tell me the reason?
Thanks and sorry for my English

Yana
Telerik team
 answered on 22 Nov 2011
3 answers
150 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
194 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
151 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
519 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
481 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
247 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
216 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
300 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
251 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
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?