Telerik Forums
UI for WPF Forum
1 answer
152 views

I am using RadSplitButton.  I want the drop-down to be enabled even if the command itself is not valid to execute.   Is this a valid use-case for this control?

My dropdown content is a list of items.  The RadSplitButton content shows the currently selected item.  The command operates on the currently selected item and can only be executed if it is valid for that item.   

But as soon as the command becomes invalid for the currently selected item, the entire RadSplitButton control becomes disabled.  So I am unable to use the dropdown to select a different item, for which it might be valid.

Am I trying to use this control in a manner for which it was not intended?

Stenly
Telerik team
 answered on 30 Mar 2022
1 answer
315 views

Hi

we tried to change template for radcombobox. but encountered a problem.

when popup is shown and try to move window or focus other window/app, it remains open. note that we set OpenDropdownOnFocus and IsEditable to true

we use c#, wpf, .net core

thanks


<Style TargetType="telerik:RadComboBox"> <Setter Property="TextSearchMode" Value="Contains"/> <Setter Property="IsFilteringEnabled" Value="true"/> <Setter Property="OpenDropDownOnFocus" Value="True"/> <Setter Property="EditableTemplate"> <Setter.Value> <ControlTemplate TargetType="telerik:RadComboBox"> <Grid> <telerik:RadToggleButton Name="ToggleButton" Background="{TemplateBinding Background}" Foreground="{StaticResource _comboboxForeground}" Template="{StaticResource MyRadToggleButton}" Focusable="false" IsChecked="{Binding Path=IsDropDownOpen,Mode=TwoWay,RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press"> </telerik:RadToggleButton> <ContentPresenter Name="ContentSite" IsHitTestVisible="False" Content="{TemplateBinding SelectionBoxItem}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" Margin="3,3,23,3" VerticalAlignment="Center" HorizontalAlignment="Left" /> <TextBox x:Name="PART_EditableTextBox" Margin="5,1,25,1" Style="{StaticResource _Panel_TextBoxStyle}" Background="Transparent" BorderThickness="0" VerticalAlignment="Center"/> <Popup Name="Popup" Grid.ColumnSpan="2" Placement="Bottom" IsOpen="{TemplateBinding IsDropDownOpen}" AllowsTransparency="True" Focusable="False" PopupAnimation="Slide"> <Grid Name="DropDown" SnapsToDevicePixels="True" MinWidth="{TemplateBinding ActualWidth}" MaxHeight="{TemplateBinding MaxDropDownHeight}"> <Border Grid.ColumnSpan="2" Grid.RowSpan="2" x:Name="DropDownBorder" SnapsToDevicePixels="True" MaxWidth="{TemplateBinding ActualWidth}" BorderThickness="0" BorderBrush="White"/> <ScrollViewer Grid.ColumnSpan="2" ScrollViewer.CanContentScroll="False" Grid.Row="1" SnapsToDevicePixels="True"> <StackPanel IsItemsHost="True" Background="{StaticResource _comboboxPopupBackground}" > </StackPanel> </ScrollViewer> </Grid> </Popup> </Grid> <ControlTemplate.Triggers> <Trigger Property="IsFocused" Value="False"> <Setter Property="IsDropDownOpen" Value="False"/> </Trigger> <DataTrigger Binding="{Binding ElementName=PART_EditableTextBox, Path=IsFocused}" Value="false"> <Setter Property="IsDropDownOpen" Value="False"/> </DataTrigger> <DataTrigger Binding="{Binding ElementName=ToggleButton, Path=IsChecked}" Value="True"> <Setter Property="FocusManager.FocusedElement" TargetName="PART_EditableTextBox" Value="{Binding ElementName=PART_EditableTextBox}"/> </DataTrigger> <Trigger Property="IsMouseOver" Value="True"> <Setter TargetName="ToggleButton" Property="Background" Value="{StaticResource _comboboxHover}"/> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style>

Dilyan Traykov
Telerik team
 answered on 29 Mar 2022
1 answer
141 views

Hi

In a radgridview I have some rows that I would like to stay always on top, in the order I set in the initial loading.
The other rows can be sorted in the default mode for the column click.

Please note that the number of rows "locked" is known only at runtime.

In the first figure you could see the original sorting. The gray rows are that I would to stay on top:

In the second figure you could see the result after sorting on coulmn "Inizio": the sorting is correct obviously, but I would like that the 3 gray rows stay on the top anyway:

Thank you

Luigi

Dilyan Traykov
Telerik team
 answered on 28 Mar 2022
1 answer
174 views

Hello,

