Telerik Forums
UI for WPF Forum
6 answers
273 views
I have been going through the Forum and Google tring to find how I get the current Item of the Carousel control.  I need to get one value so that I can proceed to getting my data.  When I pause the program I can see all the item in CurrentItems, but when I try to code CurrentItem.fname that is not an option.  It appear as though this control has changed, but there is still information for the old way along with work arounds that no longer work.  Could you please Help make this Work?

My XAML for just the Carousel is
<telerik:RadCarousel x:Name="RadCarousel"
                                     Background="Transparent"
                                     Margin="10,10,0,0"
                                     Height="72"
                                     VerticalAlignment="Top"
                                     HorizontalScrollBarVisibility="Hidden"
                                     ItemTemplate="{StaticResource CarouselItemTemplate}"
                                     ItemsSource="{Binding}" SelectionChanged="RadCarousel_SelectionChanged"
                                     SelectedItem="{Binding SelectedItem, Mode=TwoWay}">
                    <telerik:RadCarousel.ItemsPanel>
                        <ItemsPanelTemplate>
                            <telerik:RadCarouselPanel Path="{StaticResource horizontalPath}"/>
                        </ItemsPanelTemplate>
                    </telerik:RadCarousel.ItemsPanel>
                </telerik:RadCarousel>

 

 

 




my Code behind is this

public void LoadSalesPerson(object sender, RoutedEventArgs e)
        {
            DataClasses1DataContext conn = new DataClasses1DataContext();
            List<GetSalesPeopleResult> getSalesPeopleResults = (from s in conn.GetSalesPeople()
                                                                select s).ToList();
 
            RadCarousel.ItemsSource = getSalesPeopleResults;
        }
 
        private void RadCarousel_SelectionChanged(object sender, Telerik.Windows.Controls.SelectionChangeEventArgs e)
        {
 
            int index = RadCarousel.Items.IndexOf(RadCarousel.SelectedItem);
            int smm = RadCarousel.ElementAt(index);
             
        }

 

Stefan
Telerik team
 answered on 24 Feb 2015
1 answer
252 views
Hi,

I set SelectionMode = Extended;

If I select a new item of the grid and try to select multiple rows holding the left mouse button everything working as expected (grid select multiple rows). 

But If I select selected row of the grid and try to select multiple rows holding the left mouse button the new selected rows won't be selected. 
How can I implement this behavior?
Yoan
Telerik team
 answered on 24 Feb 2015
5 answers
315 views
Is it possible to attach a search control to the gridview to find values that the user types in? Something like what Find does in MS Word.
Yoan
Telerik team
 answered on 24 Feb 2015
2 answers
84 views
I have written an eventhandler which is getting called on FieldFilterEditorCreated.     Depending on which column the type of the e.Editor changes.   But regardless, when I set a value in the width property of this editor it has no effect.    It comes is as "NaN".    I try to set the value.   It doesn't have any effect.   Even if I set it to a huge number, the size of the filter editor box remains unchanged.

Incidentally I see the FieldFilterEditorCreated event getting called TWICE when I click the funnel.    Both times on entry the value in e.Editor.Width is "Nan" and when I set it both times...still no change.
Yoan
Telerik team
 answered on 24 Feb 2015
4 answers
589 views
Hi,

One of our partners is using Telerik controls in their product, and we are helping them to automate it with Ranorex. Our biggest problem is that, when the programmer uses a RadTabControl then Ranorex sees it as not visible. This makes the automation process way too slow, since recording the elements cannot be done with the tool, but manually.

Did anyone encounter similar problems nowadays? Do you have some kind of clue on how to configure the controlls to make sure that they are visible?

Regards,
Zoltan
Andrey
Top achievements
Rank 1
 answered on 24 Feb 2015
2 answers
81 views
Hello All,

              PivotGrid RowDescription propertyName has Parent-Children relations in my Application.How can I show list of properties of rows as treelistview ?
Erhan
Top achievements
Rank 1
 answered on 24 Feb 2015
1 answer
267 views
I am trying to set the Items of the BreadCrumb programmatically.  When One of the items changes I want the BreadCrumb to display the levels automatically, and not have to click on each item to set it.

I am using the below as a sample snippet.

Data = new ObservableCollection<RadBreadcrumbItem>();

 

            var brian = new RadBreadcrumbItem { Header = "Brian" };

            var bart = new RadBreadcrumbItem { Header = "Bart" };

            var ryan = new RadBreadcrumbItem { Header = "Ryan" };

            var jay = new RadBreadcrumbItem { Header = "Jay" };

 

            ryan.Items.Add(bart);

            ryan.Items.Add(jay);

            brian.Items.Add(ryan);

 

            Data.Add(brian);

            Root = new RadBreadcrumbItem {ItemsSource = Data};

I want it to show by default as Brian/Ryan/Bart

But like this I have to click each item in the BreadCrumb to set the item.

How to do this programtatically?

Kiril Vandov
Telerik team
 answered on 24 Feb 2015
4 answers
82 views
Hi,

When I am dragging the SelectionEnd thumb on my RadTimeBar outside my dialog window I get a NullPointerException.

Maybe I get the exception because I move the mouse outside the window as I move outside the TimeBar.

Do you know of a workaround?

/Ola

Here is the callstack:

   vid Telerik.Windows.Controls.TimeBar.SelectionThumb.get_IsDragging()
   vid Telerik.Windows.Controls.TimeBar.SelectionThumb.OnMouseLeaveRight()
   vid Telerik.Windows.Controls.TimeBar.SelectionThumb.OnMouseMove(Object sender, MouseEventArgs e)
   vid System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   vid System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   vid System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   vid System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   vid System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   vid System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   vid System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   vid System.Windows.Input.InputManager.ProcessStagingArea()
   vid System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   vid System.Windows.Input.MouseDevice.Synchronize()
   vid System.Windows.Input.MouseDevice.OnHitTestInvalidatedAsync(Object sender, EventArgs e)
   vid System.Windows.Input.InputManager.HitTestInvalidatedAsyncCallback(Object arg)
   vid System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   vid MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   vid System.Windows.Threading.DispatcherOperation.InvokeImpl()
   vid System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   vid System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   vid System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   vid System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   vid System.Windows.Threading.DispatcherOperation.Invoke()
Petar Marchev
Telerik team
 answered on 24 Feb 2015
5 answers
128 views
Hi I tried to add ListStyles to a RadDocument so that they are shown in the RadRichTextBoxRibbonUi.

foreach (var style in listStyles)
            {                               
                ListStyle newList = RadDocument.AddCustomListStyle(style);               
                RadDocument.ListStyles.Add(newList);
                RadDocument.ListManager.RegisterListStyleIfNecessary(newList);                               
            }


That is what I'm doing at the moment but it doesn't works.

Sebastian
Top achievements
Rank 1
 answered on 24 Feb 2015
2 answers
88 views
Hello. How to remove edge connectors and leave only center auto connection. We want to prevent user to choose connector.
Max
Top achievements
Rank 1
 answered on 24 Feb 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?