Telerik Forums
UI for WPF Forum
1 answer
245 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
887 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
334 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
104 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.2K+ 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
112 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
205 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
150 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
1 answer
118 views

As the title states, when I load persisted filters, they are applied correctly; however the filter icon is not highlighted.  Is there any way to achieve this?

Thanks in advance,

Steve

Dilyan Traykov
Telerik team
 answered on 17 Mar 2021
2 answers
142 views

Apparently I came across the following situation. 

When having a RadPane as a TabbedDocument and Header set to Collapsed then if I dock another RadPane onto it as another TabbedDocument what happens after I remove the second RadPane, the first on shows a blank content, i.e. the original content of the first pane disappears. 

Look at the following Code example:

 

<telerik:RadDocking Grid.Row="1" IsRestricted="True" >
    <telerik:RadDocking.DocumentHost>
        <telerik:RadSplitContainer Focusable="False" IsTabStop="False" >
            <telerik:RadPaneGroup Focusable="False" >
                <telerik:RadPane Focusable="False" IsTabStop="False" Visibility="Collapsed"
                                 PaneHeaderVisibility="Collapsed" CanUserClose="False" IsDockable="False">
                  .... RadPane Contents Here ....
               </telerik:RadPane>
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
    </telerik:RadDocking.DocumentHost>
    <telerik:RadSplitContainer Focusable="False" IsTabStop="False"
                               telerik:RadDocking.FloatingLocation="300,300"
                               telerik:RadDocking.FloatingSize="600,350"
                               InitialPosition="FloatingDockable" >
        <telerik:RadPaneGroup x:Name="radPaneGroup" Focusable="False">
            <telerik:RadPane Header="Test" Focusable="False" LayoutUpdated="RadPane_LayoutUpdated" x:Name="radPane"
                             IsTabStop="False"
                             IsActive="True">
                <TextBlock FontSize="48">Testing...</TextBlock>
            </telerik:RadPane>
        </telerik:RadPaneGroup>
    </telerik:RadSplitContainer>
</telerik:RadDocking>
Avrohom
Top achievements
Rank 1
Iron
Iron
 answered on 17 Mar 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?