Telerik Forums
UI for WPF Forum
1 answer
125 views
Hi,

Can u provide a working demo for a stacked area chart( assuming that the a stacked area chart is nothing but a sand chart).

Your help is greatly appreciated

Thanks
Abid
Bartholomeo Rocca
Top achievements
Rank 1
 answered on 23 Dec 2010
1 answer
71 views
Hi,
       having any rad text box in telerik?  Bcoz i am using all controls in telerik only.
in my doupt is here i am using Radcombo,Raddatetimepicker  and also i want text box.

if suppose i am using visual studio text box then the radcontrols property will also set text box?

please give me correct solution in my problem?
Vanya Pavlova
Telerik team
 answered on 23 Dec 2010
1 answer
128 views
Hello,

for the last two days I tried to follow the instructions from

http://www.telerik.com/support/kb/wpf/scheduler/how-to-implement-a-new-custom-theme-in-a-few-steps.aspx

and try to adapt these for RadGridView.

Unfortunately there are a many XAML template files and the I am not able to get it working.

Can you help me?

Kind regards,
Michael
Vanya Pavlova
Telerik team
 answered on 23 Dec 2010
1 answer
956 views
Hi ,
   I need previous tab name when i am switching to new tab in Tab SelectionChanged event.
   Suggest me how can i get that

Thanks,
Swathi.
Petar Mladenov
Telerik team
 answered on 23 Dec 2010
1 answer
284 views
hello,
i am new to SL development. i have bulit a SL navigation project and placed a radial gauge in it. can you please show me how to pass values to the gauge that makes the needle move  in the code behind.
thanks

home.xaml code
  
xmlns:mc=http://schemas.openxmlformats.org/markup-compatibility/2006
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
xmlns:telerik=http://schemas.telerik.com/2008/xaml/presentation
mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"
Title="Home"
  
Style="{StaticResource PageStyle}">
  
<Grid x:Name="LayoutRoot">
  
<ScrollViewer x:Name="PageScrollViewer" Style="{StaticResource PageScrollViewerStyle}">
  
<StackPanel x:Name="ContentStackPanel">
  
<TextBlock x:Name="HeaderText" Style="{StaticResource HeaderTextStyle}" 
  
Text="Home"/>
  
<TextBlock x:Name="ContentText" Style="{StaticResource ContentTextStyle}" 
  
Text="Home page content"/>
  
  
<!--main RadGauge root container --> 
  
<telerik:RadGauge Name="radGauge" Width="300" Height="300">
  
<!-- Add RadialGauge container to the internal RadGauge layout. -->
  
<telerik:RadialGauge>
  
<!-- Now you can insert RadialScale object into the radial gauge container for further configuration. For example, you can set Min and Max properties of the scale: -->
  
<telerik:RadialScale Name="radialScale" Min="0" Max="1000">
  
<!-- The last object you have to add is indicator (for example, needle indicator). You have to insert the list of the indicators to the radial scale object and then add needle indicator there: -->
  
<telerik:IndicatorList>
  
  
<telerik:Needle Name="needle" Value="100"/>
  
  
</telerik:IndicatorList>
  
</telerik:RadialScale>
  
</telerik:RadialGauge>
  
</telerik:RadGauge>
  
  
</StackPanel>
  
</ScrollViewer>
  
</Grid>
  
</navigation:Page>
  
home.xaml.cs
  
  
  
using System;
  
  
using System.Collections.Generic;
  
  
using System.Linq;
  
  
using System.Net;
  
  
using System.Windows;
  
  
using System.Windows.Controls;
  
  
using System.Windows.Documents;
  
  
using System.Windows.Input;
  
  
using System.Windows.Media;
  
  
using System.Windows.Media.Animation;
  
  
using System.Windows.Navigation;
  
  
using System.Windows.Shapes;
  
  
//you have to add telerik using here
  
  
using Telerik.Windows.Controls.Gauges;
  
  
using Telerik.Windows.Controls;
  
  
  
namespace thermometerNavigation
  
{
  
public partial class Home : Page
  
  
{
  
public Home()
  
{
  
InitializeComponent();
  
  
}
  
// Executes when the user navigates to this page.
  
  
protected override void OnNavigatedTo(NavigationEventArgs e)
  
{
  
}
  
}
  
}
Andrey
Telerik team
 answered on 23 Dec 2010
1 answer
115 views
I need to call BringDataItemIntoView on the RadCarousel control, but I do not want it to animate. I have this need because I want the Carousel to remember the last selected item and bring that item to center when it reloads, but I do not want it re-animate. My carousel is defined like so:

<telerik:RadCarousel Name="Scenes" Background="Transparent" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Disabled" Loaded="LoadCarousel">
    <telerik:RadCarousel.ItemsPanel>
        <ItemsPanelTemplate>
            <telerik:RadCarouselPanel AutoLoadItems="false" ItemsPerPage="5" TopContainerChanged="RadCarouselPanel_TopContainerChanged" />
        </ItemsPanelTemplate>
    </telerik:RadCarousel.ItemsPanel>
</telerik:RadCarousel>
Maya
Telerik team
 answered on 23 Dec 2010
0 answers
78 views
hi,
  i am using Radgridview for CRUD operation. I am using Observable Collection of item(having property of itemname, weight) . In that weight property i have to get the value from usb port (now i am displaying the value in a label using data received event) after checking the prev values on edit mode (when the cell enters in edit mode). and also i need to set focus to the end of the row.  how can i implement it.

