Telerik Forums
UI for WPF Forum
1 answer
182 views
the Code below is Bound to IsExpanded of RadTreeItem


public
bool IsExpanded
       {
           get
           {
               return isExpanded;
           }
           set
           {
               try
               {
                   if (isExpanded != value)
                   {
                       if (value)
                       {
                           if (Children.Contains(dummy))
                           {
                               Children.Remove(dummy);
                           }
                           LoadChildren();
                       }
                   }
                   isExpanded = value;
                   RaisePropertyChanged(() => IsExpanded);
               }
               catch (Exception e)
               {
                   if (!HasItems)
                   {
                       //if empty, add dummy to keep the expander.
                       Children.Add(dummy);
                   }
                   //any exception will keep this node collapsed.
                   isExpanded = false;
                   RaisePropertyChanged(() => IsExpanded);
                   throw;
               }
           }
       }


Inside the catch statement, I want to force collapse the treeitem if there is an error. If I put "throw" the tree item DOES NOT collapse. when I remove the "throw" it collapses successfully. Why "throw" is preventing the treeitem to collapse? 


We need the "throw" because IsExpanded is called by another method that catches the exception and do some logic.

 
Petar Mladenov
Telerik team
 answered on 13 Oct 2014
2 answers
110 views
I'm working on a WPF application and using the Telerik RadChart control.I'm having the following issue:

see demo2.JPG

The number is not displayed for the first and last columns/series.

When I have less columns, everything works great, as in the demo3.JPG

I'm not sure what causes that, and really hope to get any suggestions (maybe its a lack of space, but I'm not sure how to solve that). Thanks!
Dmitri
Top achievements
Rank 1
 answered on 12 Oct 2014
1 answer
351 views
Hi

I would like to move a border-less RadWindow, how may I do that?

Using a Window control i was doing this - 

private void Window_MouseDown(object sender, MouseButtonEventArgs e)
{
   if (e.ChangedButton == MouseButton.Left)
       this.DragMove();
}



Thanks.
Kalin
Telerik team
 answered on 10 Oct 2014
1 answer
148 views
Hello,

I would like that the users would be able to add filters while the grid loads asynchronously (loads a lot of data for ~10 seconds). Any ideas on how to make this possible as while the grid loads the filter-combobox is empty.
Dimitrina
Telerik team
 answered on 10 Oct 2014
4 answers
270 views
Hello,

I have a GridView in the DataTemplate of a TreeListView. Sometimes (quite often) the SelectedItem event of the GridView is not fired. I can see that the items are visually correctly selected but sometimes only the SelectedItem event of the TreeListView is fired (checked by an output within both SelectedItem properties).

Best Regards
Raul


<UserControl x:Class="PrimeTime.Views.Employees.EmployeeWorkdayErrorSelectionView"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
             xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
             mc:Ignorable="d" Height="504" Width="400">
 
    <UserControl.Resources>
        <ResourceDictionary>
            <DataTemplate x:Key="ErrorWorkdaysTemplate">
                <telerik:RadGridView ItemsSource="{Binding WorkdayErrors}" EnableRowVirtualization="False" IsReadOnly="True" SelectionMode="Single"
                                     AutoGenerateColumns="False" ShowGroupPanel="False" ShowColumnHeaders="False"
                                     ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                                     CanUserInsertRows="False" CanUserDeleteRows="False" CanUserSortColumns="False"
                                     IsSynchronizedWithCurrentItem="True"  IsFilteringAllowed="False"
                                     SelectedItem="{Binding SelectedWorkdayError, Mode=TwoWay}">
 
                    <telerik:RadGridView.Columns>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding WorkdayDate}" Header="Day" Width="70"/>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding ErrorMessage}" Header="Error" Width="Auto"/>
                    </telerik:RadGridView.Columns>
                </telerik:RadGridView>
            </DataTemplate>
        </ResourceDictionary>
    </UserControl.Resources>
 
    <telerik:RadTreeListView x:Name="tlv_EmployeeSelection" EnableRowVirtualization="False" ItemsSource="{Binding Childs}"
                             AutoGenerateColumns="False" AutoExpandItems="True" IsReadOnly="True"
                             RowDetailsVisibilityMode="VisibleWhenSelected" SelectionMode="Single"
                             IsFilteringAllowed="False" CanUserDeleteRows="False" CanUserInsertRows="False"
                             RowDetailsTemplate="{StaticResource ErrorWorkdaysTemplate}"
                             SelectedItem="{Binding SelectedItem, Mode=TwoWay}">
 
        <telerik:RadTreeListView.ChildTableDefinitions>
            <telerik:TreeListViewTableDefinition ItemsSource="{Binding Childs}"/>
        </telerik:RadTreeListView.ChildTableDefinitions>
 
        <telerik:RadTreeListView.Columns>
            <telerik:GridViewDataColumn UniqueName="Name" DataMemberBinding="{Binding Name}" Header="Name" Width="*"/>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding PersonnelNumber}" Header="Number" Width="70"/>
        </telerik:RadTreeListView.Columns>
    </telerik:RadTreeListView>
