Telerik Forums
UI for WPF Forum
2 answers
150 views
Hello. I am working on improving controls to meet 508 accessible requirements. My current focus is on using keyboard navigation and a screen reader in the filter control. However, I cannot seem to find any resources for the control template specifically for ContentControl’s PART_Filter1ContentControl and PART_Filter2ContentControl. I need the control template in order to add in automation properties for the screen reader.

I also found that while you can navigate through the calendar control with a keyboard, nothing is read using a screen reader. Additionally, when the filtering control or the calendar control pop up there is no way to navigate into these menus without using your mouse.

Looking for guidance on these issues.
Thank you.
Vicky
Top achievements
Rank 1
 answered on 08 Mar 2017
1 answer
131 views

I want to change the style of selected cell of RadGridView in my WPF form. I found the following style from RadGridView documentation and I used it.

<Style TargetType="{x:Type telerik:GridViewEditorPresenter}"><Setter Property="Template" Value="{StaticResource GridViewEditorPresenterTemplate}"/><Setter Property="Padding" Value="5"/></Style>

However, I got the warning error "Resource GridViewEditorPresenterTemplate is not found."

Do I need to include some assemblies in my xaml file?

Also, in Excel, if I use mouse to select a range of cells, there is a solid black border for all the selected ranges, can we do the same for RadGridView selected cells?

Thanks.

 

Stefan
Telerik team
 answered on 08 Mar 2017
1 answer
238 views

Hi, I am trying to change Enter key bevavior to act like Tab key. I found your documentation and blog post but these are all for the case when grid is in edit mode. My grid looks like this:

01.<telerik:RadGridView Name="Grid"
02.                             Grid.Row="1"
03.                             AutoGenerateColumns="False"
04.                             ItemsSource="{Binding Orders}"
05.                             ShowGroupPanel="False"
06.                             RowIndicatorVisibility="Collapsed"
07.                             BorderBrush="Black"
08.                             Margin="5">
09.            <telerik:RadGridView.Columns>
10.                <telerik:GridViewDataColumn Header="Price" Width="150">
11.                    <telerik:GridViewDataColumn.CellTemplate>
12.                        <DataTemplate>
13.                            <telerik:RadNumericUpDown Value="{Binding Price, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" SmallChange="0.1" LargeChange="1"/>
14.                        </DataTemplate>
15.                    </telerik:GridViewDataColumn.CellTemplate>
16.                </telerik:GridViewDataColumn>
17. 
18.                <telerik:GridViewDataColumn Header="Volume" Width="*">
19.                    <telerik:GridViewDataColumn.CellTemplate>
20.                        <DataTemplate>
21.                            <telerik:RadNumericUpDown Value="{Binding Volume, Mode=TwoWay, StringFormat=N2, UpdateSourceTrigger=LostFocus}" SmallChange="0.1" LargeChange="1"/>
22.                        </DataTemplate>
23.                    </telerik:GridViewDataColumn.CellTemplate>
24.                </telerik:GridViewDataColumn>
25.            </telerik:RadGridView.Columns>
26.        </telerik:RadGridView>

 

And my custom keyboard command provider looks like this:

01.public class CustomKeyboardCommandProvider : DefaultKeyboardCommandProvider
02.    {
03.        public CustomKeyboardCommandProvider(GridViewDataControl grid) : base(grid)
04.        {
05.        }
06. 
07.        public override IEnumerable<ICommand> ProvideCommandsForKey(Key key)
08.        {
09.            if (key == Key.Enter)
10.            {
11.                var tabCommands = base.ProvideCommandsForKey(Key.Tab).ToList();
12. 
13.                return tabCommands;
14.            }
15. 
16.            return base.ProvideCommandsForKey(key).ToList();
17.        }
18.    }

 

Is there a way how to do it for my case?

Thank you.

Karel

Dilyan Traykov
Telerik team
 answered on 08 Mar 2017
1 answer
164 views

I've just edited the First_Look example of the PdfViewer. If I generate a text export, by using:

            var provider = new PdfFormatProvider(str, FormatProviderSettings.ReadOnDemand);
            RadFixedDocument doc = provider.Import();
            textBlock.Text = new TextFormatProvider().Export(doc, new TextFormatProviderSettings());

I recognize, that the results are not as expected. Some special characters are not correctly translated. In figure 1 the special character â€˜ (\u2018) is displayed in the pdfview correctly whereas in the generated text the character was translated in \u0091 which is for private use. Also for non special characters there is also an unexpected behavior visible. In figure 2 it is visible that the 'fl' is missing in the word 'beeinflussen'. The string is translated in "beein\u001fussen". This means that the two characters 'fl' is replaced by the single character \u001f. This \u001f means 'Unit Seperator' which makes in this context not much sense for me.

Thank you

Deyan
Telerik team
 answered on 08 Mar 2017
1 answer
125 views

I am trying to add a list of lists of lists to a radtreeView but the child elements never appear, I have used a HeirichalDataTemplate as a test for the first 2 elements, is there something I am missing , given the following xalm 

<pre>

