Telerik Forums
UI for WPF Forum
0 answers
223 views

Hello.  I'm trying to create a vertical RadSlider with a custom Thumb that will display the current value of the slider, and has a pair of up/down buttons that the user can click to increment the slider by a fixed amount.

I've styled my Thumb to have Height="30" and Width="100", and the custom thumb appears as expected.  However, there are two problems.  First, because my RadSlider has Orientation="Vertical", I'm only able to drag the slider until the thumb is 100 px below the top of the slider - the width of the Thumb.  When the Thumb is at the maximum position, the slider value is 100% - but I'd like the Thumb to move through the entire length of the slider's Track.


The second problem is, when the slider is set to zero, the custom content of my Thumb appears below the bottom of the slider - I would like it to be centered on the bottom of the slider's Track.


Setting a margin on the Thumb only changes the proportion of "dead" space in the slider; if the Margin is 50, then I can only drag to within 50 px of the top or bottom of the slider.

Thank you!
-Ed

Ed
Top achievements
Rank 1
 asked on 26 Jun 2023
1 answer
155 views

When I use the WindowsFormsHost in Radbusyindicator,

then I change the window size, and the UI shows very slowly and seems wrong.

The content of the WindowsFormsHost is just a Label.

I am not sure if there are some details in this case.

 

<telerik:RadBusyIndicator IsBusy="False">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="30"/>
            </Grid.RowDefinitions>
            <WindowsFormsHost>
                <cc:UserControl1/>
            </WindowsFormsHost>
        </Grid>
    </telerik:RadBusyIndicator>

 

Martin Ivanov
Telerik team
 answered on 21 Jun 2023
0 answers
130 views

Hello! I have a RadGanttView with custom columns (which can be switched on and off on fly). The problem is that after any interaction with this control GridView part shows horizontal scroll bar, but splitter doesn't go right although there is more than enough space to resize (Picture 1).

It doesn't really matter how many columns are there - GridView resizes itself to be a bit smaller than enough to fit all the columns and doesn't expand anymore (Picture 2), leaving at least 0.5 cm of free space on the right (on 17" FullHD display) (Picture 3).

At the same time there is no problem with shrinking, it's possible to move splitter to the left until GridVIew part becomes completely invisible.

Thanks, Dmitrii

UPD: I've checked variables in Dynamic Visual Tree and found that ExtentWidth of TreeRenderingPanel element is always 3 units more than needed. Is there a way to fix this?

Dmitrii
Top achievements
Rank 1
 updated question on 20 Jun 2023
1 answer
462 views

not sure why the size of the combobox arrow is that small , any idea how to change it?

 

 

Thanks,

Wael
Top achievements
Rank 1
Iron
 answered on 19 Jun 2023
1 answer
197 views

Hello,

I noticed that the RadRichTextBox is not working as expected.

According to the documentation, SHIFT + ENTER should create a new line and ENTER a new paragraph.
For some reason the ENTER key is not working. My final go is to switch between SHIFT + ENTER and ENTER as described in the following link:

https://www.telerik.com/forums/wpf-radrichtextbox---swapping-enter-key-and-shift-enter-keys-behavior

How can I do that? the AcceptReturn is set to True, but the PreviewKeyDown event is not triggered for ENTER.

Dimitar
Telerik team
 answered on 19 Jun 2023
1 answer
178 views

Hi Team,

In my LineSeries chart I want to change the color of the line dots based on a property of my bound list item.

The ItemSource of my LineSeries is an ObservableCollection<MonthlyTracking> . The MonthlyTracking class looks like this:

   public class MonthlyTracking : INotifyPropertyChanged
    {
        [....]

        private string monthString;
        public string MonthString
        {
            get => this.monthString;
            set
            {
                this.monthString = value;
                this.OnPropertyChanged(nameof(this.MonthString));
            }
        }

        private double actualValue;
        public double ActualValue
        {
            get => this.actualValue;
            set
            {
                this.actualValue = value;
               this.OnPropertyChanged(nameof(this.ActualValue));
            }
        }

        private int statusId;
        public int StatusId
        {
            get => this.statusId;
            set
            {
                this.statusId = value;
                this.OnPropertyChanged(nameof(this.StatusId));
            }
        }

     [....]

    }

My XAML Code looks like this:

<telerik:RadCartesianChart>
     <telerik:RadCartesianChart.HorizontalAxis>
        <telerik:CategoricalAxis ShowLabels="True"/>
     </telerik:RadCartesianChart.HorizontalAxis>
	 
     <telerik:RadCartesianChart.VerticalAxis>
        <telerik:LinearAxis />
    </telerik:RadCartesianChart.VerticalAxis>
                
	<telerik:RadCartesianChart.Series>                   
         <telerik:LineSeries ItemsSource="{Binding MonthlyTrackingList}" CategoryBinding="MonthString" ValueBinding="ActualValue" >
             <telerik:LineSeries.DefaultVisualStyle>
                <Style TargetType="Path">
                    <Setter Property="Width" Value="10" />
                    <Setter Property="Height" Value="10" />     
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding StatusId}" Value="1">
                            <Setter Property="Fill" Value="LimeGreen" />
                        </DataTrigger>
                        <DataTrigger Binding="{Binding StatusId}" Value="2">
                            <Setter Property="Fill" Value="LightCoral" />
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </telerik:LineSeries.DefaultVisualStyle>
         </telerik:LineSeries>
    </telerik:RadCartesianChart.Series>
	
