Telerik Forums
UI for WPF Forum
1 answer
110 views
I'm new on RadMap.
How to change language for Bing Map ?

I found on silverlight control
http://www.microsoft.com/maps/isdk/silverlight/#MapControlInteractiveSdk.Tutorials.ShowMap.ShowMapWithCulture
Andrey
Telerik team
 answered on 14 Mar 2011
1 answer
117 views
When we should make our own navigationbuttons, then what kind of command could we write in the on-click-event?

private void GoEastClick(object sender, RoutedEventArgs e)
{
    RadMap1.....?
}
Andrey
Telerik team
 answered on 14 Mar 2011
1 answer
115 views

Hi

Iam Using RadPanelbar Control  Which is Mouseleftdown event not work



Regards
S.SenthilNathan
Petar Mladenov
Telerik team
 answered on 14 Mar 2011
2 answers
80 views
I've tried creating an style but it's not working:

<Style TargetType="{x:Type telerik:RadDatePicker}">
    <Setter Property="DateTimeWatermarkContent" Value="" />
</Style>

How can I create a style or make it easy so that I don't have to explicitly for each raddatepicker?

Thanks in advance.
Sergi
Top achievements
Rank 1
 answered on 14 Mar 2011
7 answers
224 views
Hello,
I am running into the error: "The type 'DataRowView' does not contain a public property named 'UnitColumn'" error when trying to edit a cell in the radGridView cell.  I am dynamically creating a DataTable to bind to.  I have copied the xaml, along with the codebehind for a small sample that illustrates the issue. 
Thanks for your help!

Rob

 

 

<Window x:Class="GridSpike.TestWindow"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
        xmlns:local="clr-namespace:GridSpike"
        Title="ViewWindow" Height="400" Width="500">
    <Window.Resources>
        <local:TestViewModel x:Key="context" />
    </Window.Resources>
    <Grid DataContext="{StaticResource context}">
        <telerik:RadGridView 
                ItemsSource="{Binding GridDataView}"
                  
                Grid.Row="0"
                HorizontalAlignment="Stretch" 
                Margin="12,12,12,12" 
                VerticalAlignment="Top" 
                SelectionUnit="Cell" 
                x:Name="GridViewTest" 
                SelectionMode="Extended" FrozenColumnCount="1">
        </telerik:RadGridView>
    </Grid>
</Window>

 

 

 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Text;
  
namespace GridSpike
{
    public class TestViewModel : INotifyPropertyChanged
    {
        public TestViewModel()
        {
            LoadGridDataTable();
        }
  
        private DataView gridDataView;
        public DataView GridDataView
        {
            get
            {
                if (gridDataView == null)
                    gridDataView = new DataView(gridDataTable);
  
                return gridDataView;
            }
        }
  
        private DataTable gridDataTable;
        public DataTable GridDataTable
        {
            get { return gridDataTable; }
            private set
            {
                gridDataTable = value;
                OnPropertyChanged("GridDataTable");
            }
        }
  
  
        private void LoadGridDataTable()
        {
            DataRow row;
            DataTable table = new DataTable();
            table.Columns.Add("UnitColumn", typeof(string));
            table.Columns.Add("01-2011", typeof(decimal));
            table.Columns.Add("02-2011", typeof(decimal));
  
            //Add test data
            for (int i = 0; i < 25; i++)
            {
                row = table.NewRow();
                row[0] = "Row " + i.ToString();
                row[1] = i;
                row[2] = 1 + 1;
                table.Rows.Add(row);
            }
            gridDataTable = table;
        }
  
        #region PropertyChanged Impl
        public event PropertyChangedEventHandler PropertyChanged;
        private void OnPropertyChanged(string property)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }
        #endregion
    }
}

Hristo
Telerik team
 answered on 14 Mar 2011
1 answer
157 views
Hi,

I am looking to implement a three level hierarchy whereby the child grids are determined on the run time. For example if we select an option from a combo box present on the parent grid, it will create a child grid. Similarly we could repeat the same scenario for the child grid as well. I am looking into doing this by creating hierarchical templates for both the parent and the child:

<telerik:RadGridView x:Name="rgvData" CanUserFreezeColumns="False" GridLinesVisibility="Horizontal" ItemsSource="" IsReadOnly="True" AutoGenerateColumns="False">
            <telerik:RadGridView.ChildTableDefinitions>
                <telerik:GridViewTableDefinition />
            </telerik:RadGridView.ChildTableDefinitions>
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding OrderDate}" Header="Order Date" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding EmployeeID}" Header="Employee" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Freight}" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ShipCountry}" Header="Ship Country" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ShipCity}" Header="Ship City" />
            </telerik:RadGridView.Columns>
            <telerik:RadGridView.HierarchyChildTemplate>
                <DataTemplate>
                    <telerik:RadGridView x:Name="RadGridView1" CanUserFreezeColumns="False" AutoGenerateColumns="False" ShowGroupPanel="False" IsReadOnly="True">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding CustomerID}" Header="Customer ID" />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Address}" Header="Address" />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding City}" Header="City" />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Country}" Header="Country" />
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                </DataTemplate>
            </telerik:RadGridView.HierarchyChildTemplate>
        </telerik:RadGridView>
// The Child will host another template that will define it's own child.

What would be the best way to tackle this scenario. Should I just go by creating the grids through code behind? I would like to stick to xaml. Any pointers would help me decide !

Thanks,
Farhan
Ivan Ivanov
Telerik team
 answered on 14 Mar 2011
3 answers
408 views
Hi,

I need to detect when the ActivePane has changed.  And i also need to know how to get the current active pane.  It is important for my project.

