Telerik Forums
UI for WPF Forum
1 answer
123 views

Currently a DayViewDefinition in RadScheduleView  is

<telerik:DayViewDefinition MinorTickLength="30min" MajorTickLength="2h" />

I am trying to achieve a different tick interval value before midday and another  tick interval value after midday

For example
For 6 AM to 12 PM, we are looking to set 10 minute slot and after 12 PM we are looking to set 9 minute slot

Can this achieved somehow ?

Dilyan Traykov
Telerik team
 answered on 21 Jan 2021
7 answers
174 views
I've managed to customize all the colors for the Windows8Touch theme to my liking to make it a generally dark theme.  I get the Windows8TouchPalette at startup and set the colors that the Telerik docs recommend.


However I still do not like the Gradient Background brush.  It appears too light for what I want.  I would like to be able to either directly set it to make it darker or simply make the theme use solid brushes in place of the gradient ones .

Is there a way to directly alter the gradient brushes -- individually - in this theme?   Or is it simply constructed from the colors I specify and I have no other control over it?
Martin Ivanov
Telerik team
 answered on 21 Jan 2021
10 answers
231 views
Is it possible, to display both percent and the actual values behind them?
Right now you can either show percentage of total, or the actual value, but not both.

Or is there a way to get the "raw value" and "total value" of a CellAggregateValue programatically?
Martin Ivanov
Telerik team
 answered on 19 Jan 2021
8 answers
629 views

Hi Team,
We are using RadNavigation view for our menu control. We are using it in submenu configuration way. We are able to create and navigate to different views. We are using .Net Core with No Xaml configuration. We wanted to have theme option for our entire application. For this we have referred and followed CRM application and created the Theme part same as CRM application. We are able to apply theme and change theme as per choice of user for entire application but we are facing some issues with RadNavigationView control. Below are the challenges that we are facing and something that we want to achieve in our application.

1. We are able to apply the theme but on submenus theme does not get applied also it does not get applied for hover and selected state of the menu. We have tried few approaches and still no success?

2. We want user to select theme once and once they have selected the theme we will save their choice and will open the app in the previously saved theme. We are not able to implement it currently.

We are using NoXAML approach hence we have added necessary files .XAML file in the resource dictionary in App.XAML. 

Kindly help us design our application with above 2 points as we are struck in this from few days.

Things we have tried to apply theme colors on hover, for selected menu and for dropdown icon in case of submenu.

<Style x:Key="ItemPreviewStyle" TargetType="telerik:RadNavigationViewItem" BasedOn="{StaticResource RadNavigationViewItemStyle }">
            <Setter Property="IconTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <telerik:RadGlyph Glyph="{Binding Converter={StaticResource StringToGlyphConverter}}"
                                          Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType=telerik:RadNavigationViewItem}}"
                                          HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="ItemBaseStyle" TargetType="telerik:RadNavigationViewItem" BasedOn="{StaticResource ItemPreviewStyle}">
            <Setter Property="Content" Value="{Binding Title}"/>
            <Setter Property="ItemsSource" Value="{Binding SubItems}"/>
            <Setter Property="Foreground" Value="{theme:VoyagerThemeResource Resource=Foreground}" />
            <Setter Property="Background" Value="Transparent" />
            <Setter Property="FocusVisualStyle" Value="{theme:VoyagerThemeResource Resource=AccentBrush}" />
            <Setter Property="Icon" Value="{Binding Icon}" />
            <Setter Property="IconVisibility" Value="{Binding Icon, Converter={StaticResource NullToVisibilityConverter}}"/>
        </Style>

Because of this changes submenus text get the background color but still no affect on hover, selected state and proper theme color of menu. let us know if we are doing anything wrong. Also help us achieving the second case.

Martin Ivanov
Telerik team
 answered on 19 Jan 2021
1 answer
155 views

I have added Radial menu as RadialContextMenu in RadGridView.

I want to get the selectedRow DataContext on item click. 

I tried to set RadRadialMenu.DataContext as Gridview Selected Item, but as ItemClick datacontext is null. Default datacontext of Radial menu is UserControl's DataContext. which need to be replaced with GridView Selected Row.

 

I have one option to Bind DataContex of individual RadRadialMenuItem with GridView selectedItem, but It seems not proper way.

Dinko | Tech Support Engineer
Telerik team
 answered on 19 Jan 2021
4 answers
650 views
In WPF, I used a list to bind to itemsource fot ploting a line for Lineseries. But I don't know how to bind it to plot multi lines. Use list<list<>> ?
I have to plot 500 lines on one line chart. Please help me ~
shaswat
Top achievements
Rank 1
 answered on 19 Jan 2021
2 answers
176 views

I have a GridView with ChildTableDefinitions which adds a column with pluses to expand and see child gridviews. How do I put a header title on that column?

