Telerik Forums
UI for WPF Forum
1 answer
138 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
981 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
287 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
118 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
81 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
170 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
2 answers
87 views
Hi,

I have an application with a GridView that contains the Add new item button (ShowInsertRow="True")
I'm trying to create an UITest in which this button is pressed but "Coded UI Test Builder" cannot locate it.

How can I do it?
Yordanka
Telerik team
 answered on 23 Dec 2010
2 answers
172 views
Hi

How to get controls from datatemplate column at time of new data add . I am getting row details then try through findname function but not finding the control details

My Code snipped
<telerik:RadGridView >
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Width="Auto" >
                        <telerik:GridViewDataColumn.CellTemplate>
                            <DataTemplate>
                                <WrapPanel x:Name="ActionPanel"></WrapPanel>
                            </DataTemplate>
                        </telerik:GridViewDataColumn.CellTemplate>
                      </telerik:GridViewDataColumn>
                   </telerik:RadGridView.Columns>
        </telerik:RadGridView>

I want find "ActionPanel" at time of click of button for Adding New Data

Thanks
Vijay Kumar
Vijay
Top achievements
Rank 1
 answered on 23 Dec 2010
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?