Telerik Forums
UI for WPF Forum
1 answer
199 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
175 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
313 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
950 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
369 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
122 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
22 answers
1.3K+ views
Hi,

My Application follows MVVM and uses RadGridView Heavily, and there is a requirement to Preserve user settings which includes Groupings/Filters applied. There are two issues i'm facing at the moment.
1. I don't see a way of preserving Filters/Groupings while following MVVM
2. even if I forget about MVVM and follow the example provided still the Filters are not getting saved. Column Indexes, Column widths seems to be getting saved without a problem but it seems like there is an issue with preserving filters.

Note: I'm using the version 2010.3.1110.40, with .NET framework 4.0, on Windows 7.0

Could you please confirm if there is a known issue in preserving filter settings in the version above, and if not; also let me know if theres way of doing the same while follwing MVVM.

Appriciate a quick response as we have to finalize the requiments in comming week.

Thanx
Asela

Vladimir Stoyanov
Telerik team
 answered on 18 Mar 2021
1 answer
121 views

Hi.

I'm creating a UI to drag items from a RadListBox into a RadDiagramContainerShape. When dragging over the container shape a huge red border is generated, but it doesn't mix well with my app look and feel, is is possible to style it or remove it?

 

You can see an example here.

Martin Ivanov
Telerik team
 answered on 18 Mar 2021
1 answer
231 views

Hi,

i would like to move items with mouse and be able to cancel this operation with Esc key - cancel drag operation and move dragged item(s) back. How to do it correctly? I'm using MVVM patter if it does matter...

Thank you

Pavel

Martin Ivanov
Telerik team
 answered on 18 Mar 2021
4 answers
158 views

Dear Telerik support team,

I have a RadGridView with more than 1 groups headers. When I use Page-Up, Page-Down key control to navigate inside the grid, the scroll height doesn't take in account the height of grouping headers. So that, while pressed on PageDown, the scroll goes to the middle of the next "page".

I attached a scenario as below:

1. When I'm in the first row of grid (see image: Before_PageDown.png), if I put on "Page Down" key, I expect the selection cursor goes to line "10916" (the last line of my viewport).

2. However, in reality, when I pressed on Page Down, it goes to line "10353" (see image: After_PageDown.png),

 

Many thanks for your help!

 

minh
Top achievements
Rank 2
Iron
Iron
Iron
 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
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
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?