Ilya
Top achievements
Rank 1
 answered on 18 Jan 2021
0 answers
143 views

Hi All,

I Used telerik:ListBox Control which has selection changed Event and for this event I was writing Unit Test code(X-Unit).

VM Code:

var selectionChangedEventArg = parameter as System.Windows.Controls.SelectionChangedEventArgs; 
                if (selectionChangedEventArg != null && selectionChangedEventArg.OriginalSource != null)
                {}

TEST CODE:

////Arrange

 System.Windows.Controls.SelectionChangedEventArgs obj =
            new System.Windows.Controls.SelectionChangedEventArgs(routedEvent, removedItems, addedItems);

////Act

detailViewModel.SelectionChangedCommand.Execute(obj);      

 

selectionChangedEventArg.OriginalSource was null when the method is called from Test method. Any idea to make the original Source has value.

Kishorekumar
Top achievements
Rank 1
Veteran
 asked on 18 Jan 2021
1 answer
581 views

Hello.

I want to load a desktop files in grid view using MVVM. Is there a way? (I'm not use MVVM Light kit.)

It is easy to add and remove files by using buttons, but Drag and Drop is difficult to implement because there are not many examples.

I want to add it using the file model using drag and drop and add it to the column by customizing it.

See the image for details.

 

<This is a simple .xaml>

<telerik:RadGridView ItemsSource  ="{Binding MultiFiles}"
                                     rad:GridViewSelectionUtilities.SelectedItems = "{Binding MultiFileItems}"
                                     GroupRenderMode ="Flat"
                                     HorizontalAlignment="Stretch"
                                     AutoGenerateColumns="False"
                                     ShowColumnHeaders="True"
                                     ShowGroupFooters="False"
                                     ShowGroupPanel="False"
                                     RowIndicatorVisibility="Collapsed"
                                     EnableColumnVirtualization="True"
                                     EnableRowVirtualization="True"
                                     VirtualizingPanel.IsVirtualizing="True"
                                     ScrollViewer.HorizontalScrollBarVisibility ="Auto"
                                     ScrollViewer.VerticalScrollBarVisibility ="Auto"
                                     FrozenColumnsSplitterVisibility="Collapsed"
                                     IsFilteringAllowed="False"
                                     AutoExpandGroups="False"
                                     ShowSearchPanel="False"
                                     SearchPanelCloseButtonVisibility="Collapsed"
                                     SelectionMode="Extended"
                                     SelectionUnit="FullRow"
                                     >
                    <telerik:RadGridView.Resources>
                        <Style x:Key="CheckboxCellStyle" TargetType="telerik:GridViewCell" BasedOn="{StaticResource GridViewCellStyle}">
                            <Setter Property="HorizontalContentAlignment" Value="Center"/>
                        </Style>
                    </telerik:RadGridView.Resources>
                     
                    <telerik:RadGridView.Columns>
                        <telerik:GridViewSelectColumn />
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"
                                                    ToolTip="{Binding Name}"
                                                    IsReadOnly="True"
                                                    Width="300"
                                                    Header="File Name"/>
                        <telerik:GridViewComboBoxColumn ItemsSourceBinding ="{Binding WorkTypes}"
                                                        DataMemberBinding="{Binding WorkType}"
                                                        DisplayMemberPath="Name"
                                                        SelectedValueMemberPath="Name"
                                                        IsReadOnly="False"
                                                        Width="80"
                                                        Header="WorkType"
                                                        >
 
                        </telerik:GridViewComboBoxColumn>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Status}"
                                                    ToolTip="{Binding Status}"
                                                    IsReadOnly="True"
                                                    Width="60"
                                                    Header="Status"/>
                         
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding EtcText}"
                                                    ToolTip="{Binding EtcText}"
                                                    IsReadOnly="True"
                                                    Width="auto"
                                                    Header="ETC"/>
                    </telerik:RadGridView.Columns>
                </telerik:RadGridView>

 

<Model>

public class MultiFileModel
{
    public string Name      { get; set; } = string.Empty;
    public string WorkTypes { get; set; } = string.Empty;
    public string Status    { get; set; } = $"X";
    public string EtcText   { get; set; } = string.Empty;
}

 

<ViewModel>

?

 

Thanks.

Martin Ivanov
Telerik team
 answered on 18 Jan 2021
3 answers
345 views

Is there a way to completely hide the Navigation area on a RadMap? I can hide the navigation buttons themselves but the background circle remains. I am using the fluent theme.

I have attached two images to help you see what I am describing. The first picture shows the window with the navigation visible. In the second image I have set NavigationVisibility to collapsed. This removed the arrow buttons but left the background circle. Is there a way to remove that background circle along with the navigation buttons?

Don
Top achievements
Rank 1
Veteran
 answered on 14 Jan 2021
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?