Hi,
I am looking to insert an InlineUIContainer by drag/drop of something into the RichTextBox but following dropping of the element, unless it is simple text being inserted I am struggling to work out how to insert an InlineUIContainer at the current cursor location.
I have managed to insert the control but only to the end of the document.
A code snippet below might help but errors not at point of insert but when it is trying to update the screen next... The code is taken from the drop handler event.
Dim point = args.GetPosition(richTextBox)
Dim pos = richTextBox.ActiveEditorPresenter.GetDocumentPositionFromViewPoint(point)
Dim container As New InlineUIContainer()
container.UiElement = New CheckBox() With {.Content = "Testing"}
container.Height = 25
container.Width = 70
ctype(pos.GetCurrentInline().Parent,Paragraph).Inlines.Add(container)
Kind regards,
Neil
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