</telerik:RadCartesianChart>

The line is drawn in the chart. Unfortunately my binding in telerik:LineSeries.DefaultVisualStyle is wrong. The property StatusId is not found. Can you help me?

 

Kind regards,

 

Mario

 

Dimitar
Telerik team
 answered on 19 Jun 2023
1 answer
222 views

Hi team,

I am looking for a simply way to hide / remove the additional Fieldfilter in the Filter Control (Popup) of a RadGridView. Is it possible to do this whithout creating a custom column or a complete custom control ?

I just to keep the distinct filter and the first FieldFilter

Thank you, have a nice day.

Regards

Matthieu

Martin Ivanov
Telerik team
 answered on 16 Jun 2023
0 answers
236 views
The carousel is great but when I use the mouse wheel it scrolls too fast.  Is there a way to slow that down?  I tried using the `ScrollingSettingsBehavior` but none of the settings in that behavior seemed to have any effect.
Joe
Top achievements
Rank 2
Iron
Iron
Veteran
 asked on 15 Jun 2023
0 answers
219 views
In my project I have RadGridView with GridViewDataColumns. Some of the rows are connected with each other. For some of them default filtering using FilteringDropDown is enough, since they have the same value in filtered column. But there are also columns where the values for interconnected rows are different and if we filter it by deafault we lose that connection and we only present row with that value and the connected row is lost. Is there possibility to override some function and perform the custom filtering there. If yes how to do that?
Or do I need some new control there based on the deafault filtering popup to perform filtering there?
Szymon
Top achievements
Rank 1
 asked on 15 Jun 2023
0 answers
174 views

Hi I have two RadGridView , first one consists of basic controls it works well.

However, the other thing is that the page is created, but the controls are not displayed at all.

the only difference is that the second radgridview using CellTemplate.


<telerik:GridViewDataColumn  HeaderCellStyle="{StaticResource CustomGridViewHeaderCellStyle}"  Header="{Binding TimeFirst}" Width="0.8*" HeaderTextAlignment="Center"  ColumnGroupName="L1CODE">
                            <telerik:GridViewDataColumn.CellTemplate>
                                <DataTemplate>
                                    <Grid>
                                        <telerik:RadProgressBar  Height="20"  Minimum="0"  Maximum="3600" Value="{Binding L1CodeBeforeCnt3}" Style="{StaticResource l1code3progressbar}">
                                        </telerik:RadProgressBar>
                                        <TextBlock Text="{Binding L1CodeBeforeCnt3}" Margin="5 0">
                                        </TextBlock>
                                    </Grid>
                                </DataTemplate>
                            </telerik:GridViewDataColumn.CellTemplate>
                        </telerik:GridViewDataColumn>

 

and i used radpager like this.

 <telerik:RadGridView 
                            ItemsSource="{Binding PagedSource, ElementName=radDataPager}"
>


   <telerik:RadDataPager x:Name="radDataPager" 
                          Source="{Binding SignalCntData}" 
                          PageSize="30" 
                          />

this code works well in consists of basic controls.

is it a problem with styling the progressbar? but without pager, just radgridview, there are no problem..

But I must display more than 150 rows, I must use RadPager somebody help..

 

 

 

 

 


Jiwoo
Top achievements
Rank 1
 asked on 15 Jun 2023
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
DataPager
PersistenceFramework
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?