Hey,i try to display to also display the miliseconds in the DateTime Picker. I changed the format like so:
dpDate.DisplayFormat = Telerik.Windows.Controls.DateTimePickerFormat.Short;dpDate.Culture = new System.Globalization.CultureInfo(CultureInfo.CurrentUICulture.LCID);dpDate.Culture.DateTimeFormat.ShortTimePattern = "HH:mm:ss fff";As soon as I manually change the time in the textbox for example to 13.05.2015 09:57:40 200 and hit return, the selected datetime & textbox text will reset to 13.05.2015 09:57:40 000. What am I doing wrong? ​
Hi,
We are trying to populate the parent / child data in hierarchical gridview at runtime. Columns of the grid view is based on the login user. So, we are not set the columns at design.
We use parent - child relationship as below code logic. We can see the parent details and child details. However, for child details, it is showing all information. It should be shown the data which is associated with the parent data.
<commonData:ExtendedGridView x:Name="HierarchicalGridView1"
Grid.Column="0" Margin="55,27,0,10" Grid.ColumnSpan="2"
CanUserReorderColumns="False" AutoGenerateColumns="False"
ShowGroupPanel="False" RowIndicatorVisibility="Collapsed"
ItemsSource="{Binding Source={StaticResource CollectionVM},Path=ParentCollection}"
commonData:GridViewBindingBehavior.ColumnsCollection="{Binding Source={StaticResource CollectionVM},Path=DynParentColumns}"
>
<telerik:RadGridView.ChildTableDefinitions >
<telerik:GridViewTableDefinition >
<telerik:GridViewTableDefinition.Relation>
<telerik:TableRelation IsSelfReference="False">
<telerik:TableRelation.FieldNames>
<telerik:FieldDescriptorNamePair
ParentFieldDescriptorName="ORDNO"
ChildFieldDescriptorName="ORDNO" />
</telerik:TableRelation.FieldNames>
</telerik:TableRelation>
</telerik:GridViewTableDefinition.Relation>
</telerik:GridViewTableDefinition>
</telerik:RadGridView.ChildTableDefinitions>
<telerik:RadGridView.HierarchyChildTemplate >
<DataTemplate>
<commonData:ExtendedGridView ShowColumnHeaders="False" ItemsSource="{Binding Source={StaticResource CollectionVM},Path=ChildCollection}" AutoGenerateColumns="False" ShowGroupPanel="False"
commonData:GridViewBindingBehavior.ColumnsCollection="{Binding Source={StaticResource CollectionVM},Path=DynParentColumns}" >
</commonData:ExtendedGridView>
</DataTemplate>
</telerik:RadGridView.HierarchyChildTemplate>
Your help is much appreciated.
Thanks
VG
Hello,
1. When the Combobox receives the focus with a table, nothing appears with the OnLostFocus method and the LostFocus event.
Correct.
2. When the ComboBox is clicked with the mouse the OnLostFocus method is called and then the LostFocus event is raised.
Error: these should not be called.
3. When the ComboBox loses the focus, the LostFocus event is raised, but the OnLostFocus method is not called.
Error: the OnLostFocus method should be called.
Normally, this OnLostFocus method should fire the LostFocus event. It seems to be bypassed in position 3.
using (var workRepo = new WorkRepository()){ IQueryable<WorkViewModel> works = workRepo.All<Work>().OrderBy("Title").Select(work => new WorkViewModel(work)); virtualCollection = new VirtualQueryableCollectionView(works) { LoadSize = 50 };}System.NotSupportedException was caught HResult=-2146233067 Message=Only parameterless constructors and initializers are supported in LINQ to Entities. Source=EntityFramework StackTrace: w System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.NewTranslator.TypedTranslate(ExpressionConverter parent, NewExpression linq) w System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TypedTranslator`1.Translate(ExpressionConverter parent, Expression linq) w System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateExpression(Expression linq) w System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateLambda(LambdaExpression lambda, DbExpression input) w System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateLambda(LambdaExpression lambda, DbExpression input, DbExpressionBinding& binding) w System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MethodCallTranslator.OneLambdaTranslator.Translate(ExpressionConverter parent, MethodCallExpression call, DbExpression& source, DbExpressionBinding& sourceBinding, DbExpression& lambda) w System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MethodCallTranslator.SelectTranslator.Translate(ExpressionConverter parent, MethodCallExpression call) w System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MethodCallTranslator.SequenceMethodTranslator.Translate(ExpressionConverter parent, MethodCallExpression call, SequenceMethod sequenceMethod) w System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MethodCallTranslator.TypedTranslate(ExpressionConverter parent, MethodCallExpression linq) w System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TypedTranslator`1.Translate(ExpressionConverter parent, Expression linq) w System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateExpression(Expression linq) w System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateSet(Expression linq) w System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MethodCallTranslator.AggregateTranslator.Translate(ExpressionConverter parent, MethodCallExpression call) w System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MethodCallTranslator.SequenceMethodTranslator.Translate(ExpressionConverter parent, MethodCallExpression call, SequenceMethod sequenceMethod) w System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MethodCallTranslator.TypedTranslate(ExpressionConverter parent, MethodCallExpression linq) w System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TypedTranslator`1.Translate(ExpressionConverter parent, Expression linq) w System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateExpression(Expression linq) w System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.Convert() w System.Data.Entity.Core.Objects.ELinq.ELinqQueryState.GetExecutionPlan(Nullable`1 forMergeOption) w System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.<GetResults>b__6() w System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) w System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.<GetResults>b__5() w System.Data.Entity.Infrastructure.DefaultExecutionStrategy.Execute[TResult](Func`1 operation) w System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) w System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0() w System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() w System.Linq.Enumerable.<CastIterator>d__b1`1.MoveNext() w System.Linq.Enumerable.Single[TSource](IEnumerable`1 source) w System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.<GetElementFunction>b__3[TResult](IEnumerable`1 sequence) w System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.ExecuteSingle[TResult](IEnumerable`1 query, Expression queryRoot) w System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.System.Linq.IQueryProvider.Execute(Expression expression) w System.Data.Entity.Internal.Linq.DbQueryProvider.Execute(Expression expression) w Telerik.Windows.Data.QueryableExtensions.Count(IQueryable source) w Telerik.Windows.Data.VirtualQueryableCollectionView..ctor(IEnumerable source, Type itemType) w Telerik.Windows.Data.VirtualQueryableCollectionView..ctor(IEnumerable source) w Xplus.RNX.WpfClient.UI.ViewModels.MainViewModel.FillCollections() w d:\Users\ppiechnik\Documents\Visual Studio 2012\Projects\RNX\Xplus.RNX\Xplus.RNX.WpfClient\UI\ViewModels\MainViewModel.cs:wiersz 743 InnerException: I'm trying to figure out how to deal with terribly poor performances of my application during pan operations.
Basically when the user starts panning a diagram the CPU goes 100%. Things seems getting worse when the navigation pane is visible.
Profiling the application, it seems that the issue is caused by RadDiagram calling the BackgroundLineBase.PrepareLine method thousand times.
Strangely enough I've managed to reproduce the issue in this project from your sample codebase:
Can you provide some advice on how to mitigate / fix the issue?

Hi,
Is there a way to show a tooltip with the value of the slider of the current position of the mouse over the track? So the user know the value is going to select beforehand.
Thanks, Jose
I need to understand the best way to accomplish this.
I have an ItemType list. For each ItemType, I specify the type of TreeNode that can be defined. So, then I have an Item list. Each Item is assigned an ItemType and has a Children property which are more Item objects thus making the Hierarchy.
Question is, how do I filter the items in the Item Type Column's ComboBox in relation to the selected Hierarchy Node?
For pseudo code, do I:
Thanks for your help,
Joel
TreeListView Definition:
<telerik:RadTreeListView x:Name="treeListView" AutoGenerateColumns="False" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" CanUserFreezeColumns="False" CanUserReorderColumns="False" Grid.Row="1" Margin="5" IsReadOnly="{Binding Context.IsReadOnly}" ItemsSource="{Binding Context.Hierarchy, Mode=TwoWay}" SelectedItem="{Binding Context.SelectedItem, Mode=TwoWay}" AutoExpandItems="True"> <telerik:RadTreeListView.ChildTableDefinitions> <telerik:TreeListViewTableDefinition ItemsSource="{Binding Children}"/> </telerik:RadTreeListView.ChildTableDefinitions> <telerik:RadTreeListView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding Name, Mode=TwoWay}" CellTemplate="{StaticResource FirstColumnCellTemplate}" IsReadOnly="False" Width="*"/> <telerik:GridViewComboBoxColumn x:Name="itemTypeColumn" Header="Item Type" SelectedValueMemberPath="Name" DisplayMemberPath="Name" ItemsSource="{Binding Context.ItemTypes}" DataMemberBinding="{Binding ItemTypeName, Mode=TwoWay}" Width="150"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding IsActive, Mode=TwoWay}" Header="Include"/> </telerik:RadTreeListView.Columns></telerik:RadTreeListView>