Telerik Forums
UI for WPF Forum
1 answer
143 views
Aside from just turning it off, is it possible to make it position itself intelligently? It likes to position itself at the top of the image regardless of whether that is actually within the bounds of the RichTextBox. Additionally, it stays on top of everything, which is disconcerting when you switch to other applications.
Svilen
Telerik team
 answered on 13 Jun 2022
1 answer
129 views

Hi,

I made a table using RadGridView and in one of my columns I wanna have another XAML element insted of having text.
I have columns like this one : 

<telerik:GridViewDataColumn UniqueName="NameColumn"
                                                x:Name="NameColumn"
                                                Width="*" 
                                                TextAlignment="Left"
                                                Header="{Resx Common_Label}"
                                                MinWidth="200"
                                                DataMemberBinding="{Binding TankName}"
                                                IsFilterable="False">
                    <telerik:GridViewColumn.CellStyle>
                        <Style TargetType="telerik:GridViewCell">
                            <Setter Property="Template">
                                <Setter.Value>
                                    <ControlTemplate>
                                        <Border BorderBrush="LightBlue" BorderThickness="0 0 1 0">
                                            <TextBlock HorizontalAlignment="Stretch" VerticalAlignment="Center" TextAlignment="Left" Margin="20, 0, 0, 0" Text="{Binding TankName}" FontFamily="Segoe UI" FontSize="16" />
                                        </Border>
                                    </ControlTemplate>
                                </Setter.Value>
                            </Setter>
                        </Style>
                    </telerik:GridViewColumn.CellStyle>
</telerik:GridViewDataColumn>
And I wanna do something like that :

<telerik:GridViewDataColumn UniqueName="ErrorColumn"
                                            x:Name="ErrorColumn"
                                            Width="*"
                                            MinWidth="200"
                                            IsFilterable="False">
                    <common:ErrorDiode x:Name="DiodeError" ></common:ErrorDiode>
</telerik:GridViewDataColumn>

And Visual Studio shows me an error saying that's impossible to have direct content in GridViewDataColumn.

What should I do?
Yowims
Top achievements
Rank 1
Iron
 answered on 13 Jun 2022
1 answer
158 views
When I Input some word it works,However when press BackSpace the highlights disappeared
Stenly
Telerik team
 answered on 13 Jun 2022
1 answer
120 views

Hello,

We are experiencing an issue with ArcGIS maps not displaying in the RadMap in our software, instead, all that is seen is a grey screen. 

We have made no changes to the code and have not issued a new release for some time so are struggling to understand why this failure is occurring. 

Also, strangely, in the debug environment the issue does not exist, only in the compiled and released version.

Can any guidance be given to help us understand and fix this problem?  Has something changed in the interface between the Telerik control and ESRI that we need to account for?

Thanks,

Rich

Rich
Top achievements
Rank 1
Iron
 answered on 10 Jun 2022
0 answers
136 views

I have a radpane include a context menu. when right click over context menu, Radpane is closing and it'is problem for this component.
I used contextmenuopening event but it works before closing and it is not good idea

code is below:




<telerik:RadPaneGroup  Margin="0,0,0,0" >
                    <telerik:RadPane  Name="PaneProcess" CanUserClose="False" >
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="24" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            <telerik:RadWatermarkTextBox x:Name="FilterTree" Grid.Column="0" Grid.Row="0" BorderThickness="1"
					 Margin="0,0,0,0"
					 VerticalAlignment="Top" 
					 MinHeight="24" />
                            <c:TreeViewProcess x:Name="treeViewProcess" IsDragDropEnabled="True" Grid.Row="1" />
                        </Grid>
                    </telerik:RadPane>
                </telerik:RadPaneGroup>

Cemil
Top achievements
Rank 1
Iron
 asked on 09 Jun 2022
1 answer
161 views

Hi, I wanted to know if it's possible to change the color of tasks in the colum area. In my case, I need to put colum background on blue if the task has a children. I put an example below of how I want to be the result. 

 

Dilyan Traykov
Telerik team
 answered on 09 Jun 2022
0 answers
135 views

I have  a ScheduleView .xaml like this:

<Window>

...

    <Grid>
        <telerik:RadScheduleView  AppointmentsSource="{Binding Appointments}"
            <telerik:RadScheduleView.ViewDefinitions>
                <telerik:DayViewDefinition/>
                <telerik:WeekViewDefinition/>
                <telerik:MonthViewDefinition/>
            </telerik:RadScheduleView.ViewDefinitions>
        </telerik:RadScheduleView>
    </Grid>
</Window>

And every time I open the window, my ViewModel is loading the Appointments like this:

