Telerik Forums
UI for WPF Forum
7 answers
152 views

What event of the rad Carousel can I use to track the currently selected item’s index when it changes?

 

I need to track the selected item’s index in the Carousel control for both the mouse and keyboard whenever the Carousel item is changed to another item. For example, just like in a list box, the selected item changed event is raised letting you read the currently selected item’s index.

 

 

I noticed that the Carousel control has buttons that you can move to next, previous, last, first, etc. but there are no button click events for those buttons  on the Carousel control itself.

 

So again, I just need a way to perform the following task using a Carousel control event:

 

1.        The currently selected item changes to a new item

2.  I then can get the new selected item’s index of the Carousel control

 

 

And again, I need to do this task no matter if it is the keyboard, the mouse, the mouse wheel, the click of the mouse, etc. I just need an event to help me get the currently selected item’s index.

 

Note: I am not using the most recent version of the telerik controls. I think I am one or two versions prior.

 

Help!

 

Bill

Bill
Top achievements
Rank 1
 answered on 14 Dec 2009
4 answers
265 views
I'm having some problems with the IsHidden property of the RadPane. I cannot seem to get a RadPane to show again once the user has clicked the hide cross button.

I have tried doing the following:

  1. Have a RadPane in a RadDocking.
  2. Click the hide cross button.
  3. Have a menu item with an event handler in the code behind of the window.
  4. In the event handler:
    this.myRadPane.IsHidden = false

The IsHidden is set and is even serialized if I use SaveLayout() on the docking. But the panel doesn't show up. Am I missing something here?

Regards,
// Martin
Östemar
Top achievements
Rank 2
 answered on 14 Dec 2009
2 answers
116 views
I'm sorry for "Cross Posting" but I put this in the wrong forum originally
I'm using the numeric up down for several measurement entries, the user is able to use the "." key on the numeric keypad, but not the "." key on the alphabet keyboard (next to the "," key and the shift key).

is there a reason that the period key isn't allowed, and how do I get past it.  this is a big problem for my users, as they all use laptops with no "numeric keypad".
Is there a workaround?

Thank you

Joshua
joshua odell
Top achievements
Rank 1
 answered on 14 Dec 2009
4 answers
195 views
Hi,

I'm new to Telerik RAD tools, and I have a couple newbie questions:

1) I'm trying to figure out how to decrease the size of the points on a line chart.  I'd like them to go away completely, or make them so small the line masks where they are.  Is there a way to turn them off?

2) I'd like to know where it is you can change what kind of chart you're working with.  Right now, I have a LineArea chart, and I'd like to change it to just a Line chart.  For me, the default is line area, and I need the fill area beneath the line to be clear.

3) I'd also like to know how you set the speed of the animation of the line. Right now I have the animation disabled, but it would be nice to have it animate EXTREMELY fast.  Right now we have 600 points on a line graph, and I'd like to animate those points (3 major peaks) in about 3 seconds... and then perhaps repeat.  (We're simulating a heart beat EKG)

Any advice or help would be much appreciated.  Thanks so much! 

Greg
Roxana C
Top achievements
Rank 1
 answered on 14 Dec 2009
1 answer
73 views
GridViewControl - how to load data to it from simple datatable..? There is not such a trick as DataSource, as it was in winforms. DataBinding is the only way to do that?
Vlad
Telerik team
 answered on 14 Dec 2009
1 answer
91 views
I'm using the numeric up down for several measurement entries, the user is able to use the "." key on the numeric keypad, but not the "." key on the alphabet keyboard (next to the "," key and the shift key).

is there a reason that the period key isn't allowed, and how do I get past it.  this is a big problem for my users, as they all use laptops with no "numeric keypad".
Is there a workaround?

Thank you

Joshua
Konstantina
Telerik team
 answered on 14 Dec 2009
1 answer
98 views

If the user manually enters "0" in the date textbox and lost focus from date picker , app crashes. 

Its seems to crash only with "0"...it does allow the "1" or "2"..or even allows the user to select a NE entry date from the calendar menu but manually delete almost the whole of it.

Error : Year, Month, and Day parameters describe an un-representable DateTime.

'

You can check in Telerik C# sample exe also. It simply crash when you enter '0' in datepicker and lost focus.

Please advice me how to solve or atleast how to stop manual entry in that control asap. We have release soon.

Konstantina
Telerik team
 answered on 14 Dec 2009
1 answer
72 views
Hello

I have a grid with checkBox column
I want to find all the rows
where the user select the checkBox
(something like foreach..
so I can save the ID's of the selected rows in an array)

thanks
Vlad
Telerik team
 answered on 14 Dec 2009
1 answer
34 views
What are the new classes I can used alternatively? I cast a Record to a DataRecord to access its Data property currently.

SelectedRecords and its CollectionChanged event are gone...


Vlad
Telerik team
 answered on 14 Dec 2009
6 answers
156 views
I'm getting strange results with the gridview when I maximize my window and the Gridview has data.  I can't figure out why it's happening (because sometimes maximizing the window works just fine and sometimes it doesn't).  Here's the stack trace:

System.NullReferenceException was unhandled  
  Message="Object reference not set to an instance of an object." 
  Source="Telerik.Windows.Controls.GridView" 
  StackTrace:  
       at Telerik.Windows.Controls.GridView.GridViewCellsPanel.ArrangeChild(UIElement child, Int32 displayIndex, ArrangeState arrangeState) in c:\Builds\WPF_Scrum\GridView_WPF\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 1599  
       at Telerik.Windows.Controls.GridView.GridViewCellsPanel.ArrangeOverride(Size arrangeSize) in c:\Builds\WPF_Scrum\GridView_WPF\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 1536  
       at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)  
       at System.Windows.UIElement.Arrange(Rect finalRect)  
       at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)  
       at System.Windows.Controls.ItemsPresenter.ArrangeOverride(Size arrangeSize)  
       at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)  
       at System.Windows.UIElement.Arrange(Rect finalRect)  
       at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)  
       at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)  
       at System.Windows.UIElement.Arrange(Rect finalRect)  
       at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)  
       at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)  
       at System.Windows.UIElement.Arrange(Rect finalRect)  
       at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)  
       at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)  
       at System.Windows.UIElement.Arrange(Rect finalRect)  
       at System.Windows.ContextLayoutManager.UpdateLayout()  
       at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)  
       at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()  
       at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()  
       at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)  
       at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)  
       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.DispatcherOperation.InvokeImpl()  
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)  
       at System.Threading.ExecutionContext.runTryCode(Object userData)  
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)  
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)  
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)  
       at System.Windows.Threading.DispatcherOperation.Invoke()  
       at System.Windows.Threading.Dispatcher.ProcessQueue()  
       at System.Windows.Threading.Dispatcher.WndProcHook(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 Tracker.App.Main() in C:\_projects\R2C\Tracker\Tracker\obj\Debug\App.g.cs:line 0  
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)  
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)  
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()  
       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:   
 
udit handa
Top achievements
Rank 1
 answered on 14 Dec 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?