regards
jagan
Jagan k
Top achievements
Rank 1
 asked on 23 Dec 2010
3 answers
169 views
Hello
In Visual Studio 2010 using WPF, the control RadTabControl not to create RadTabItem visually, is that normal? And when I click on a TabItem the editor, it does not exchange Tab Editor, I have to do it all in XAML without seeing how you're getting in the visual editor, it's normal?
Tina Stancheva
Telerik team
 answered on 23 Dec 2010
3 answers
124 views
Hi,

I have a MVVM application that dynamic generating Charts base on database queries. There is case that we have seriesA(2005, 2006, 2007), seriesB(2005,2006, ...) and seriesC(1999,2000, 2001...2005,2006), since the chart series were set from A to C, the x-axis displayed out of order like '2005, 2006, 2007, 1999, 2000.

Is there a property that can set the chart to start from the earliest year(date) on x-axis ?

Thanks,
Evgeni "Zammy" Petrov
Telerik team
 answered on 23 Dec 2010
1 answer
129 views
Good evening,
I´m trying to build my own map provider. I have my tiles for an specific country.
How could I project my tiles to their proper coordinates?
Provider is working but with wrong coordinates. Below is my code.
Thank you very much,
Esther

Imports System.Collections.Generic
Imports System.IO
Imports System.Linq
Imports System.Text
Imports Telerik.Windows.Controls.Map


Public Class NavteqTilesProvider
    Inherits MapProviderBase
    Private Const TILE_SIZE As Integer = 256
    Private initialized As Boolean
    Private m_tileLocation As String

    ''' <summary>
    ''' Initializes a new instance of the FileSystemProvider class.
    ''' </summary>
    ''' <param name="mode">Map mode.</param>
    ''' <param name="labelVisible">Is labels visible.</param>
    Public Sub New(ByVal tileLocation As String)
        MyBase.New(MapMode.Road, True)

        Me.m_tileLocation = tileLocation

    End Sub

    ''' <summary>
    ''' Initializes a new instance of the FileSystemProvider class.
    ''' </summary>
    Public Sub New()
        Me.New(Nothing)
    End Sub

    ''' <summary>
    ''' Gets or sets location of the map tiles.
    ''' </summary>
    Public Property TileLocation() As String
        Get
            Return Me.m_tileLocation
        End Get

        Set(ByVal value As String)
            Me.m_tileLocation = value
        End Set
    End Property

    ' ''' <summary>
    ' ''' Gets the IsInitialized property.
    ' ''' Indicates that the provider is initialized.
    ' ''' </summary>
   

    ''' <summary>
    ''' Gets value which indicates whether labels are supported by the map provider.
    ''' </summary>
    Public Overrides ReadOnly Property IsLabelSupported() As Boolean
        Get
            Return False
        End Get
    End Property

    ''' <summary>
    ''' Returns the SpatialReference for the map provider.
    ''' </summary>
    Public Overrides ReadOnly Property SpatialReference() As ISpatialReference
        Get
            Return New MercatorProjection()

        End Get
    End Property

    ''' <summary>
    ''' Gets list of the supported map modes.
    ''' </summary>
    ''' <returns>List of the supported map modes.</returns>
    Public Overrides ReadOnly Property SupportedModes() As IEnumerable(Of MapMode)

        Get

            Dim list As New List(Of MapMode)
            list.Add(MapMode.Road)

            Return list


        End Get
    End Property

    ''' <summary>
    ''' Gets the image URI.
    ''' </summary>
    ''' <param name="tileLevel">Tile level.</param>
    ''' <param name="tilePositionX">Tile X.</param>
    ''' <param name="tilePositionY">Tile Y.</param>
    ''' <returns>URI of image.</returns>
    Public Overrides Function GetTile(ByVal tileLevel As Integer, ByVal tilePositionX As Integer, ByVal tilePositionY As Integer) As Uri
        Dim zoomLevel As Integer = ConvertTileToZoomLevel(tileLevel)

        Dim tileFileName As String = String.Format("map_{0}_{1}_{2}.png", tilePositionX, tilePositionY, zoomLevel)
        tileFileName = Path.Combine(Me.TileLocation, tileFileName)

        If File.Exists(tileFileName) Then
            Return New Uri(tileFileName)
        Else
            Return Nothing
        End If
    End Function

    ''' <summary>
    ''' Initialize provider.
    ''' </summary>
    Public Overrides Sub Initialize()
        Me.initialized = MyBase.IsInitialized
    End Sub

    ''' <summary>
    ''' Gets value which indicates whether given mode is supported by map provider.
    ''' </summary>
    ''' <param name="mode">Map mode to check.</param>
    ''' <returns>true if given mode is supported. Otherwise - false.</returns>
    Public Overrides Function IsModeSupported(ByVal mode As MapMode) As Boolean
        Return (mode = MapMode.Road)
    End Function

    ''' <summary>
    ''' MapModeChanged handler.
    ''' </summary>
    Protected Overrides Sub OnMapModeChanged(ByVal oldMode As MapMode, ByVal newMode As MapMode)
        If Not Me.IsSuspended Then
            Me.Initialize()
        End If
    End Sub
End Class

Andrey
Telerik team
 answered on 23 Dec 2010
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?