Thank you.
Kais
Top achievements
Rank 1
 answered on 14 Mar 2011
1 answer
157 views
The RadComboBox has a "clear selection button" enabling the user to clear the selection of the combobox. Is it possible to do the same thing with the keyboard or do I have to implement that myself?
Valeri Hristov
Telerik team
 answered on 14 Mar 2011
2 answers
138 views
Hi, 

I just realized that in RadTreeListView, when I do right-click using my  mouse, the clicked row doesn't selected like normal .NET GridView.
So how to make the clicked row selected? 

I would like to use the clicked row as the data for context menu event handler.

Regards, 

Arinto
Arinto
Top achievements
Rank 1
 answered on 14 Mar 2011
2 answers
171 views

Hi all,

 

I am planning to use this gauge, However when I run the example it was not work in my application

Its giving me too much errors

 

Any idea?

The code is below and the picture which I need the same is attached



<demo:DynamicBasePage x:Class="Telerik.Windows.Examples.Gauge.Customization.HalfCircleGauges.Example"
                      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                      xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                      xmlns:demo="clr-namespace:Telerik.Examples.Gauge"
                      xmlns:telerikQuickStart="clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=Telerik.Windows.Controls">
    <demo:DynamicBasePage.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Controls.Gauge;component/Themes/Generic.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </demo:DynamicBasePage.Resources>
    <Grid>
        <Border telerikQuickStart:ThemeAwareBackgroundBehavior.IsEnabled="True">
            <telerik:RadGauge x:Name="radGauge">
                <telerik:RadialGauge x:Name="radialGauge"
                                         Style="{StaticResource Office_BlackRadialGaugeHalfCircleNStyle}">
                    <telerik:RadialScale x:Name="radialScale"
                                             Style="{StaticResource Office_BlackRadialScaleHalfCircleNStyle}">
                        <telerik:RadialScale.MajorTick>
                            <telerik:MajorTickProperties />
                        </telerik:RadialScale.MajorTick>
                        <telerik:RadialScale.MiddleTick>
                            <telerik:MiddleTickProperties Length="0.05" TickWidth="0.2" />
                        </telerik:RadialScale.MiddleTick>
                        <telerik:RadialScale.MinorTick>
                            <telerik:MinorTickProperties Length="0.03" TickWidth="0.3" />
                        </telerik:RadialScale.MinorTick>
                        <telerik:IndicatorList>
                            <telerik:Needle x:Name="needle"
                                                IsAnimated="True"
                                                Value="65"/>
                        </telerik:IndicatorList>
                    </telerik:RadialScale>
                </telerik:RadialGauge>
            </telerik:RadGauge>
        </Border>
    </Grid>
  
    <telerikQuickStart:QuickStart.ConfigurationPanel>
        <StackPanel Margin="3">
            <TextBlock>Gauge orientation</TextBlock>
            <telerik:RadComboBox x:Name="gaugeStyle"
                                 SelectionChanged="gaugeStyle_SelectionChanged"
                                 Margin="0,2">
                <telerik:RadComboBoxItem DataContext="HalfCircleN" Content="North"/>
                <telerik:RadComboBoxItem DataContext="HalfCircleS" Content="South"/>
                <telerik:RadComboBoxItem DataContext="HalfCircleE" Content="East"/>
                <telerik:RadComboBoxItem DataContext="HalfCircleW" Content="West"/>
            </telerik:RadComboBox>
        </StackPanel>
    </telerikQuickStart:QuickStart.ConfigurationPanel>
</demo:DynamicBasePage>



Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports System.Windows
Imports System.Windows.Controls
Imports Telerik.Windows.Controls
Imports Telerik.Examples.Gauge
  
Namespace Telerik.Windows.Examples.Gauge.Customization.HalfCircleGauges
    ''' <summary>
    ''' Interaction logic for Example.xaml
    ''' </summary>
    Public Partial Class Example
        Inherits DynamicBasePage
        Public Sub New()
            InitializeComponent()
  
            Me.gaugeStyle.SelectedIndex = 0
        End Sub
  
        Protected Overloads Overrides Sub NewValue()
            needle.Value = radialScale.Min + (radialScale.Max - radialScale.Min) * rnd.NextDouble()
        End Sub
  
        Private Sub gaugeStyle_SelectionChanged(sender As Object, e As SelectionChangedEventArgs)
            If gaugeStyle IsNot Nothing AndAlso gaugeStyle.SelectedItem IsNot Nothing Then
                Dim styleName As String = DirectCast(TryCast(gaugeStyle.SelectedItem, RadComboBoxItem).DataContext, String)
  
                radGauge.Width = 340
                radGauge.Height = 200
  
                If styleName.EndsWith("E") OrElse styleName.EndsWith("W") Then
                    Dim tmp As Double = radGauge.Width
                    radGauge.Width = radGauge.Height
                    radGauge.Height = tmp
                End If
  
                Dim theme As Theme = StyleManager.GetTheme(radGauge)
                If theme Is Nothing Then
                    theme = StyleManager.ApplicationTheme
                End If
  
                Dim themeName As String = "Office_Black"
                If theme IsNot Nothing Then
                    themeName = theme.ToString()
                End If
  
                Dim gaugeStyleName As String = themeName & "RadialGauge" & styleName & "Style"
                Dim scaleStyleName As String = themeName & "RadialScale" & styleName & "Style"
  
                radialGauge.Style = TryCast(Me.Resources(gaugeStyleName), Style)
                radialScale.Style = TryCast(Me.Resources(scaleStyleName), Style)
            End If
        End Sub
    End Class
End Namespace


Thanks in advance
Anoop
Top achievements
Rank 1
 answered on 13 Mar 2011
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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?