Appointments = new ObservableCollection<Appointment>();

    private async Task CreateAppointments()
    {
         Appointments = await _service.GetAllAppointments();
    }

While the _service retrieves the data from the server only once and saves it to memory as an ObservableCollection, and next time brings it just from memory.

The first time I opened the Schedule window, everything is working well.

But the next time I opened the Schedule window, I can see that the Week-view and the Day-view are looking the same. if I am trying to press the Day or Week buttons the view is jumping forth and back and stayed the same. (see pictures attached).

 

I notice that if I'm just changing my code to be like this: (no other changes)

 private async Task CreateAppointments()
    {
         Appointments.AddRange(await _service.GetAllAppointments());
    }

It makes the issue disappear and all is working well.

But I don't want to use AddRange because I need my UI to be bounded directly to the ObservableCollection from the _service so I can be notified on any collection changed by the _service side.

[update:]

After this, I found that if I set Appointments to null on the window close, all back to work well (without the need to use AddRange),

I just added to the code behind like this:

private void ScheduleWindowView_OnClosed(object sender, WindowClosedEventArgs e)
        {
            (DataContext as IDisposable)?.Dispose();
        }

And I also added to my ViewModel  this implementation:

    protected override void Dispose(bool disposing)
    {
        Appointments = null;
    }

 

I can live with this solution, but can anyone explain what exactly was the issue and how it was solved?

 

 

 

 

Ohad
Top achievements
Rank 3
Bronze
Iron
Iron
 updated question on 08 Jun 2022
1 answer
187 views

I am trying to achieve customized slider control required customizations are :

1.Thumb with the teal color

2.Repeat buttons end with rounded corners

3.Inside tick bar ticks as circles or ellipse instead of lines(please refer attached image.png file blue arrow mark)

 I am able achieve first and second points above, but third point I am not getting.

<Window x:Class="SliderControl.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:SliderControl"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">

    <Window.Resources>
        <Style TargetType="Slider" x:Key="SliderStyle">
            <Setter Property="OverridesDefaultStyle" Value="True"/>
            <Setter Property="SnapsToDevicePixels" Value="true" />
            <Setter Property="IsTabStop" Value="false" />
            <Setter Property="Focusable" Value="false" />

            <Setter Property="Template">
                <Setter.Value>
<ControlTemplate TargetType="Slider">

<Track Name="PART_Track">
                            <Track.DecreaseRepeatButton>
                                <RepeatButton Command="Slider.DecreaseLarge">
                                    <RepeatButton.Style>
                                        <Style TargetType="RepeatButton">
                                            <Setter Property="Template">
                                                <Setter.Value>
                                                    <ControlTemplate TargetType="RepeatButton">
                                                        <Grid>
                                                            <Border BorderBrush="#CACACA" BorderThickness="1" CornerRadius="7,0,0,7" Background="#CACACA" Height="15" >

                                                            </Border>
                                                        </Grid>
                                                    </ControlTemplate>
                                                </Setter.Value>
                                            </Setter>
                                        </Style>
                                    </RepeatButton.Style>
                                </RepeatButton>
                            </Track.DecreaseRepeatButton>

                            <Track.IncreaseRepeatButton>
                                <RepeatButton Command="Slider.IncreaseLarge" >
                                    <RepeatButton.Style>
                                        <Style TargetType="RepeatButton">
                                            <Setter Property="Template">
                                                <Setter.Value>
                                                    <ControlTemplate TargetType="RepeatButton">
                                                        <Grid >
                                                            <Border BorderBrush="#CACACA" BorderThickness="1" CornerRadius="0,7,7,0" Background="#CACACA" Height="15" >

                                                            </Border>

</Grid>
                                                    </ControlTemplate>
                                                </Setter.Value>
                                            </Setter>
                                        </Style>
                                    </RepeatButton.Style>
                                </RepeatButton>
                            </Track.IncreaseRepeatButton>

                            <Track.Thumb>
                                <Thumb>
                                    <Thumb.Style>
                                        <Style TargetType="Thumb">
                                            <Setter Property="Template">
                                                <Setter.Value>
                                                    <ControlTemplate TargetType="Thumb">
                                                        <Canvas>
                                                            <Rectangle Canvas.Left="4" Canvas.Bottom="-3.7" Fill="Teal" Width="12" Height="15" Margin="-8,0,0,5" Stroke="Teal"/>
                                                            <Path  Fill="Teal" Data="M 0 10 L 20 10 L 10 0 Z" Canvas.Left="-4" Stretch="Fill" Width="12" Height="9.333"/>
                                                        </Canvas>
                                                    </ControlTemplate>
                                                </Setter.Value>
                                            </Setter>
                                        </Style>
                                    </Thumb.Style>
                                </Thumb>
                            </Track.Thumb>
                        </Track>

                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>

    <Grid>
        <StackPanel HorizontalAlignment="Center" Height="100" VerticalAlignment="Center" Width="400">
            <Slider Height="25" Width="250" Margin="30" Maximum="5" Minimum="1" Value="0" Cursor="Hand"
                    TickPlacement="Both" TickFrequency="1" Ticks="1, 2, 3, 4, 5" Name="Slider" Style="{StaticResource SliderStyle}">


            </Slider>
            <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Width="80" Margin="70,-20,0,0"
                       Text="{Binding ElementName=Slider, Path=Value}"></TextBlock>
        </StackPanel>

    </Grid>
