Telerik Forums
UI for WPF Forum
1 answer
416 views

Hello,

I created the ColumnsVisibility attached property to the RadGridView.

When the user clicks the columns' header, I open a context menu that shows all the columns.

Then the user can show/hide the columns by updating the IsVisible property. I am interested to add a button to the left of the first columns header.

The new button will open the Context Menu instead of clicking the Column Header.

I need this functionality because if the users hides all the colums, then there is no header and he will not able to open the menu at all, which means the columns visibilty can't be restored.

I can't attach the property to the RadGridView itself because I have another menu there.

A better solution may be to add this attached property to another style of a control part in the RadGridView template.

I am wondering if there is another control in your template (under the GridViewColumnHeader).

 

At the end I need to open a context menu in the top of the RadGridView but in parallel to open a different ContextMenu when the user clicks and empty space in the rest of the RadGridView (middle/bottom).

Martin Ivanov
Telerik team
 answered on 25 Nov 2022
1 answer
174 views

We are looking to migrate to latest telerik ui for wpf. Could you please suggest on compatibility of framework with .net version.

currently we use .Net framework 4.6.2.

Stenly
Telerik team
 answered on 25 Nov 2022
1 answer
180 views

I would like to create a custom "control" that is a subclass of "RadTabItem" and use it as the default tab class.

I know I can tie into the AddingNewTab event and effect the Item property of the event args, but that would be a UI Element in the ViewModel (VM) of a MVVM and I would like to keep the UI element strictly in the UI code (not in the VM).

Is there some way to specify (perhaps via .Resources) the class for a new tab created by clicking the "+" in the RadTabbedWindow.

e.g.  something like the a "DefaultTab" element.

          <DefaultTab Type="{x:Type MyTabClass}"/>

of the below


<telerik:RadTabbedWindow x:Class="PickCart.Client.Zza.Desktop.Tabs.TabbedView" 
                         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                         xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                         xmlns:client="clr-namespace:PickCart.Client"
                         xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
                         Width="1024"
                         Height="800">
    <b:Interaction.Triggers>
        <b:EventTrigger EventName="AddingNewTab">
            <b:CallMethodAction TargetObject="{Binding}" MethodName="OnAddingNewTab"/>
        </b:EventTrigger>
    </b:Interaction.Triggers>
    <telerik:RadTabbedWindow.DataContext>
        <client:TabbedViewModel/>
    </telerik:RadTabbedWindow.DataContext>
    <telerik:RadTabbedWindow.Resources>
          <DefaultTab Type="{x:Type MyTabClass}"/>
    </telerik:RadTabbedWindow.Resources>
    <telerik:RadTabItem Header="Main" CloseButtonVisibility="Hidden">
        <TextBlock Text="This is the main tab" />
    </telerik:RadTabItem>
</telerik:RadTabbedWindow>

Dilyan Traykov
Telerik team
 answered on 24 Nov 2022
1 answer
179 views

In our app.xaml.cs we have been using this.MainWindow = new MyMainWindow().

We are trying to switch to a RadTabbedWindow, but RadTabbedWindow is not a Window, it is a UserControl.  What would be a way to use this and keep the this.MainWIndow?

WPF TabbedWindow - Getting Started - Telerik UI for WPF

Dilyan Traykov
Telerik team
 answered on 24 Nov 2022
0 answers
188 views

Hello,

In our application, we need to add header to each pages when exporting the grid(RadGridView) into the workbook using ExportToWorkBook
I tried to use the option mentioned in "https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/features/headers-and-footers#headerfootersection" to fix this, but it is not work as expected.

Please see the attached image of our requirement and provide information on how to achieve this ?

Thanks in advance.



Monica
Top achievements
Rank 1
 asked on 24 Nov 2022
3 answers
246 views

Hello,

I am insterested on change the RadDateTimePicker.

1. When set the control to change the minutes/seconds, the default control template shows all the possible options in buttons, a little bit annoying for the user.

The request: like Android, the user wants three numbers (hour, minute, seconds) that he can move up/down. Instead of scrolling we can use up/down arrows.

2. Add a button in the control to change 12/24 format and visibilty property for this button.

Questions:

1. Which approach do you suggest?

Override all the TimeControl template? or update tue default style ?

2. Which properties should I bind in case that I override the TimePicker to create a new template with three up down controls where each control will handle hours/minutes/seconds ?

3. Do you have any control that can set the number value with up down like Android (see attached picture)

4. For point 2, how can I add a control that will be set the date time format off the original RadTimePicker? 

I am not sure that creating a new custom control which contains the new control and telerik control will be the best approach. I want to add the control to the original one in the style.

5. Which property should be set to show 24 format. In the example you are showing a property that doesn't update the time correctly.

6. Do you have advanced examples with many styles and changes on Control Template ?

All the examples on the site are quiet simple, maybe did you get from users new examples.

 

Thanks,

This forum is so helpful.

 

Masha
Telerik team
 answered on 24 Nov 2022
0 answers
175 views

Hello,

I have a RadGridView with a model that may have some errors. In case of error, the row border is red and the row background is transparent. In this case, when having many rows with errors, the user can't know which row is selected because the blue background which indicates that the row is selected, dissapears on error.

How can I fix the Error Template to show also the error red border and the IsSelected blue background?

alex
Top achievements
Rank 2
Bronze
Iron
Iron
 asked on 24 Nov 2022
1 answer
216 views

Hello Telerik Team,

I want to access the Click event or MouseLeftButtonDown event for each Filter icon of the RadGridView Columns.

Please give us a sample application to do that.

Stenly
Telerik team
 answered on 23 Nov 2022
1 answer
120 views

Hello,

I have a RadGridView with 5,000 rows and 20 columns with virtualization enabled. I have the grid on the left side of the main window (fixed position).

I added a button.

When the user clicks the button, it will open a new window and the grid should move to the new window.

Somemehow the performance is too slow. 

As mentioned I an using virtualization, regular window, no styles and it tooks like 2-3 seconds to open the window.  The cells'  values may change but not too much. I tried to call the Show() method first and give to the window fixed width and height, also for the RadGridView but when I do the following:

window.Content = radGridView

It takes a while to skip that line. 

Do you have any advice? and/or a sample application with a similar behavior that doesn't have this performance issue? I can use it to compare with my code.

 

alex
Top achievements
Rank 2
Bronze
Iron
Iron
 updated answer on 23 Nov 2022
1 answer
117 views

HI:

I was using ICollectionView to syncronize dataform with dataGrid. Im testing RadEntityFrameworkCoreDataSource and works perfectly without the need to implement ICollectionView . (I assume it does internally). Could you give me and advise about wish one is better?

Stenly
Telerik team
 answered on 22 Nov 2022
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
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?