We're trying to create a data paging system using the RadGridView, and are having difficulty with the filtering.
Here's the scenario. 

First, we set up the filtering mode = Filter row.

When a filter is applied, we intercept the Colum info that's being filtered in the "Grid_Filtering" event to create our Filtering information to pass back to the web services to get data.  

The issues is that the grid filters (Let's say it reduces the rows to 3), then as we call our web service to get data from the back end, which may have 10 items in the dataset.

My question is;  Are there any examples where one can gather the filter information, then prevent the internal grid from filtering, then applying our new data set?

We've cobbled it together, but it looks bad having the grid display one data set, only to have it clear out and load another.
What we're trying to do is pull the pages via webservice instead of loading the entire dataset into memory.

Dilyan Traykov
Telerik team
 answered on 28 Mar 2022
0 answers
124 views

Hello.

How to make GridViewComboBoxColumn search by DisplayMemberPath?

ItemsSource - Dictionary<Guid, string>

While searching :System.InvalidCastException Message=Invalid cast from "System.String" to "System.Guid". 


ItemsSource="{Binding Directions}"
DataMemberBinding="{Binding Direction}" 
SelectedValueMemberPath="Key"
DisplayMemberPath="Value"

IsLightweightModeEnabled="True" doesn't help 

Code in attach.

Igor.Antohin
Top achievements
Rank 1
Iron
 updated question on 27 Mar 2022
0 answers
117 views

Why does this simple task not work on radGridView when the FilterMode is FilterRow?

I put the test code below behind a button click event for what I thought was a simple 5 minute test.

Data is loaded, grid is looking good, then I click the button

 

FilterDescriptor Test = new FilterDescriptor();

 

Test.Value = "ABC";

Test.Operator = FilterOperator.StartsWith;

Test.Member = "COLUMNNAME";

 

GridTest.FilterDescriptiors.add(Test); <------------- EXCEPTION

 

This throws and exception with message "The method or operation is not implemented"

 

 

 

John
Top achievements
Rank 1
 asked on 25 Mar 2022
1 answer
199 views

Hello,

 

I'm trying to expand all parent of my XmlElement in my RadTreeView. I can't add a specific property on my binded elemnt because it's an XmlNode. I am trying to use onSelected or onSelectionChanged events but can't have a concluent result because i can't find the whole path if parent is collapsed.

 

Thank you

Genachats
Top achievements
Rank 1
Iron
 answered on 24 Mar 2022
1 answer
197 views

I have RadBarcodeQR and I want to keep the white space outside the BarCode the same in all text.

Would appreciate help

<Grid>
        <StackPanel VerticalAlignment="Center">
            <TextBox Text="{Binding QrCode, UpdateSourceTrigger=PropertyChanged}" Width="300" Height="30" Margin="20"/>
            <telerik:RadBarcodeQR
                Height="100" 
                Width="100"
                Text="{Binding QrCode, UpdateSourceTrigger=PropertyChanged}"
                Foreground="Black"
                UseLayoutRounding="True">
                <telerik:RadBarcodeQR.Style>
                    <Style TargetType="telerik:RadBarcodeQR">
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="telerik:RadBarcodeQR">
                                    <Grid 
                                        x:Name="PART_RadBarcodeQR" 
                                        Background="White" 
                                        Margin="15">
                                        <Image x:Name="ImageQrCode" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                    </Grid>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </telerik:RadBarcodeQR.Style>
            </telerik:RadBarcodeQR>
        </StackPanel>
    </Grid>

 

This is what it looks like with an empty string:

 

 

This is what it looks like with the string: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

 

Dilyan Traykov
Telerik team
 answered on 24 Mar 2022
1 answer
343 views

Hi all,

I'm having trouble working out how to increase the thumb slide animation speed. I can't find any information online about the toggle switch animation. Any help is appreciated.

Thanks

<Style TargetType="telerik:RadToggleSwitchButton">
    <Setter Property="telerik:AnimationManager.AnimationSelector">
        <Setter.Value>
            <telerik:AnimationSelector>
                <telerik:SlideAnimation SpeedRatio="2.0"/>
            </telerik:AnimationSelector>
        </Setter.Value>
    </Setter>
</Style>
Vicky
Telerik team
 answered on 24 Mar 2022
0 answers
123 views

The RadTreeView is showing as gray text on white background. We are using implicit styles. Styles appear to show for other controls in project.

 

Telerik Dlls referenced in project:

ResourceDictionaries merged in App.xaml:

Style referenced in RadTreeView element tag:

Will
Top achievements
Rank 1
Iron
 asked on 23 Mar 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?