Telerik Forums
UI for WPF Forum
3 answers
368 views
Hello,
I am trying to switch an RadTreeViewItem to EditMode on mouse double click.
When I do that, the content of the textbox is empty, isn't it a bug?
Thanks
Martin Ivanov
Telerik team
 answered on 05 Apr 2018
3 answers
82 views
Hi,
In my project, I can't set all data in ItemsSource.
I want when user filter, I set data to ItemsSource(note: I don't want Telerik to filter current data).

I handle the Filtered event and I set My data to ItemsSource in this function. but Telerik filters new data again.
What am I do to force Telerik don't filtering data by itself?
thanks.
Stefan
Telerik team
 answered on 04 Apr 2018
7 answers
158 views

Hi,

I want to be able to redefine the default style of the RadDatePicker to make it look like the rest of our components.

To do so, I put a RadDatePicker in my application, I clicked on it via the 'Document Outline' and chose Edit template -> Edit a copy. I then noticed that the RadDatePicker was now experiencing an issue when I "zoom out" to the "Decade" view : If I click on the left arrow (-10 years) or the right arrow (+10 years), the header text correctly changes (2000 -> 1990 / 2000 -> 2010) but the displayed years in the "calendar" section of the date picker aren't affected by the change. I get the same problems if you zoom out to the "hundred years" view.

Here is the simplest project I could put together to show the issue : https://drive.google.com/open?id=1d_GcDKeUfdmifYbo6KedukOIKtyHSiVo

Here are some screenshots of the problem : https://drive.google.com/open?id=182PK161CCZc_1k4m9rogxl_lSXIF8Lc1

Here are the repro steps :

1. Create a new project

2. Add 2 RadDatePicker

3. Select one of the two RadDatePicker, Edit template -> Edit a copy

4. Notice described issue

I hope this is enough for you to help me with this issue, I guess it must be something missing in the copied style that breaks this mecanism.

Thank you for your time :)

Louis

 

 

Stefan
Telerik team
 answered on 04 Apr 2018
1 answer
626 views

Hi,

I'm trying to to accomplish the following: whenever a user right clicks whatever data grid, the same context menu should appear.  One of the options in the context menu is the export to Excel.  I'm trying to achieve this by creating a style for the RadGridView.  Here's my xaml:

<Style x:Key="TelerikGridViewContextMenuStyle" TargetType="{x:Type telerik:RadGridView}">
    <Setter Property="ContextMenu">
        <Setter.Value>
            <ContextMenu>
                <MenuItem Header="{bx:LocalizeBinding ExportToExcel, Global=True}" Command="{Binding ExportToExcelCmd}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor,  AncestorType={x:Type telerik:RadGridView}}}">
                    <MenuItem.Icon>
                        <Image Source="/Resources/Icons/Excel.png" />
                    </MenuItem.Icon>
                </MenuItem>
            </ContextMenu>
        </Setter.Value>
    </Setter>
</Style>

As you can see, I'm trying to pass the RadGridView as a parameter to the command.  However, in my code, this parameter is always null.  How come ?

 

Hans
Top achievements
Rank 1
Veteran
 answered on 04 Apr 2018
1 answer
154 views

I am trying to use Crosshair behavior on inverse axis on the right (see attached png), horizontal axis is on top.

But the result is that both crosshair labels is not rendered properly.

is there any trick on this?

It is good when i use axis at default locations

Martin Ivanov
Telerik team
 answered on 04 Apr 2018
3 answers
1.0K+ views

By the document, we can bind the pager as below.

<Grid x:Name="LayoutRoot"
        Background="White">   
    <Grid.RowDefinitions>
        <RowDefinition />
        <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
    <telerik:RadGridView x:Name="radGridView"
                         ItemsSource="{Binding Employees}"
                         AutoGenerateColumns="False">
        <telerik:RadGridView.Columns>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" />
            <telerik:GridViewDataColumn DataMemberBinding="{Binding CompanyName}" />
            <telerik:GridViewDataColumn DataMemberBinding="{Binding Title}" />
        </telerik:RadGridView.Columns>
    </telerik:RadGridView>
    <telerik:RadDataPager x:Name="radDataPager"
                          Source="{Binding Items, ElementName=radGridView}"
                          PageSize="5" />

The question is that I can't assign the element name of the RadGridView. So how to bind the element?

Thanks.

Trump
Top achievements
Rank 1
 answered on 03 Apr 2018
0 answers
90 views

I'm trying to create a custom AggregateFunction that applies different calculations based on the Field that represents the leaf level in the Pivot Grid. It is for a pivot grid that displays revenue for books sold in a library that includes the sum of sold books - a commision difference (the scenario is made up).

View 1:

Selected fields: Library, Categoy, Book

Should display

                        Day 1  
Library              1050
   Fantasy          240 (600-10%)
      Book A        100  
      Book B        200  
      Book C        300  
   Drama            810 (900-10%)
      Book D        400  
      Book E        500

 

View 2:

Selected fields: Library, Categoy
Should display
                        Day 1  
Library              1050
   Fantasy          240 (600-10%)
   Drama            810 (900-10%)

 

In the scenarios above, the -10% needs to be aggregated only on Category level and above, not on Book level. I created a custom aggregate function but wasn't able to find a solution of checking the field that the row to which the aggregate applies belongs to, whether it is Book or Category.

 

Does anybody know how to do this?

Thanks!

 

Oana
Top achievements
Rank 1
 asked on 03 Apr 2018
13 answers
336 views
I use data binding to set the Min and Max properties for a RadialScale GaugeRange. In the prior version I had (Q1 2013), the data binding worked fine and the ranges displayed correctly, but in 2013.2.724.40 (Q2 2013) I find that the ranges do not show at all if their Min and Max values are data bound. They show fine if the values are hard coded.
I have a TextBlock in the RadialScale.CustomItems collection bound to the same member of the same data object, and that is showing correctly so I know the DataContext is right and the value exists.

Has the handling of Min/Max binding in 2013.2.724.40 changed? Should I use a different property?
Alain
Top achievements
Rank 1
 answered on 03 Apr 2018
0 answers
149 views

Hi,

In my code I have an defined at the Window level which then floats a pane, now I want to make the floated pane to be docked again using a shortcut key while the focus is on the floating RadPane.

I added this

 <telerik:RadDocking.InputBindings>
            <KeyBinding Gesture="Ctrl+D"
                        Command="{Binding FloatPanesCommand}" />
        </telerik:RadDocking.InputBindings>

 

But this does not work and the command is never triggered. Could someone please help.

Sherry
Top achievements
Rank 1
 asked on 03 Apr 2018
1 answer
124 views

Hi, I have not been able to find documentation yet on how to handle events generated by the RadBreadcrumb control, can you point me at the docs?  I would really like to bind inidividual 'crumbs' to an ICommand using MVVM. (the same way I would bind a button's Command property to an ICommand)  If that's not possible, is there anything else I can do to bind to this control, or do I have to use the events?

Dilyan Traykov
Telerik team
 answered on 03 Apr 2018
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
Slider
Expander
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?