<
telerik:RadComboBox
Grid.Column
=
"0"
ItemsSource
=
"{Binding Path=DropDownCollectionView}"
IsSynchronizedWithCurrentItem
=
"True"
DisplayMemberPath
=
"Code"
IsEditable
=
"True"
EmptyText
=
"Code"
SelectedItem
=
"{Binding Path=Container.Data, Mode=TwoWay}"
Width
=
"75"
VerticalAlignment
=
"Top"
>
<
i:Interaction.Behaviors
>
<
wpf:RadComboBoxClearTextOnLostFocusWhenSelectedItemIsNull
/>
</
i:Interaction.Behaviors
>
</
telerik:RadComboBox
>
For some reason after set Container.Data ComboBox Text has Object.ToString() value rather than the Object.Code property value however items of combobox dispay proper values.
public TData Data
{
get { return _data; }
set
{
if (_data == value) return;
_data = value;
RaisePropertyChanged();
}
}
public TContainer Container
{
get { return _container; }
private set
{
if (_container == value) return;
_container = value;
RaisePropertyChanged();
}
}
Hello,
I want to build a module with diagram,
in this module,I have two custom shape with textbox and button in the shape ContentTemplate.each shape provide 20 ToolboxItem,I want to achieve the goal when I input text to a textbox or click a button in the diagram,I want to get the text of the textbox or the which button was clicked.
the problem is:
1.in the diagram, there are 20 textbox/button ToolboxItem, how to binding a Property to the textbox/button let me know each textbox's text and which button was clicked.
2.can we binding a DependencyProperty to the textbox or button, and the mode is twoway?
I have looked the Dashboard simple,but I have no idea about this requirement.
Here is the pivotal code:
GenericShapes.xaml:
<Style TargetType="dashboard:TextBoxShape">
<Setter Property="Foreground" Value="Black" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="Width" Value="120" />
<Setter Property="Height" Value="40" />
<Setter Property="MaxWidth" Value="400" />
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<telerik:RadWatermarkTextBox MinWidth="90" MaxWidth="400" LostFocus="ChangeValue"/>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="dashboard:ButtonShape">
<Setter Property="Foreground" Value="Black" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="Width" Value="120" />
<Setter Property="Height" Value="40" />
<Setter Property="MaxWidth" Value="400" />
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<Button></Button>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
ToolboxControl.xaml:
<local:TextBoxToolboxItem Header="t1" />
<local:TextBoxToolboxItem Header="t2" />
<local:ButtonToolboxItem Header="b1" />
<local:ButtonToolboxItem Header="b2" />
……
Hi,
I have some custom sorting for RadTreeView (ASC and DESC)...but I need the indicating arrows to go with them in my TextBlock above that triggers the sorting...Is that possible ? Any help is appreciated.
Barry
<TextBlock Text="{x:Static properties:Resources.GroupHeader}" MouseUp="TextBlock_MouseUp" TextAlignment="Center" Style="{StaticResource HeaderTemplate}" HorizontalAlignment="Stretch"/>
//GROUP CUSTOM SEARCH
private void TextBlock_MouseUp(object sender, MouseButtonEventArgs e)
{
isoProvider.LoadFromStorage(groupTreeViewIsolatedStorage); //GET
IEnumerable<GroupVM> groups = GroupTree.ItemsSource as IEnumerable<GroupVM>;
if (GroupTreeViewOrdering.Content.Equals(ConstantsUnit.Key_SortAscending))
{
IEnumerable<GroupVM> test = groups.OrderByDescending(p => p.Name);
GroupTree.ItemsSource = null;
while (GroupTree.ItemsSource == null) {
GroupTree.ItemsSource = test;
}
//GroupTree.ItemsSource = groups.OrderByDescending(p => p.Name);
GroupTreeViewOrdering.Content = ConstantsUnit.Key_SortDescending;
}
else if (GroupTreeViewOrdering.Content.Equals(ConstantsUnit.Key_SortDescending))
{
IEnumerable<GroupVM> test = groups.OrderBy(p => p.Name);
GroupTree.ItemsSource = null;
while (GroupTree.ItemsSource == null) {
GroupTree.ItemsSource = test;
}
//GroupTree.ItemsSource = groups.OrderBy(p => p.Name);
GroupTreeViewOrdering.Content = ConstantsUnit.Key_SortAscending;
}
isoProvider.SaveToStorage(groupTreeViewIsolatedStorage); //SET
}
Hello,
We're having some issues with the Telerik RadPDFViewer not printing correctly. When we were on the UI for WPF version 2016.1.112 the print worked fine. Now that we are on the new version 2016.2.503 the print isn't working as intended.
The problem is if you have a multi page PDF in the PDFViewer and try and print it.
The PDF is converted to a byte array (to save to the database), then made into a MemoryStream, and then is passed to the PDFViewer. When you run the PDFViewer.Print() function it will send the PDF to the printer, but data only actually is printed on the first page and the following pages are just blank pages. The printer spits out the correct number of pages that are in the PDF but the first page is the only one that actually has something on it.
The reason we take the PDF and convert it to a byte array is because it's saved to the database for record and display later. This allows a user can come back later on and load the PDF that was saved to the database. It's loaded in from the database into a MemoryStream then to the PDFViewer.
I can provide a sample project that demonstrates the issue we are experiencing and how we are converting everything around. I would attach it but it wouldn't let me.
Telerik UI for WPF version: 2016.2.503 - May 03,2016
.Net Framework version: 4.0
Thanks in advance,
Kevin
Hello support guys,
I add a radgridview in a WPF usercontrol
[...]
radGridView1.ItemsSource = GetTable();
[...]
private DataTable GetTable()
{
// Here we create a DataTable with four columns.
DataTable table = new DataTable();
table.Columns.Add("Dosage");
table.Columns.Add("Drug");
table.Columns.Add("Patient");
table.Columns.Add("Date", typeof(DateTime));
// Here we add five DataRows.
table.Rows.Add(25, "Indocin", "David", DateTime.Now);
table.Rows.Add(50, "Enebrel", "Sam", DateTime.Now);
table.Rows.Add(10, "Hydralazine", "Christoff", DateTime.Now);
table.Rows.Add(21, "Combivent", "Janet", DateTime.Now);
table.Rows.Add(100, "Dilantin", "Melanie", DateTime.Now);
return table;
}
but when I trie filter a column, I cannot type anything in the filter textbox (see document attached). Is there any property to enable it?
Thank you in advance,
PP
Hi,
I am currently experiencing an issue where unpinned panes are cut off when mousing over the auto-hide tabs.
What's strange is that the first tab sizes correctly (could be any of the panes depending on the first one unpinned).
Here is a simple example:
<
Window
x:Class
=
"Docking_Test.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Title
=
"MainWindow"
WindowState
=
"Maximized"
>
<
Grid
>
<
telerik:RadDocking
x:Name
=
"radDock"
HasDocumentHost
=
"False"
>
<
telerik:RadSplitContainer
Orientation
=
"Vertical"
>
<
telerik:RadSplitContainer
InitialPosition
=
"DockedTop"
telerik:ProportionalStackPanel.RelativeSize
=
"100,80"
>
<
telerik:RadSplitContainer
InitialPosition
=
"DockedLeft"
telerik:ProportionalStackPanel.RelativeSize
=
"40,100"
Orientation
=
"Vertical"
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
Header
=
"Gauge"
ContextMenuTemplate
=
"{x:Null}"
>
<
Viewbox
Stretch
=
"Uniform"
>
<
Border
BorderThickness
=
"5"
BorderBrush
=
"Black"
>
<
Rectangle
Fill
=
"Red"
Width
=
"600"
Height
=
"700"
/>
</
Border
>
</
Viewbox
>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
<
telerik:RadSplitContainer
InitialPosition
=
"DockedRight"
telerik:ProportionalStackPanel.RelativeSize
=
"60,100"
Orientation
=
"Vertical"
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
Header
=
"Charts"
ContextMenuTemplate
=
"{x:Null}"
>
<
Border
BorderThickness
=
"5"
BorderBrush
=
"Black"
>
<
Rectangle
Fill
=
"Green"
Width
=
"1290"
Height
=
"700"
/>
</
Border
>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadSplitContainer
>
<
telerik:RadSplitContainer
InitialPosition
=
"DockedBottom"
telerik:ProportionalStackPanel.RelativeSize
=
"100,20"
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
Header
=
"Timeline"
ContextMenuTemplate
=
"{x:Null}"
>
<
Border
BorderThickness
=
"5"
BorderBrush
=
"Black"
>
<
Rectangle
Fill
=
"Blue"
Width
=
"1900"
Height
=
"300"
/>
</
Border
>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
</
Grid
>
</
Window
>
Any help would be greatly appreciated!
Thanks,
Mike
Hi,
I'm using the IsolatedStorage mechanism to get/set my sorts for all my RadGridView(s)...but I need arrows to indicate ASC or DESC for the user selection from the column headers.
Any tips ?
Barry
P.S. I'll also need the same for RadTreeView (which uses manual sorting)
Hello,
I'm trying to apply the full text search to a grid that is bound to a data table (autogeneratecolumns=true). But when I type in something it filters out everything.
If I look at the FilterMemberType and FilterMemberPath properties these are empty.
Also if I try using the default filtering (starts with) it shows an error in the filter box: "the method or operation is not implemented".
You also have this in the gridview examples if you look at "Various Data Source" and choose data table.
How can I fix this?
Hi,
Is there any way of closing the DragVisual window in the OnDrop Event Handler. The reason I ask is that I want to open a modal dialog when an item is dropped into a treeview. I am able to open the dialog as I want, but the DragVisual window will stay on top of the dialog. So in the OnDrop Event I want to close the DragVisual and then open the dialog window. Is this possible?
Regards,
Roar