Hello.
I want to represent my model(see attached image) with TreeListView.
I have achieved to display process, work and drill instructions, but I dont know how to display Tasks and Programs.(see attached image)
A example of my hierachy maybe that:
ROOT(Process)
|__ Process_1
|__ Process_1.1
|__ Drill
|__ Work_2
|__ Task1
|__ Task2
Hi,
I have a RadCartesianChart control showing 2 ScatterLineSeries, I want to have the Trackball behavior only in one of the series, I added templates with an empty instance of DataTemplate like this:
<
telerik:ScatterLineSeries.TrackBallInfoTemplate
>
<
DataTemplate
/>
</
telerik:ScatterLineSeries.TrackBallInfoTemplate
>
<
telerik:ScatterLineSeries.TrackBallTemplate
>
<
DataTemplate
/>
</
telerik:ScatterLineSeries.TrackBallTemplate
>
This way I don't show the popup neither the indicator, but I still have the snap effect.
Is it possible to hide or remove the snap effect on one series?
Regards,
Alberto
I am trying to get a series of tab RichTextEditors to return formatted text as html markup fragments, and not the fully-qualified HTML doc. We use this same RichTextEdit elsewhere which honors the formatting settings to return fragments (but not in a tab control), but in the context below, it always returns the default full html doc no matter what. Originally this was using a resource dictionary, but I inlined the HTMLDataProvider to try to isolate the problem
<
telerik:RadTabControl
Style
=
"{DynamicResource TabControlNoHeaderBackground}"
ItemsSource
=
"{Binding Disclosures}"
>
<
telerik:RadTabControl.ItemTemplate
>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding DisclosureTypeName}"
/>
</
DataTemplate
>
</
telerik:RadTabControl.ItemTemplate
>
<
telerik:RadTabControl.ContentTemplate
>
<
DataTemplate
>
<
Grid
>
<
telerik:HtmlDataProvider
x:Name
=
"CustomerHtmlDataProvider"
Html
=
"{Binding Content, Mode=TwoWay}"
RichTextBox
=
"{Binding ElementName=TxtDisclosureContent}"
>
<
telerik:HtmlDataProvider.FormatProvider
>
<
telerik:HtmlFormatProvider
>
<
telerik:HtmlFormatProvider.ExportSettings
>
<
telerik:HtmlExportSettings
DocumentExportLevel
=
"Fragment"
ImageExportMode
=
"None"
ExportFontStylesAsTags
=
"True"
ExportStyleMetadata
=
"False"
>
</
telerik:HtmlExportSettings
>
</
telerik:HtmlFormatProvider.ExportSettings
>
</
telerik:HtmlFormatProvider
>
</
telerik:HtmlDataProvider.FormatProvider
>
</
telerik:HtmlDataProvider
>
<
telerik:RadRichTextBox
x:Name
=
"TxtDisclosureContent"
IsSpellCheckingEnabled
=
"False"
/>
</
Grid
>
</
DataTemplate
>
</
telerik:RadTabControl.ContentTemplate
>
</
telerik:RadTabControl
>
I'm trying to use a RadTileView for a project and it is throwing an exception when I open the tiles. They open for a few seconds and then the following exception is thrown:
System.InvalidOperationException: 'RestoreIcon1' name cannot be found in the name scope of 'System.Windows.Controls.Grid'.<
br
> at System.Windows.Media.Animation.Storyboard.ResolveTargetName(String targetName, INameScope nameScope, DependencyObject element)<
br
> at System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer)<
br
> at System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer)<
br
> at System.Windows.Media.Animation.Storyboard.BeginCommon(DependencyObject containingObject, INameScope nameScope, HandoffBehavior handoffBehavior, Boolean isControllable, Int64 layer)<
br
> at System.Windows.VisualStateGroup.StartNewThenStopOld(FrameworkElement element, Storyboard[] newStoryboards)<
br
> at System.Windows.VisualStateManager.GoToStateInternal(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualStateGroup group, VisualState state, Boolean useTransitions)<
br
> at System.Windows.VisualStateManager.GoToStateCommon(FrameworkElement control, FrameworkElement stateGroupsRoot, String stateName, Boolean useTransitions)<
br
> at System.Windows.Controls.Primitives.ButtonBase.ChangeVisualState(Boolean useTransitions)<
br
> at System.Windows.Controls.Primitives.ToggleButton.ChangeVisualState(Boolean useTransitions)
The XAML I'm using for the RadTileView is as follows:
<
telerik:RadTileView
ItemsSource
=
"{Binding FieldViewModels}"
/>
Where FieldViewModels is a IReactiveList.
I've searched the solution for RestoreIcon1 and can't find anything, so I can only guess that it's something in the RadTileView itself? Has anyone else had this problem? Can anyone think of a solution?
Hello,
I am working on a gridview with a contextmenu.
For the comboboxes in the gridview I want to add an additional menuitem (beside Add/Delete etc.). In that case I want to do a search on the item thats currently selected in the combobox. I wired up the command to it which works fine, I am now stuck with getting the selected value from the combobox.
I want to use this value to show in my contextmenu, for example "Search Item X", where Item X is the name of the selected item in the combobox, I also want to pass the selected item to my command so I can do the actual search.
I created the code below, but I am getting a binding error stating that SelectedValue can not be found on the GridViewCell. How do I bind to the combobox inside the cell?
<
ContextMenu
x:Key
=
"frsvGridComboContextMenuArtikelGroep"
DataContext
=
"{Binding PlacementTarget.DataContext, RelativeSource={RelativeSource Self}}"
>
<!-- Search menu-item-->
<
MenuItem
CommandParameter
=
"{Binding Parent.PlacementTarget.SelectedValue, RelativeSource={RelativeSource Self}}"
Command
=
"{Binding DataContext.SearchArtikelGroepCommand, Source={StaticResource subViewSpy}}"
DataContext
=
"{Binding}"
>
<
MenuItem.Icon
>
<
Image
Source
=
"/Resources.Icons;Component/16x16/search16.png"
/>
</
MenuItem.Icon
>
<
MenuItem.Header
>
<
MultiBinding
Converter
=
"{StaticResource frsvSelectedValueToStringMultiValueConverter}"
>
<
Binding
>
<
Binding.Source
>
<
sys:String
>Filter op</
sys:String
>
</
Binding.Source
>
</
Binding
>
<
Binding
Path
=
"PlacementTarget.Text"
RelativeSource
=
"{RelativeSource AncestorType=ContextMenu}"
/>
<
Binding
>
<
Binding.Source
>
<
sys:String
>...</
sys:String
>
</
Binding.Source
>
</
Binding
>
</
MultiBinding
>
</
MenuItem.Header
>
</
MenuItem
>
</
ContextMenu
>
Any help would be appreciated.
Regards,
Marcel
I am using implicit styles and want to display a custom error template for RadCombobox. This is my style, It was working fine when i was not using implicit styles, but after that when ever there is an error it display the default telerik error template a red border with tooltip at right top corner.
<telerik:RadComboBox Width="260" ItemsSource="{Binding Policies}" DisplayMemberPath="Name"
SelectedItem="{Binding SelectedPolicy, NotifyOnValidationError=True}"/>
<Style TargetType="{x:Type telerik:RadComboBox}" BasedOn="{StaticResource RadComboBoxStyle}">
<Style.Triggers>
<Trigger Property="Validation.HasError" Value="True">
<Setter Property="ToolTip" Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=(Validation.Errors)[0].ErrorContent}"/>
<Setter Property="BorderBrush" Value="Red"/>
<Setter Property="Validation.ErrorTemplate">
<Setter.Value>
<ControlTemplate>
<DockPanel>
<TextBlock Foreground="Red" Text="{Binding [0].ErrorContent}" TextTrimming="WordEllipsis" DockPanel.Dock="Bottom" />
<AdornedElementPlaceholder/>
</DockPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>
Hi,
We have a situation where we have the RadGridView with ComboBoxes in two of its columns. There are two Text columns as well.
If the mouse is kept over a combo box column and the mouse scroll is used, the Grid scroll bar does not fire but the combo box changes selection. However if the mouse is kept above a Text column cell and the mouse scroll is used, the grid scroll bar works as usual. We don't want this disparity. We want the grid scroll bar to work even if the mouse is kept over the radcombobox column cell.
Another challenge is the version of Telerik.Windows.Controls.GridView.dll that we have in our project is 2011.1.0419.35.
I have tried to play with by hooking the OnPreviewMouseWheel event of the RadComboBox that resides in the grid cell. But seems it still makes the combo box scroll.
01.
private
void
CboPreference_OnPreviewMouseWheel(
object
sender, MouseWheelEventArgs e)
02.
{
03.
var comboBox = sender
as
RadComboBox;
04.
if
(comboBox !=
null
)
05.
{
06.
if
(grdTraderPreferences !=
null
)
07.
{
08.
//Copy over event arg members and raise it
09.
var newarg =
new
MouseWheelEventArgs(e.MouseDevice, e.Timestamp, e.Delta)
10.
{
11.
RoutedEvent = RadGridView.PreviewMouseWheelEvent,
12.
Source = sender
13.
};
15.
grdTraderPreferences.RaiseEvent(newarg);
16.
}
17.
}
18.
}
Any help will be appreciated.
regards,
J
Hi,
We have a situation where we have the RadGridView with ComboBoxes in two of its columns. There are two Text columns as well.
If the mouse is kept over a combo box column and the mouse scroll is used, the Grid scroll bar does not fire but the combo box changes selection. However if the mouse is kept above a Text column cell and the mouse scroll is used, the grid scroll bar works as usual. We don't want this disparity. We want the grid scroll bar to work even if the mouse is kept over the radcombobox column cell.
Another challenge is the version of Telerik.Windows.Controls.GridView.dll that we have in our project is 2011.1.0419.35.
I have tried to play with by hooking the OnPreviewMouseWheel event of the RadComboBox that resides in the grid cell. But seems it still makes the combo box scroll.
var comboBox = sender
as
RadComboBox;
if
(comboBox !=
null
)
{
if
(grid !=
null
)
{
//Copy over event arg members and raise it
var newarg =
new
MouseWheelEventArgs(e.MouseDevice, e.Timestamp, e.Delta)
{
RoutedEvent = RadGridView.PreviewMouseWheelEvent,
Source = sender
};
e.Handled =
true
;
grid.RaiseEvent(newarg);
}
}
I think I came across a bug regarding the WorkbookContentChanged event. It is fired every time I change a cell, until I use the "drag cell value" feature, and then it seems to be fired only when a new worksheet is created, there are no notifications when a cell is changed (even in newly created worksheets).
PS: I've created a simple example application but I seem unable to upload .7z files. If you still want it, I'll paste the source in a post