Hi,
after updating to 2016.1.217.40 the searchpanel is always visible on every GridView. I cant hide it with
ShowSearchPanel="False"
Also the close button is deactivated (grayed out).
Any tips/ideas? Thanks
I have a radexpander on a form that is meant to expand over a custom control. The relevant WPF is:
<Grid Grid.Column="2" Grid.Row="1" Margin="0,20,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="85*"/>
<RowDefinition Height="15*" MinHeight="50px"/>
</Grid.RowDefinitions>
<gsas:FullHourlyView Grid.Row="0"/>
<gsas:Legend Grid.Row="1" Margin="20,15,0,0" Visibility="{Binding LegendVisible, Converter={StaticResource BoolToVis}, FallbackValue=Visible}"/>
</Grid>
<telerik:RadExpander x:Name="expand" Grid.Column="2" Grid.Row="1" ExpandDirection="Up" VerticalAlignment="Stretch" VerticalContentAlignment="Bottom" HorizontalHeaderAlignment="Right" telerik:AnimationManager.IsAnimationEnabled="True" IsExpanded="{Binding AlarmGridExpanded, Mode=TwoWay}" Collapsed="expand_Collapsed" Expanded="expand_Expanded" ToolTip="Show Alarms">
<ContentControl HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Content="{Binding AlarmsGrid}"></ContentControl>
</telerik:RadExpander>
</Grid>
The FullyHourlyView is made up of four other custom controls, the relevant bit being:
<ItemsControl ItemsSource="{Binding HourData}" x:Name="HourBlocks">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Button Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="-1,0,-3,0" Command="{Binding ElementName=HourBlocks, Path=DataContext.HourlyClick}" CommandParameter="{Binding}">
There are a couple of behaviors I now have to do with the radexpander being on there.
1) The buttons do not fire, in fact that appear to be disabled or something like that because when you hover over it they do not highlight like they do when I remove the radexpander from the WPF.
2) The tooltip for the buttons is the same as the Tooltip for the RadExpander (Show Alarms).
If I remove the expander everything works as I would expect.
I have a RadExpander on a UserControl. The datacontext of the UserControl (and therefor of the RadExpander) is bound to the selecteditem of a RadDataGrid (a list/details solution).The datacontext is a viewmodel and all my viewmodels implements INotifyPropertyChanged.
The first time I select an item in my datagrid, it goes well. After that, the pink textblock shows the previous Name (string) while the green shows the current.
That seems like a bug to me.
I cant just use the green one, because in my real solution I need to do complex stuff with datatriggers, but this is what it boils down to.
Here is the XAML, and I have attached a picture from my running program:
<
telerik:RadExpander
x:Name
=
"_myExpander"
Grid.Column
=
"0"
Grid.Row
=
"2"
ExpandDirection
=
"Down"
ToolTipService.Placement
=
"Center"
HorizontalContentAlignment
=
"Stretch"
Margin
=
"0,0,2,0"
>
<
telerik:RadExpander.Style
>
<
Style
TargetType
=
"{x:Type telerik:RadExpander}"
>
<
Setter
Property
=
"IsExpanded"
Value
=
"True"
/>
<
Style.Triggers
>
<
DataTrigger
Binding
=
"{Binding}"
Value
=
"{x:Null}"
>
<
Setter
Property
=
"IsExpanded"
Value
=
"False"
/>
</
DataTrigger
>
</
Style.Triggers
>
</
Style
>
</
telerik:RadExpander.Style
>
<
telerik:RadExpander.Header
>
<
Border
Margin
=
"2, 0, -8, 0"
Background
=
"White"
MinHeight
=
"22"
>
<
Grid
VerticalAlignment
=
"Stretch"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
Grid
Margin
=
"2,2,4,2"
Grid.Column
=
"0"
Background
=
"LightPink"
>
<
TextBlock
>
<
TextBlock.Style
>
<
Style
TargetType
=
"{x:Type TextBlock}"
>
<
Setter
Property
=
"Text"
Value
=
"{Binding Name}"
/>
</
Style
>
</
TextBlock.Style
>
</
TextBlock
>
</
Grid
>
<
Grid
Margin
=
"14,2,4,2"
Grid.Column
=
"1"
Background
=
"DarkSeaGreen"
>
<
TextBlock
Text
=
"{Binding Name}"
/>
</
Grid
>
</
Grid
>
</
Border
>
</
telerik:RadExpander.Header
>
<
telerik:RadExpander.Content
>
<
TextBlock
Margin
=
"24,24,2,2"
Text
=
"Body"
/>
</
telerik:RadExpander.Content
>
</
telerik:RadExpander
>
for our RadDiagramShapes, we have a Style that includes the Setter:
<
Setter
Property
=
"Visibility"
Value
=
"{Binding Visibility}"
/>
We use Visibility to control, oddly enough, the visibility of elements in our diagram. Can you all offer any insights into what's going on and also what we could do to work around this while still having virtualization enabled, please?
This is with UI for WPF v. 2015.2.0401.
Thanks,
-David
I used this method to fix the empty combo box
http://docs.telerik.com/devtools/wpf/controls/radgridview/troubleshooting/blank-cells.html
I have a Usercontrol called relationship that uses that fix.
At the moment I have to create 4 different UserControls because each is pointing to a different viewmodel. Is there a way to have it dynamic so it can point to any.
<
UserControl.Resources
>
<
local:MainPageViewModel1
x:Key
=
"mainPageViewModel1"
/>
<
local:MainPageViewModel2
x:Key
=
"mainPageViewModel2"
/>
<
local:MainPageViewModel3
x:Key
=
"mainPageViewModel3"
/>
</
UserControl.Resources
>
...
<
telerik:GridViewComboBoxColumn
Header
=
"Category"
DataMemberBinding
=
"{Binding CategoryID}"
ItemsSource
=
"{Binding Path=Categories, Source={StaticResource CHOOSE CORRECT VM}}"
DisplayMemberPath
=
"CategoryName"
SelectedValueMemberPath
=
"CategoryID"
/>
Hello,
I have built a radgridview and binded to selectedItems. This works great and as I imagined until I filter the grid (using the default telerik filtering) on a column and then selecting a new item which selectedItems is null. Can someone please help me understand what is difference for selecteditems with the entire collection and a filtered collection? And why the binding is null after being filtered? Thank you.
Below is my binding.
<telerik:RadGridView x:Name="radGridView" GroupRenderMode="Flat"
Width="Auto"
Height="Auto"
MaxHeight="500"
CanUserFreezeColumns="True"
RowIndicatorVisibility="Collapsed"
AutoGenerateColumns="False"
Grid.Row="0"
ShowGroupPanel="False"
ItemsSource="{Binding GridModels}"
SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
RowEditEnded="RadGridView_RowEditEnded">
Once again, this works great until I filter and then try selecting a new row (I am not selecting and then filtering).
Hi,
I am facing issues in copying the PNG files in to rich text box.
I have an 2 PNG files, one of theirs Layout format is "Square", the other ones Layout format is "Inline with text".
File with the Layout format of "Square" is copied properly, where as the "Inline with Text" doesn't get copied over as image. Instead, its pasted as a very long text of binaries or strings.
ClipboardEx.GetDocument(); gets Image as span with long text rather than the ImageInline.
Could some one help in fixing this issue please ? Do we have paste special option in Telerik ?
Thanks