Telerik Forums
UI for WPF Forum
1 answer
220 views

Hi,

I've got a simple RadScheduleView which is displayed as a Week view only. I want to add a button to the Day Header which provides some custom "Lock" logic for that day. However, no matter what I do, the button in the header is always disabled.

Is there any way that I can achieve this?

My code:

<telerik:RadScheduleView AppointmentsSource="{Binding Items}">
    <telerik:RadScheduleView.GroupHeaderContentTemplate>
        <DataTemplate>
            <Grid>
                <TextBlock Text="{Binding Name, StringFormat=dd dddd}" HorizontalAlignment="Center" VerticalAlignment="Center"/
                <Button Content="🔓" HorizontalAlignment="Right" IsEnabled="True" />
            </Grid>
        </DataTemplate>
    </telerik:RadScheduleView.GroupHeaderContentTemplate>
    <telerik:RadScheduleView.ViewDefinitions>
        <telerik:WeekViewDefinition  />
    </telerik:RadScheduleView.ViewDefinitions>
</telerik:RadScheduleView>
Thanks in advance
Stenly
Telerik team
 answered on 16 Dec 2021
1 answer
124 views

Is there a SelectionBoxTemplate for the RadGridView GridViewComboBoxColumn? I saw a template that was posted in the forum area from a while ago, but when I tried it in one of the latest Telerik libraries, it doesn't work?

 


 <telerik:GridViewComboBoxColumn Header="Sic Code"
                                                    IsComboBoxEditable="true"
                                                    DataMemberBinding = "{Binding SicCodeID}"
                                                    ItemsSource="{Binding Current.SicCodes, Source={StaticResource Lookups}}"
                                                    DisplayMemberPath="SicCodeValue"
                                                    SelectedValueMemberPath="SicCodeID"  
                                                    EditTriggers="CellClick"
                                                    LostFocus="GridViewComboBoxColumn_LostFocus"
                                                    TextSearch.TextPath="SicCodeValue"
                                                    Width="226">
                            <telerik:GridViewComboBoxColumn.EditorStyle>
                            <Style TargetType="telerik:RadComboBox">
                                <Setter Property="ClearSelectionButtonVisibility" Value="Visible" />
                                <Setter Property="ClearSelectionButtonContent" Value="Clear" />
                                <Setter Property="Foreground" Value ="Black" />
                                <Setter Property="DropDownWidth" Value ="480" />
                                <Setter Property="OpenDropDownOnFocus" Value="True"/>
                                <Setter Property="SelectionBoxTemplate">
                                    <Setter.Value>
                                        <DataTemplate >
                                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" >
                                                <TextBlock Text="{Binding SicCodeValue}" Width="70" />
                                                <TextBlock Text="{Binding SicCodeDescription}" Width="370"/>
                                            </StackPanel>
                                        </DataTemplate>
                                    </Setter.Value>
                                </Setter>
                                <Setter Property="ItemTemplate">
                                    <Setter.Value>
                                        <DataTemplate >
                                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" >
                                                <TextBlock Text="{Binding SicCodeValue}" Width="70" />
                                            </StackPanel>
                                        </DataTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </telerik:GridViewComboBoxColumn.EditorStyle>
                    </telerik:GridViewComboBoxColumn>

 

Any idea's?

Paul

Stenly
Telerik team
 answered on 16 Dec 2021
1 answer
163 views

Hi Telerik Team,

We have a requirement where we need to display more columns in a wrapped manner.

The row cells should also be wrapped corresponding to the columns.

I hope the winforms is having this kind of feasibility.

I would like to have it in WPF as well.

Please let me know the solution.

Attachment for your reference.

Martin Ivanov
Telerik team
 answered on 16 Dec 2021
1 answer
123 views

Hi guys,

I have a small testproject where I want do display a few projects with appointments.
I wanted to use the Group functionality together with resourcetypes.

Now everything works but not in the inital loading. Somehow the Group part on the left side is not displayed.
After pressing the button "aktualisieren" it displays as intended.

I tried to call the aktualisieren after loading of the window, but same, it stays empty at first.

I attached the project.
Maybe someone has an idea what causes this.

 

Greetings.

 

Stenly
Telerik team
 answered on 16 Dec 2021
1 answer
183 views

I am changing TrackBallTemplate and I want to get the following result:

I changed the palette to a custom palette using PaletteEntryCollection SeriesFamily = "Line" and ChartPalette.GlobalEntries

I am using ChartSeriesProvider and style TargetType = "telerik: LineSeries"

But from the DataContext of the TrackBallTemplate, I cannot find the brushes...

StrokeShapeStyle returns not my color: #FF5AA4D4
LegendItem is not available

 

How do I get the line brushes I need?
Thank you

 

------------------
WPF v.2021.1.325