</Window>

 

 

Can you please help me ,how to get circles inside tickbar in wpf .

                                                                                                                                                                
Masha
Telerik team
 answered on 08 Jun 2022
6 answers
182 views
I'm currently using a unpinned pane that has a context menu.  When you hover over the header, the pane shows up.  Then right click on the grid view row so the context menu pops up. The pane goes away.  Is there a way to keep it open while the context menu is open?

Here's the XAML:

<Window x:Class="DockingTest.MainWindow"
        Title="MainWindow"
        Width="525"
        Height="350">
    <Window.Resources>
        <Style x:Key="ContextMenuStyle" TargetType="telerik:RadContextMenu">
            <Setter Property="FontSize" Value="11" />
        </Style>
 
        <telerik:RadContextMenu x:Key="contextMenuCode" Style="{StaticResource ContextMenuStyle}">
            <telerik:RadContextMenu.Items>
                <!--  Visibility of menu items is controlled by RadContextMenu_Opened  -->
                <telerik:RadMenuItem Header="View/Edit Abstracts" />
                <telerik:RadMenuSeparatorItem />
                <telerik:RadMenuItem Header="Set Admitting" />
                <telerik:RadMenuItem Header="Set Principal" />
                <telerik:RadMenuSeparatorItem />
                <telerik:RadMenuItem Header="Move Code">
                    <telerik:RadMenuItem Header="Move Down" />
                    <telerik:RadMenuItem Header="Move Up" />
                </telerik:RadMenuItem>
            </telerik:RadContextMenu.Items>
        </telerik:RadContextMenu>
    </Window.Resources>
 
    <telerik:RadDocking x:Name="DockingControl"
                        Grid.Row="1"
                        MaxWidth="5000"
                        MaxHeight="5000"
                        Background="Transparent"
                        BorderThickness="0"
                        telerik:AnimationManager.AnimationSelector="{x:Null}"
                        telerik:AnimationManager.IsAnimationEnabled="False"
                        telerik:RadContextMenu.ContextMenu="{StaticResource contextMenuCode}">
        <telerik:RadDocking.DocumentHost>
            <telerik:RadSplitContainer>
                <telerik:RadPaneGroup x:Name="PaneGroup" telerik:RadDocking.SerializationTag="PaneGroup">
                    <telerik:RadPane CanFloat="False"
                                     CanUserClose="False"
                                     ContextMenuTemplate="{x:Null}"
                                     Header="Document" />
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking.DocumentHost>
 
        <telerik:RadSplitContainer InitialPosition="DockedLeft" Orientation="Horizontal" telerik:DockingPanel.InitialSize="200,10">
            <telerik:RadSplitContainer InitialPosition="DockedLeft" Orientation="Vertical" telerik:DockingPanel.InitialSize="200,10">
                <telerik:RadPaneGroup>
                    <telerik:RadPane CanDockInDocumentHost="False"
                                     CanFloat="True"
                                     CanUserClose="False"
                                     CanUserPin="True"
                                     ContextMenuTemplate="{x:Null}"
                                     Header="Test"
                                     IsPinned="False">
                        <telerik:RadGridView x:Name="Grid">
                            <telerik:RadGridView.Columns>
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Temp1}" Header="Temp1" />
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Temp2}" Header="Temp2" />
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Temp3}" Header="Temp3" />
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Temp4}" Header="Temp4" />
                            </telerik:RadGridView.Columns>
                        </telerik:RadGridView>
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadSplitContainer>
    </telerik:RadDocking>
</Window>
Cemil
Top achievements
Rank 1
Iron
 answered on 08 Jun 2022
1 answer
282 views

Hi,

Would it be possible to have a editable RadComboBox TextBox Part to mimic the RadWatermarkTextBox with floating Label?

Avrohom
Top achievements
Rank 1
Iron
Iron
 answered on 08 Jun 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?