Telerik Forums
UI for WPF Forum
6 answers
889 views

Hello,

how would I go about if I wanted the RadAutoCompleteBox to show all items if the SearchText is empty instead of no items at all?

I had my desired behaviour already implemented using the RadComboBox, which was perfectly fine, despite the fact that I'm dealing with mutliple thousands of items easily and the AutoCompleteBox seems to deal with those amounts of items better than the ComboBox.

What I want is a AutoComplete box that opens upon getting the focus (or upon pressing Ctrl + Space). If the SearchText is populated I want the dropdown to contain the filtered list. But if the SearchText is empty I want the dropdown to show all the entries. Currently it shows none.

To open the dropdown on focus and on ctrl+space is not the problem. Only the contents of the dropdown.

I found guides for silverlight (https://www.telerik.com/forums/display-all-items-on-focus) aswell asp.net (https://www.telerik.com/support/kb/aspnet-ajax/autocompletebox/details/show-all-records-when-focusing-the-input-element-of-autocompletebox) but was not able to adept those solutions fopr WPF.

Martin Ivanov
Telerik team
 answered on 23 Mar 2021
0 answers
155 views

Hello,

 

I had made a custom filter in unbound mode for some properties. Boolean properties and enum properties works well, but im trying to filter a proerrty of List<string>. I have made the ItemPropertyDefinition correctly and shows well in the data filter, and I cant select from multiple values, but when I select a value, it does not filter.

 

Is there any event where I can manipulate the filtering condition? To do something like:

itemsource[x].ListProperty.Any((value) => String.Equals(value, filterSelectedValue));

 

Or is other way to solve it?

 

Thank you and kind regards!

MaiK
Top achievements
Rank 1
Iron
 asked on 23 Mar 2021
6 answers
199 views

Hi,

we have a gridview and with this we have local filtering and sort, but in some columns we have implemented a custom filter.

The thing is when the user clicks on the "Clear Filter" we need to execute some other code, is there any way to differentiate that the user clicked on the "Clear Filter" button?

 

 

 

regards!

Maximiliano
Top achievements
Rank 1
Veteran
 answered on 22 Mar 2021
12 answers
1.4K+ views

I don't know if it's related to my last post: https://www.telerik.com/forums/radopenfolderdialog-generate-a-lot-of-exception

But that dialog is not usable if it's slow like that.  (see video compare to standard windows explorer, https://send.firefox.com/download/9e9308b253d19daf/#Xz4Pj9NHmh7NnG95iTlRRw)

 

I have a GetForce RTX 2080, I have 4k monitors and I use Windows 1903.  And I use WPF UI 2019.3.1023.45

Dilyan Traykov
Telerik team
 answered on 22 Mar 2021
1 answer
239 views

Hi,

Im using RadDatepicker for from date and to date, In from date, im using DisplayDateEnd as ValidTo and in to date, im using DisplayDateStart as ValidFrom, its works fine based on the date selection of valid from and valid to, but how can i see the dates which are not visible.

I want to see the dates in calender with disabled mode of past and future dates.

Thanks,

Karthick.

Dilyan Traykov
Telerik team
 answered on 22 Mar 2021
7 answers
210 views

Good afternoon.
We have a diagram (Tree Layout). Our diagram consists of separate sub-diagrams with no connection between them. Why does the last item automatically go to the second row (in the attach file, it is highlighted in red)? Could you tell me how this can be avoided? We need all the sub-diagrams to be placed in one line.

 

 

Andrei
Top achievements
Rank 1
 answered on 22 Mar 2021
1 answer
392 views
Hello everyone. I'm working as a .Net developer for a small start-up and we're about to start development on an application that has to be modern looking. I've worked with MahApps before, and am also aware of the material design library. Does anyone has another cool framework to check out? Even just a small one for specific UI components.
By the way I'm planning to use MVVM light and nHibernate if it's relevant.
Martin Ivanov
Telerik team
 answered on 22 Mar 2021
2 answers
1.0K+ views

Hello,

I have a treeView and I want to bind each item command, command parameter and IsEnabled properties. If I bind just the IsEnabled property it works, but if I add the command binding, the command works, but IsEnabled binding breaks.

I use the following code:

<telerik:RadTreeView ItemsSource="{Binding TreeViewModel.Categories}"
                                         Grid.Row="0">
                        <telerik:RadTreeView.ItemTemplate>
                            <HierarchicalDataTemplate ItemsSource="{Binding SubCategories}">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock VerticalAlignment="Center" Text="{Binding Name}" />
                                </StackPanel>
                            </HierarchicalDataTemplate>
                        </telerik:RadTreeView.ItemTemplate>
                        <telerik:RadTreeView.ItemContainerStyle>
                            <Style TargetType="telerik:RadTreeViewItem" BasedOn="{StaticResource RadTreeViewItemStyle}">
                                <Setter Property="IsEnabled" Value="{Binding IsEnabled}"/>
                                <Setter Property="Command" Value="{Binding Path=DataContext.GoToTabCommand, RelativeSource={RelativeSource AncestorType=telerik:RadWindow}}" />
                                <Setter Property="CommandParameter" Value="{Binding Name}" />
                            </Style>
                        </telerik:RadTreeView.ItemContainerStyle>
                    </telerik:RadTreeView>

 

 

How can I make both bindings to work?

Remus
Top achievements
Rank 1
Veteran
 answered on 22 Mar 2021
4 answers
417 views

 

Hello.

When using the Cell Change Event, if you use ClearFill(), it takes an infinite loop. Is there any way to prevent this?

xaml - radspreadsheet < ActiveSheetChanged="radSpreadsheet_ActiveSheetChanged" />
 
C# Code
private void radSpreadsheet_ActiveSheetChanged(object sender, EventArgs e)
{
  radSpreadsheet.ActiveWorksheet.Cells.CellPropertyChanged += cells_CellPropertyChanged;
}
 
private void cells_CellPropertyChanged(object sender, CellPropertyChangedEventArgs e)
        {
            var isSameValue = e.Property.UseSameValueAsPreviousOnInsert;
            var column = e.CellRange.FromIndex.ColumnIndex;
            var row = e.CellRange.FromIndex.RowIndex;
            CellSelection cell = (sender as Cells)[row, column];
            var value = cell.GetValue().Value.RawValue;
            if (string.IsNullOrEmpty(value))
            {
                cell.SetFill(Defines.RedFill);
                if (column == 2)
                {
                    cell.Worksheet.Rows[row].Remove();
                }
            }
            else if (value == Defines.NoParam)
            {
                cell.SetFill(Defines.YellowFill);
            }
            else
            {
                cell.ClearFill(); // This cellChanged event loop.
            }
        }

 

Thanks.

 

Martin
Telerik team
 answered on 19 Mar 2021
1 answer
168 views

Hello,

I'm using Telerik WPF R1 2021.

I'm using Automation to test our GUI and I came accross a problem from the RadComboBoxItemAutomationPeer

The property IsSelected isn't correctly retrieve when the RadComboBox is used with multiple selection as it uses the property "SelectedItem" and not "SelectedItems" to check the selection.

 

I don't want to override the whole Combobox to fix that so I will manage this some other way but if you think of another solution i'm all ears ;)

 

Regards,

Thomas

Dilyan Traykov
Telerik team
 answered on 18 Mar 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?