Telerik Forums
UI for WPF Forum
3 answers
71 views
Wasnt there supposed to be a WPF book control also in the Q3 release ?
Valentin.Stoychev
Telerik team
 answered on 09 Nov 2009
1 answer
124 views
Hi, I have a question , I need to move the scroll into a possition in the row  where was selected, this is my code

                                           rgvPatients.SelectedItem = rgvPatients.Items[contRowsPatients];
                                            rgvPatients.ScrollIntoView(rgvPatients.SelectedItem);
                                            rgvPatients.UpdateLayout();

but never update the vertical scroll

Hristo
Telerik team
 answered on 09 Nov 2009
5 answers
248 views
Hi,

.xaml Code:

<

 

telerik:RadCarousel x:Name="rdcTasks" AutoGenerateDataPresenters="False" telerik:StyleManager.Theme="Office_Black" Margin="0,227,0,6" SelectionChanged="rdcTasks_SelectionChanged" Height="179" VerticalAlignment="Bottom" Loaded="rdcTasks_Loaded"></telerik:RadCarousel>

.net code:

 

foreach

 

(TaskQueryService.task objTask in objTasks)  

 

 

this.rdcTasks.Items.Add(objTask);

As the the number of items in the datasource is 4, the control doesnt display any data on the screen. I have to scroll to get the stuff displayed. where as if the items are 8 or more the items are displayed. I have another control with same properties set and its working. (dataitems are 49).

Please reply.

Shweta

 

 

 

Maria Im
Top achievements
Rank 1
 answered on 07 Nov 2009
11 answers
162 views
Hello,

I have a grid connected to a DataView. The DataView has a rowfilter.

I add lines to the DataView by code.

The problem is that if I enter into a cell, change its value and press on Tab, the cell somehow keeps focus (the cell's text is aligned to

the center and pressing on Tab keeps the align to the right of the cell).

This also has a weird effect on that specific row- it disregards the DataView filter.

This does not happen if I input a value to the cell and then move the focus to another cell by

clicking on it and not by the Tab key.


Thanks,

Erez



Nedyalko Nikolov
Telerik team
 answered on 06 Nov 2009
2 answers
102 views
Hello
I cant find the exactly event
but when I "play" with the ComboBox cell I get this exception:

System.Reflection.TargetInvocationException was unhandled
  Message="Exception has been thrown by the target of an invocation."
  Source="mscorlib"
  StackTrace:
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Delegate.DynamicInvokeImpl(Object[] args)
       at System.Windows.RoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       at Telerik.Windows.Controls.GridView.GridViewCell.RaiseCellEditEndedEvent(GridViewEditAction editAction)
       at Telerik.Windows.Controls.GridView.EditContext.CommitValidContent(GridViewCell cell, GridViewCell nextCell)
       at Telerik.Windows.Controls.GridView.EditContext.CommitCellEdit(GridViewCell cell, GridViewCell nextCell)
       at Telerik.Windows.Controls.GridView.EditContext.CommitEdit()
       at Telerik.Windows.Controls.GridView.GridViewCell.HandlePendingEdit()
       at Telerik.Windows.Controls.GridView.GridViewCell.Editor_LostFocus(Object sender, RoutedEventArgs e)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       at System.Windows.UIElement.OnLostFocus(RoutedEventArgs e)
       at System.Windows.UIElement.IsFocused_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
       at System.Windows.DependencyObject.ClearValueCommon(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata)
       at System.Windows.DependencyObject.ClearValue(DependencyPropertyKey key)
       at System.Windows.Input.FocusManager.OnFocusedElementChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
       at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at System.Windows.Input.FocusManager.SetFocusedElement(DependencyObject element, IInputElement value)
       at System.Windows.Input.KeyboardNavigation.UpdateFocusedElement(DependencyObject focusTarget)
       at System.Windows.FrameworkElement.OnGotKeyboardFocus(Object sender, KeyboardFocusChangedEventArgs e)
       at System.Windows.Input.KeyboardFocusChangedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
       at System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
       at System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew)
       at System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
       at System.Windows.UIElement.Focus()
       at Telerik.Windows.Controls.GridView.GridViewDataControl.FocusIfNeeded()
       at Telerik.Windows.Controls.GridView.GridViewDataControl.OnMouseLeftButtonDown(MouseButtonEventArgs e)
       at System.Windows.UIElement.OnMouseLeftButtonDownThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
       at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
       at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at LeumiPortal_csharp.App.Main() in D:\Develop\LeumiAnnualWorkplan\Dev - Current\LeumiAnnualWorkplan\LM_WPF_TEST\obj\Debug\App.g.cs:line 0
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
       at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
       at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
       at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
       at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
       at System.Activator.CreateInstance(ActivationContext activationContext)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: System.NullReferenceException
       Message="Object reference not set to an instance of an object."
       Source="LM_WPF_TEST"
       StackTrace:
            at LeumiPortal_csharp.ActivityInformation.gvCustomersIn_CellEditEnded(Object sender, GridViewCellEditEndedEventArgs e) in D:\Develop\LeumiAnnualWorkplan\Dev - Current\LeumiAnnualWorkplan\LM_WPF_TEST\ActivityInformation.xaml.cs:line 644
       InnerException:
Pavel Pavlov
Telerik team
 answered on 06 Nov 2009
1 answer
126 views

Is there a way to restart the animation that is shown when a chart initially builds?  In other words, on demand animating of the chart?

Thanks
Giuseppe
Telerik team
 answered on 06 Nov 2009
3 answers
111 views
Hi

     i an usin treeview. How can i stop dragdrop between nodes but requies drag drop within a node item.

like
NodeA
        A
        B
        C
        D
NodeB
        E
        F
        G
        H
The item should be dragging within items of NodeA not within Item of NodeA and NodeB
Bobi
Telerik team
 answered on 06 Nov 2009
0 answers
62 views
Hey :)
After trying and failing I decided to ask here.

I would like to add a tool tip on each of Calendar Buttons. Right now I can only add it to the calendar control which does not help.

Please, let me know if you need more clarification.
 
Thank you ;)
Vytautas Smitas
Top achievements
Rank 1
 asked on 06 Nov 2009
3 answers
152 views

Respected Sir,

Problem's Objective:Drag and Drop a row and also multiple row from RadGridview to RadTreeView item . 

Problem's Description : Well , i m having the RadgridView whose itemsource is binded with observableCollection and this GridView's itemsource  changes according to TreeView Item selected. Now i m trying to achieve Draging the gridview's row to TreeView Item but i m not getting the same 

I have viewed several post where by in Radgridview's xaml  Drag and Drop Functionality for its row is set as below:

 

<

 

 

gridView:RadGridView AutoGenerateColumns="True" x:Name="gridView"

 

 

 

 

UseAlternateRowStyle="False" dragDrop:RadDragAndDropManager.AllowDrop="True"

 

 

 

 

Grid.Column="1" Margin="30">

 

 

 

 

<gridView:RadGridView.RowStyle>
<Style TargetType="gridViewElements:GridViewRow">

 

 

 

 

<Setter Property="dragDrop:RadDragAndDropManager.AllowDrag" Value="True" />

 

 

 

 

</Style>

 

 

 

 

</gridView:RadGridView.RowStyle>

 

 

 

 

</gridView:RadGridView>

 

 

 

 

 
I want above thing in programatic way in code bind file in c#.

Also i m not to get the visibilty of Draging the row... i have done following things

 

 

RadDragAndDropManager.AddDragQueryHandler(this.gvEmail, OnDragQuery);

 

 

RadDragAndDropManager.AddDragInfoHandler(this.gvEmail, OnDragInfo);

 

 

EventManager.RegisterClassHandler(typeof(GridViewRow), RadDragAndDropManager.DropQueryEvent, new EventHandler<DragDropQueryEventArgs>(OnGridViewRowDropQuery));

 

 

EventManager.RegisterClassHandler(typeof(GridViewRow), RadDragAndDropManager.DropInfoEvent, new EventHandler<DragDropEventArgs>(OnGridViewRowDropInfo));

 

 


 

 

void gvEmail_RowLoaded(object sender, RowLoadedEventArgs e)

 

{

 

if (e.Row is GridViewHeaderRow || e.Row is GridViewNewRow || e.Row is GridViewFooterRow)

 

 

return;

 

 

var row = e.Row as GridViewRow;

 

 

this.InitializeRowDragAndDrop(row);

 

 

}

 

private void InitializeRowDragAndDrop(GridViewRow row)

 

{

 

if (row == null)

 

 

return;

 

row.SetValue(

RadDragAndDropManager.AllowDragProperty, true);

 

 

//row.SetValue(RadDragAndDropManager.AllowDropProperty, true);

 

}

 


As i m newbie to the Telerik please give your valuable suggestions.

Thanks in advance.

Miral Shah

Miroslav
Telerik team
 answered on 06 Nov 2009
7 answers
119 views
Hello,

I just upgraded to 2009.Q3 and, I'm struggling with the migration from Q2 to Q3.  Is there any good resource I can go to "do what I did with Q2 in Q3"?   A translation from the obsolete properties/methods to the new ones would be highly appreciated

Ok, the concrete issue I'm seeing right now is related to the code below (minimalist version):

myGrid.ItemsSource = myDataTable;
myGrid.AutoGeneratingColumn += myGrid_AutoGeneratingColumn;

After performing these operations, I see that myDataTable.Columns.Count = 25 and myGrid.Columns.Count = 0, and the event handler AutoGeneratingColumn is never executed.

Please help,
Marco
Vlad
Telerik team
 answered on 06 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?