<
telerik:RadChart
Name
=
"telerikChart"
>
<
telerik:RadChart.DefaultSeriesDefinition
>
<
Charting:ScatterSeriesDefinition
/>
</
telerik:RadChart.DefaultSeriesDefinition
>
<
Controls:RadContextMenu.ContextMenu
>
<
Controls:RadContextMenu
x:Name
=
"chartContextMenu"
>
<
Controls:RadMenuItem
Name
=
"miTooltipFormat"
Header
=
"Precision"
/>
<
Controls:RadMenuItem
Name
=
"miXStrip"
Header
=
"X axis strip lines"
IsCheckable
=
"True"
Checked
=
"miXStrip_Checked"
Unchecked
=
"miXStrip_Checked"
/>
<
Controls:RadMenuItem
Name
=
"miYStrip"
Header
=
"Y axis strip lines"
IsCheckable
=
"True"
Checked
=
"miYStrip_Checked"
Unchecked
=
"miYStrip_Checked"
/>
<
Controls:RadMenuItem
Name
=
"miExport"
Header
=
"Export"
Click
=
"ctxExportMenuItem_Click"
/>
</
Controls:RadContextMenu
>
</
Controls:RadContextMenu.ContextMenu
>
</
telerik:RadChart
>
<
Window
x:Class
=
"AbstractionPOC.Window1"
Title
=
"Window1"
Height
=
"500"
Width
=
"900"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
>
<
StackPanel
>
<
ComboBox
x:Name
=
"viewFields"
Grid.Column
=
"2"
ItemsSource
=
"{Binding Columns, ElementName=orderView}"
>
<
ComboBox.ItemTemplate
>
<
DataTemplate
>
<
CheckBox
Content
=
"{Binding Header}"
IsChecked
=
"{Binding IsVisible, Mode=TwoWay}"
/>
</
DataTemplate
>
</
ComboBox.ItemTemplate
>
</
ComboBox
>
<
telerik:RadGridView
Grid.Row
=
"1"
Grid.ColumnSpan
=
"4"
x:Name
=
"orderView"
SelectionMode
=
"Extended"
EditTriggers
=
"None"
AutoGenerateColumns
=
"True"
>
</
telerik:RadGridView
>
</
StackPanel
>
</
Window
>
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Text;
using
System.Windows;
using
System.Windows.Controls;
using
System.Windows.Data;
using
System.Windows.Documents;
using
System.Windows.Input;
using
System.Windows.Media;
using
System.Windows.Media.Imaging;
using
System.Windows.Shapes;
using
System.Collections.ObjectModel;
namespace
AbstractionPOC
{
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
public
partial
class
Window1 : Window
{
public
ObservableCollection<CustomerOrder> CustomerOrders
{
get
;
set
;
}
public
Window1()
{
InitializeComponent();
CustomerOrders =
new
ObservableCollection<CustomerOrder>
{
new
CustomerOrder() {CustomerName=
"David Blaine"
, CustomerPONumber=
"PO123"
, PharmacyNotes=
"Some Pharmacy Notes"
, PrescriptionNumber=
"12345"
, ProductName=
"Cetrizine"
, ShipToId=387541},
new
CustomerOrder() {CustomerName=
"John Ruth"
, CustomerPONumber=
"PO654"
, PharmacyNotes=
"Some Other Notes"
, PrescriptionNumber=
"67890"
, ProductName=
"Brufen"
, ShipToId=12387},
new
CustomerOrder() {CustomerName=
"Jane Doe"
, CustomerPONumber=
"PO325"
, PharmacyNotes=
"More Pharmacy Notes"
, PrescriptionNumber=
"54321"
, ProductName=
"Crocin"
, ShipToId=65879},
new
CustomerOrder() {CustomerName=
"Robert Frost"
, CustomerPONumber=
"PO698"
, PharmacyNotes=
"Some More Notes"
, PrescriptionNumber=
"19875"
, ProductName=
"Paracetamole"
, ShipToId=234578},
new
CustomerOrder() {CustomerName=
"Tim Ferriss"
, CustomerPONumber=
"PO568"
, PharmacyNotes=
"Some Notes"
, PrescriptionNumber=
"15485"
, ProductName=
"Tetracycline"
, ShipToId=286541},
};
orderView.ItemsSource = CustomerOrders;
}
}
}
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Text;
namespace
AbstractionPOC
{
public
class
CustomerOrder
{
public
string
CustomerName
{
get
;
set
;
}
public
string
ProductName
{
get
;
set
;
}
public
string
PharmacyNotes
{
get
;
set
;
}
public
string
CustomerPONumber
{
get
;
set
;
}
public
string
PrescriptionNumber
{
get
;
set
;
}
public
long
ShipToId
{
get
;
set
;
}
}
}
private
static
void
OnRightGridDragOver(
object
sender, DragEventArgs e)
{
Hi,
I have a gridview that is themed with Telerik Windows 7 theme, which is the general theme of the application and gets set at load time. I want to add another grid in the Row Details section, however I want this nested grid to have a different theme for clarity (office black, or the white theme from the WPF Telerik examples). Unfortunately, the nested gridview always take the same theme as the parent one. I have tried to set the style differently, but it didn’t work.
<Style x:Key="RowDetailGridViewStyle" TargetType="{x:Type Controls:RmpReadOnlyGridView}" BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Office_SilverTheme, ElementType=telerik:RadGridView}}">
Any suggestion what I should do?
Regards
<
telerik:RadDocking
x:Name
=
"radDock"
>
<
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
>
<
telerik:RadPaneGroup
>
<
telerik:RadDocumentPane
Header
=
"Document 1"
Title
=
"Document 1"
/>
<
telerik:RadDocumentPane
Header
=
"Document 2"
Title
=
"Document 2"
/>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking.DocumentHost
>
</
telerik:RadDocking
>
StyleManager.SetTheme(radDock,
new
OfficeBlack_Docking());
var collection =
new
ObservableCollection<MyUserControl>();
// Add some items to collection here
myRadComboBox.ItemsSource = collection;
<
telerik:RadComboBox
SelectionBoxTemplate
=
"{StaticResource MyUserControlDataTemplate}"
ItemTemplate
=
"{StaticResource MyUserControlDataTemplate}"
/>
<
DataTemplate
x:Key
=
"MyUserControlDataTemplate"
>
<
TextBlock
Text
=
"{Binding Name}"
/>
</
DataTemplate
>
My requirement is to set the visibility of RadTreeViewItem. For this sample shared at the http://www.telerik.com/community/forums/wpf/treeview/radtreeviewitem-visibility.aspx post helped me. I modified this sample to incorporate my requirement. I added one more property in BusinessItem for Visibility and bind it with the RadTreeViewItem. But problem is that RadTreeViewItem shows expander button (on left side) even if all its children are set to Collapsed.
I also need to hide expander button for a RadTreeViewItem if all its children are collapsed.