Martin Ivanov
Telerik team
 answered on 16 Dec 2021
1 answer
109 views

Hello.

 

I develop other program modules.

There was a problem using the UI component telerik here.

When executing the main program with each different project, module A and module B are executed.
At this point, the telerik assembly starts loading.

In A, the telerik version is 2021.2.615.45, and B is 2021.3.1025.45. (different versions)
And when I run A and B in the main program, the screen of A is not shown and only B is shown.


That is, my guess is that only the last loaded telerik assembly will be recognized.
Is there any way to solve this?

summary) When loading two versions of telerik in one program, one screen is blank.

Thanks.

Martin Ivanov
Telerik team
 answered on 16 Dec 2021
1 answer
161 views

Hi, trying to speed up the points-plot (around 1000-5000 points)

I can so far conclude that we can only get a tooltip for XamlRenderOptions DefaultVisualsRenderMode="Separate" otw, no tooltip is visible.

I have tried a few options (see below)  - but maybe the behavior changes once I change the render mode ?

 

- XamlRenderOptions DefaultVisualsRenderMode="Batch"  -> no tooltip
- (geometrytype not supported by scatterpointseries)
- BitmapRenderOptions -> no tooltip
- Direct2DRenderOptions -> not tooltip

Martin Ivanov
Telerik team
 answered on 15 Dec 2021
1 answer
392 views

Hello!   I'm using the Telerik ExplorerControl - both as part of the RadOpenFileDialog, and in a custom dialog of my own - and in both cases, I'm seeing a possible bug when browsing to network resources.

I can type a UNC path for a network location for which I have full access in the location bar:



When I hit enter, the ExplorerControl shows the contents at that location, but only for a second or less:



Then, the dialog changes to the root of the location I entered:



If I go to the history drop-down, it looks like this - each time I try to go to the storage subdirectory, it goes back to the root:



Oddly, if I select the location in the history, it does show the contents at that location - so there's not a problem with my permissions to explore that location:



Is there a way to prevent the ExplorerControl from doing this?  The selection always seem to return to the root of the UNC path, within less than a second.  (See the attached .gif). 

I'm using Version 2021.2.615.50 at the moment.  Any help would be most appreciated.

Thanks,

Ed

Petar Mladenov
Telerik team
 answered on 15 Dec 2021
1 answer
231 views

Hi, I have the following code and I want to have an animation to enable and disable any "radpane "in the related "radpanegroup".

For example, when I put a "radpane" in pin mode, its width increases by 3 seconds, or another example is that the border color changes.
My solution is to use: 

<telerik:RadDocking>

        ...

...

...

<telerik:RadDocking.FlyoutBehavior>
                <local:AnimatedFlyoutBehavior/>
            </telerik:RadDocking.FlyoutBehavior>

</telerik:RadDocking>

 

I used the IFlyoutBehavior interface and as a result the following functions were implemented:

  void IFlyoutBehavior.OnMouseEnter (IFlyoutHost host, RadPane targetPane)
        {

        }

        void IFlyoutBehavior.OnPaneActivated (IFlyoutHost host, RadPane targetPane)
{
        }

        void IFlyoutBehavior.OnMouseLeave (IFlyoutHost host)
        {

        }

        void IFlyoutBehavior.OnOpeningTimerTimeout (IFlyoutHost host)
        {


        }

        void IFlyoutBehavior.OnClosingTimerTimeout (IFlyoutHost host)
        {

        }

        void IFlyoutBehavior.OnPaneDeactivated (IFlyoutHost host, RadPane targetPane)
        {
            var selectedPane = host.SelectedPane;

            if (selectedPane! = null &&! selectedPane.IsActive && host.CurrentState == FlyoutState.Opened)
            {
                host.StartCloseAnimation ();
            }
        }

        void IFlyoutBehavior.OnPaneMouseLeftButtonDown (IFlyoutHost host, RadPane targetPane)
        {
            if (host.CurrentState! = FlyoutState.Opened)
            {
                host.StartOpenAnimation ();
            }
            else
            {
                host.StartCloseAnimation ();

            }
        }

    }

I could not use enough of this interface. Is there a better way to customize animation in radpane or to develop it that way?

 

 

                     
Dilyan Traykov
Telerik team
 answered on 15 Dec 2021
1 answer
145 views

Hi,

I have a RadContextMenu and want to use access keys with it, I've added underscores to headers in my RadMenuItems and functionally it's all working however the characters in the menu aren't underlined, I tried looking into this online but could only seem to find anything on getting them to appear in a RadMenu when using alt which doesn't appear to be an option for the context menu control. It seems like it should be default functionality so I don't know if maybe I'm just missing something obvious.

Thanks for any help

Stenly
Telerik team
 answered on 14 Dec 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
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?