Telerik Forums
UI for WPF Forum
18 answers
630 views
I require grid lines on my graph. My graph contains multiple y-axis and single x-axis.
I am getting vertical grid lines on my graph but unable to get grid lines horizontally for mapping vertical axis.
Can u help me to get that  grid lines vertically? please provide an example.
sai
Top achievements
Rank 1
 answered on 04 Jun 2015
3 answers
108 views

Hallo everybody,

 I'd like to ask you about copy and paste RadDiagramContainerShape. In my scenario i have to types of containershapes. First is just collapsible container containes one shape displaying some data, 2nd type is using like group (contains other shapes and connections). When i  try copy and paste theese shapes, it creates just blank and empty container with no style and no content. Could you give me please some advice how to handle it?

 

thank you for your approach.

Greetings

Jakub Rautner

Peshito
Telerik team
 answered on 04 Jun 2015
3 answers
64 views

I have been going over the TileView control in the examples and this is what I need.  I am trying to create a project that needs to have that Windows 8.1 feel and the tiles are a great way for this program to look like this.  I would like to set up my program to start with a login, then when approved, display the tiles for the steps that need to be done to gather the data.  Each tile will represent a single page on a nine page report that will require data to be input.  The report looks like the spreadsheet control.  When all the data has been entered and validated, the users could shrink the tile or just open the next one.  If the data is complete and validated then I would like an icon in the tile header to indicate that page of the report is done and validated.  Once all the data is entered and validated, I would then save the data to a local text file that would be processed when the program goes online. 

Any help is appreciated.

John
Top achievements
Rank 1
 answered on 03 Jun 2015
1 answer
87 views
Dear All;
 
I tried a radial menu and it's working ok, but i failed to pass parameter from a textblock value using 


CommandParameter



when i pass static text, it's working, not when using a value from the textblock
my code is

1.<TextBlock x:Name="txtTest" Canvas.Left="83" TextWrapping="Wrap" Text="Hello" Canvas.Top="19"/>      
2.            <Primitives:RadRadialMenu x:Name="mnuShops" Height="108" Width="102"  RenderTransformOrigin="0.506,0.494" Canvas.Top="-126" Canvas.Left="-132" FontSize="16">
3.                <Primitives:RadialMenuItem x:Name="radialMenuItem" Header="FirstNode"  Command="{Binding FirstCommand, Source={StaticResource Commands}}" CommandParameter="{Binding Text, ElementName=txtTest}"/>
4.                <Primitives:RadialMenuItem Header="Second Node"/>         
5.            </Primitives:RadRadialMenu>
Nasko
Telerik team
 answered on 03 Jun 2015
1 answer
193 views

I've been using the RadTileList for a while and I've not noticed this behaviour with the previous releases (thought I may have just not noticed). However I'm really struggling to deselect a tile after a user clicks on it.

In my main app when a user selects a tile it normally triggers a change to the viewmodel and another view is presented. When I then go back to the main view no tiles are selected, which is as desired.

But I have a tile that triggers a background process, spawns another window and makes the tile disabled. It still show selected though. When the process finishes the tile is enabled again, but it's still selected. The enable/disable is done by a viewmodel binding, so it's all automatic.

In my app I've just been setting the SelectedItem to null and it's appeared to behave how I want. I've just created a brand new project and tried to get the deselection working in isolation and I just cannot get it to deselect. 

 This is the WPF:

<telerik:RadTileList HorizontalAlignment="Left" Margin="105,113,0,0" VerticalAlignment="Top" SelectionChanged="RadTileList_SelectionChanged">
    <telerik:Tile x:Name="TileA" Background="#FFC71D1D">
        <TextBlock Text="Tile A"/>
    </telerik:Tile>
 
    <telerik:Tile x:Name="TileB" Background="#FF3FB812">
        <TextBlock Text="Tile B"/>
    </telerik:Tile>
    <telerik:Tile x:Name="TileC" Background="#FF2439BF">
        <TextBlock Text="Tile C"/>
    </telerik:Tile>
</telerik:RadTileList>

 This is the code in the .cs file: 

private void RadTileList_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
    if (e.AddedItems.Count > 0)
    {
 
        var theTiles = sender as RadTileList;
 
        if (theTiles.SelectedItem == TileA)
        {
            //do some stuff here
        }
 
        if (theTiles.SelectedItem == TileB)
        {
            //do some stuff here
        }
 
        theTiles.SelectedItem = null;               
    }
}

 

In my app the tile just doesn't get deselected, but in this demo I end up in an infinite loop, where the SelectionChanged event is constantly triggered.

I figure I must be doing something pretty wrong for this not to work.

Any clues? or indeed how I should automatically deselect the item?

BTW: I've looked at removing the styling for the selection, but it is still actually selected so the user has to click several times for it to silently deselect then select again, which isn't desirable.

 

 

 

 

 

 

 

 

Maya
Telerik team
 answered on 03 Jun 2015
3 answers
90 views

Hi,

 

I'm using the latest version of Telerik and the Office2013 theme and when I set the IsReadOnly = True, the border become hidding. I would like to set a specific color when a control become ReadOnly.

 

Thank's

Alain

Dimitrina
Telerik team
 answered on 03 Jun 2015
6 answers
200 views

while editing treeview,if I Edit(give) duplicate name it should return oldname for selected node. 

please help me how to fix.

Regards,

Ranjith

 

 

Martin Ivanov
Telerik team
 answered on 03 Jun 2015