</UserControl>
Yoan
Telerik team
 answered on 10 Oct 2014
4 answers
217 views
Hey, I'd like to create a combobox which contains filtering presets and then apply the filterdescriptors upon selection change using the MVVM-pattern. I'm able to add default filter descriptors but unable to get the filters updated afterwards programmatically from view-model. Everything is wired as TwoWay and are raising PropertyChanged and is set as UpdateSourceTriggers.

Preset-collection for the combobox:
private ObservableCollection<KeyValuePair<string, ObservableCollection<FilterDescriptor>>> filterPresets;
public ObservableCollection<KeyValuePair<string, ObservableCollection<FilterDescriptor>>> FilterPresets
{ ... }

Selected item of the Preset-combobox which should update the actual filtering collection upon change:
private KeyValuePair<string, ObservableCollection<FilterDescriptor>> selectedPreset;
public KeyValuePair<string, ObservableCollection<FilterDescriptor>> SelectedPreset
{
    get { return selectedPreset; }
    set
    {
        if (selectedPreset.Key != value.Key)
        {
            selectedPreset = value;
            FilterDescriptors = selectedPreset.Value;
            OnPropertyChanged();
        }
    }
}

Actual filter descriptor collection bound to the datafilter using FilterDescriptorBindingBehavior.FilterDescriptors:
private ObservableCollection<FilterDescriptor> filterDescriptors;
public ObservableCollection<FilterDescriptor> FilterDescriptors
{ ... }


Looking forward for your reply,
LM IT



















LM IT
Top achievements
Rank 2
 answered on 10 Oct 2014
5 answers
317 views
Hi,

I'm using VS2008 and Telerik V2010.3.1314.35 and I have a problem when I try to maximize my RadWindow. When I maximized my RadWidnow, the RadWindow popup in the middle of my screen and the half of my RadWindow is out of my screen on the right side.

In other words, when I maximize my RadWindow, my RadWindow don't do what he have to do, take the all area of my screen.

Thank's
Kalin
Telerik team
 answered on 09 Oct 2014
1 answer
250 views
Hi,

I would like to know if it's possible to detect within which control (RadWatermarkTextBox or popup) the ENTER key was pressed???

Thank's
Alain
Kalin
Telerik team
 answered on 09 Oct 2014
4 answers
138 views
Hello

I'm currently testing Telerik for WPF and I'm having some issues / possible bugs. Hope this forum is ok to post it.

1. RadGridView in DataTemplate
I have a control with a RadTreeListView which contains a RadGridView in its RowDetailsTemplate. Everything works good, but as soon as the GridView has 143 or more rows the application becomes stuck / freezes. Each row has 2 columns with small data, so memory should not be the issue.


2. Several Issues with RadTimePicker
A) When entering 0215 (manually) it will become 21:05 and not the expected 02:15. This is a real problem for me because the application will have a lot of time values
B) If the Timepicker is initialized with null and I select from the dropdown area 00:00 it will not be accepted and the field remains empty


3. RadMaskedNumericInput with Nullable int 
The null value will not be accepted. Instead e.g. a 1 will be displayed. I have seen that this issue was reported some years ago, but the bug seems still to be existent. Using a double is a workaround, but I would feel better if the bug would have been fixed after being reported for so much time.


I also have a question:
Im using a lot of RowDetailsTemplate. Some rows have no details, so that the DataTemplate is not required. Nevertheless there are some pixels visible on empty DataTemplates. An example is a RadTreeListView with 2 levels. Only the second level has Details, but the DataTemplate (at least some pixels) is also displayed on the first level of the hierarchy. Is there a way to prevent it?


Greetings
Raul
Dimitrina
Telerik team
 answered on 09 Oct 2014
1 answer
172 views
When I add custom calculated fields to the Field list it creates a folder called "Calculated Fields" in the field list. Is there anyway I can change this caption to something other than this and still retain the fact that they are calculated fields?. I only want to change the caption of the Folder in the field list from "Calculated Fields" to "Measures - calculated fields"

Thank you
Kalin
Telerik team
 answered on 09 Oct 2014
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?