<telerik:RadTabItem Header="Lookup Sets">
                            <telerik:RadTreeView IsLoadOnDemandEnabled="True" ItemsSource="{Binding AttributeLookupSetConversions}">
                                <telerik:RadTreeView.Resources>
                                    <HierarchicalDataTemplate DataType="{x:Type cm:AttributeLookupSetConversion}">
                                        <CheckBox Content="{Binding Path=Name}"  IsChecked="{Binding Path=IsSelected, Mode=TwoWay}" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" Command="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type telerikDocking:RadSplitContainer}}, Path=DataContext.UpdateSelectionCommand}"/>
                                    </HierarchicalDataTemplate>
                                    <HierarchicalDataTemplate DataType="{x:Type cm:AttributeConversion}">
                                        <CheckBox Content="{Binding Path=Name}"  IsChecked="{Binding Path=IsSelected, Mode=TwoWay}" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" Command="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type telerikDocking:RadSplitContainer}}, Path=DataContext.UpdateSelectionCommand}"/>
                                    </HierarchicalDataTemplate>
                                </telerik:RadTreeView.Resources>
                            </telerik:RadTreeView>
                        </telerik:RadTabItem>

</pre>

 

I cant seem to get the UI to show its child elements

Dinko | Tech Support Engineer
Telerik team
 answered on 08 Mar 2017
1 answer
130 views

Hi, 

Is it possible to change the way that MDX is generated by the PivotGrid when filters are applied? 

Currently when I apply a Month filter in my time dimension for e.g., this is done by adding the filter value as a sub-cube query in the from clause, rather than placing it in the WHERE clause. 

So instead of having 

 

SELECT x ON 0, y ON 1

FROM <cube>

WHERE ([time].[month].&[z])

 

The pivot grid generates

 

SELECT x ON 0, y ON 1
FROM (SELECT [time].[month].&[z]  FROM <cube>)

 

This is generally fine, but when we have calculated measures in the cube which rely on knowing where you are in the time hierarchy, (i.e. [time].[month].currentmember) then this distorts the calculation because the scope is handled in the sub-cube and the main query believes that [time].[month].currentmember is 'All' rather than Month Z as the query above suggests. 

 

Is there a way to tell the grid to use the former method? Failing that, how can we access the time filter from the calculations? 

 

Polya
Telerik team
 answered on 08 Mar 2017
2 answers
171 views
I want to change to format of the map mouse location indicator to decimal degrees.

In the help it shows how to do this if the indicator is OUTSIDE the map control (http://www.telerik.com/help/wpf/radmap-features-mouse-location.html).

I want to do this with the built-in indicator. How can I do this please?
Luis
Top achievements
Rank 1
 answered on 08 Mar 2017
8 answers
576 views
I try to use RadTreeView in my WPF MVVM Prism 6 application project. But when I put RadTreeView in UserControl area then it is underlined with blue wavy line and if I move the mouse cursor to this line the next error message is displayed: "Object reference not set to an instance of an object". I've added references to the following assemblies: Telerik.Windows.Controls, Telerik.Windows.Controls.Navigation, Telerik.Windows.Controls.Data. But I have the abovementioned error. What the reason of it. Please help me eliminate this error situation.
Martin Ivanov
Telerik team
 answered on 08 Mar 2017
1 answer
91 views
Is it possible to Bind a command while drag and drop? Instead of using code behind?
Martin Ivanov
Telerik team
 answered on 08 Mar 2017
13 answers
444 views

I have a GridViewDataColumn in which I need the cells to use/display a mask both in view/edit mode. In order to do this I have set the CellTemplate and the CellEditTemplate as you can see below. I cannot use the GridViewMaskedInputColumn because it does not allow me to specify different masks per cell. One mask per column will not work in my scenario (see attached picture). 

There is a slight difference between view and edit mode that I would like help with. In edit mode, the RadMaskedTextBox fills the cell, but in view mode, the RadMaskedTextBox does not quite fill the cell. I would like masked textbox to fill the cell regardless of whether it is in edit or view mode.

 

I have considered putting a Margin="3,0,0,0" on the CellEditTemplate, this means the textbox will not fill the cell in either view/edit mode - not idea....

 

<telerik:GridViewDataColumn
    Header="Value"  
    ValidatesOnDataErrors="InEditMode"
    DataMemberBinding="{Binding Value}"
    Width="*">
    <telerik:GridViewDataColumn.CellTemplate>
        <DataTemplate>
            <telerik:RadMaskedTextInput
                Mask="{Binding ValueMask}"
                Value="{Binding Value}"
                TextMode="MaskedText"
                IsEnabled="False"
                SelectionOnFocus="CaretToBeginning"
                IsLastPositionEditable="False"
                HorizontalAlignment="Stretch"
                VerticalAlignment="Stretch"/>
        </DataTemplate>
    </telerik:GridViewDataColumn.CellTemplate>
    <telerik:GridViewDataColumn.CellEditTemplate>
        <DataTemplate>
            <telerik:RadMaskedTextInput
                Mask="{Binding ValueMask}"
                Value="{Binding Value}"
                TextMode="MaskedText"
                SelectionOnFocus="CaretToBeginning"
                IsLastPositionEditable="False"
                HorizontalAlignment="Stretch"
                VerticalAlignment="Stretch"/>
        </DataTemplate>
    </telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>

 

SB
Top achievements
Rank 1
 answered on 07 Mar 2017
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
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?