5 answers
750 views

I have a scenario where I apply a custom RadListBoxItem DataTemplate to my ListBox which has been working correctly for months if not years.

I have been trying our program on a touch device for the first time (Surface Pro 2) and realised I cannot select any item (with touch) without causing the program to crash.

I have broken the fault down to a far simpler program which still shows the same problem.

 

<telerik:RadListBox x:Name="lstmain"/>
 
Dim DT As New DataTemplate With {.DataType = GetType(RadListBoxItem), .VisualTree = New FrameworkElementFactory(GetType(RadListBoxItem))}
lstmain.ItemTemplate = DT
lstmain.ItemsSource = Results

 

Results is a returned observable collection of C_SearchItem

 

Dim Results As New ObservableCollection(Of C_SearchItem)

 

Public Class C_SearchItem    

    Public ErrorCode As Integer

End Class

 

Using the above code. (RadListBox with default RadListBoxItem) causes the below error.

Object reference not set to an instance of an object.
 
   at Telerik.Windows.Controls.Internal.ListBoxTouchableElement.TapDown(TapDownArguments args)
   at Telerik.Windows.Input.Touch.TouchableElements.TapTouchableElementBase.Telerik.Windows.Input.Touch.TouchableElements.ITapTouchableElement.TapDown(TapDownArguments args)
   at Telerik.Windows.Input.Touch.GestureHandlers.TapGestureHandler.TapUp(Point point)
   at Telerik.Windows.Input.Touch.TouchHandler.RegisterTouchUp(TouchHandlerArgs args)
   at Telerik.Windows.Input.Touch.TouchHandlersController.RegisterTouchUp(Point point, TouchPoint[] touchPoints, Boolean& handled)
   at Telerik.Windows.Input.Touch.TouchHandlersController.Owner_TouchUp(Object sender, TouchEventArgs e)
   at System.Windows.Input.TouchEventArgs.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.RaiseTrustedEvent(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.TouchDevice.RaiseTouchUp()
   at System.Windows.Input.TouchDevice.ReportUp()
   at System.Windows.Input.StylusLogic.PromoteMainUpToTouch(StylusDevice stylusDevice, StagingAreaInputItem stagingItem)
   at System.Windows.Input.StylusLogic.PromoteMainToTouch(ProcessInputEventArgs e, StylusEventArgs stylusEventArgs)
   at System.Windows.Input.StylusLogic.PromoteMainToOther(ProcessInputEventArgs e)
   at System.Windows.Input.StylusLogic.PostProcessInput(Object sender, ProcessInputEventArgs e)
   at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.StylusLogic.InputManagerProcessInput(Object oInput)
   at System.Windows.Input.StylusLogic.PreProcessInput(Object sender, PreProcessInputEventArgs e)
   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, WindowMessage 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, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   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 ShieldServices1._7.App.Main() in C:\Applications\ShieldServices1.7\ShieldServices1.7\App.xaml.vb:line 25

 

If I replace RadListBox with the standard ListBox as follows there is no error.

<ListBox x:Name="lstmain"/>
 
Dim DT As New DataTemplate With {.DataType = GetType(ListBoxItem), .VisualTree = New FrameworkElementFactory(GetType(ListBoxItem))}
lstmain.ItemTemplate = DT
lstmain.ItemsSource = Results

 

I am using the latest release v.2015.1.401.45

 

Regards

 

Shaun Critten

Geri
Telerik team
 answered on 03 Jun 2015
1 answer
122 views

Hi,

 I have the following code 

<telerik:RadScheduleView  x:Name="ScheduleView"
                                   AppointmentsSource="{Binding Workdays, Mode=OneWay}"
                                   SpecialSlotsSource="{Binding ReadOnlySlots, Mode=OneWay}"
                                   ResourceTypesSource="{Binding AccountResourceTypes, Mode=OneWay}"
                                   CategoriesSource="{Binding Categories, Mode=OneTime}"
                                   CurrentDate="{Binding CurrentDate, Mode=TwoWay}"
                                   IsInlineEditingEnabled="False"
                                   ShowAppointmentDeleteButton="False"
                                   Grid.Column="1"
                                   ShowDialog="RadScheduleViewShowDialog"
                                   Visibility="{Binding HasAccounts, Converter={StaticResource 
                                    BoolToVisibilityConverter}}"
                                   FirstDayOfWeek="Monday" Margin="0,-1,0,1"
                                   MinAppointmentHeight="80"  >

But every time i hover over an appointment it changes its background color and stays this way,

how can I turn this off, i attached an image to demonstrate ist.

Nasko
Telerik team
 answered on 03 Jun 2015
1 answer
309 views

I have a RadGridView with a default sort-order.

When the user clicks on some of the columns, I want the default ascending sort order as the first sort order selected (as it is out of the box).

But for other columns, the user almost always wants them selected descending. This means that right now the user needs to click the column header two times (or more, if they system is a bit slow and they happen to click multiple times in anger).

That is, for a few column I would like to have:

* descending -> ascending -> none

instead of:

* ascending -> descending -> none.

I know that I can make a propery on the viewmodel which returns (Int32.MaxValue - myvalue) and use SortMemberPath, but then the arrow on the header would point in the wrong direction (it would tell the user ascending but the data would be sorted descending).

 

 Is there any way to tell individual columns, that I want the first selected sort order to be descending?

 

Thanks,

Dimitrina
Telerik team
 answered on 02 Jun 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?