Hi,
i am using a DataGrid with IsSynchronizedWithCurrentItem="True". It does not work.
01.
<
telerik:RadGridView
x:Name
=
"MyDataGrid"
02.
Grid.Row
=
"1"
03.
SelectionMode
=
"Single"
04.
IsReadOnly
=
"True"
05.
AutoGenerateColumns
=
"False"
06.
IsSynchronizedWithCurrentItem
=
"True"
07.
CanUserDeleteRows
=
"False"
08.
CanUserFreezeColumns
=
"False"
09.
CanUserInsertRows
=
"False"
10.
CanUserReorderColumns
=
"False"
11.
CanUserResizeColumns
=
"False"
12.
CanUserSortColumns
=
"False"
13.
CanUserSortGroups
=
"False"
14.
IsFilteringAllowed
=
"False"
15.
ShowGroupPanel
=
"False"
16.
ShowColumnHeaders
=
"False"
17.
ItemsSource
=
"{Binding ItemsSource, ElementName=MyDataForm}"
18.
SelectedItem
=
"{Binding CurrentItem, ElementName=MyDataForm}"
>
19.
<
telerik:RadGridView.Columns
>
20.
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Id}"
Header
=
"Id"
Width
=
"20"
IsVisible
=
"False"
/>
21.
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Name}"
Header
=
"Katalogeintrag"
Width
=
"*"
/>
22.
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Catalog.Id}"
Header
=
"Katalog"
Width
=
"20"
IsVisible
=
"False"
/>
23.
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Locked}"
Header
=
"Gesperrt"
Width
=
"10"
IsVisible
=
"False"
/>
24.
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding System}"
Header
=
"System"
Width
=
"10"
IsVisible
=
"False"
/>
25.
</
telerik:RadGridView.Columns
>
26.
</
telerik:RadGridView
>
I want to implement a column chooser and I have seen the examples here: http://docs.telerik.com/devtools/wpf/controls/radgridview/how-to/show-hide-columns-outside-of-the-radgridview.html
However, I have not been able to find a way to implement this column chooser along with a couple of additional checkboxes:
"Show All": Would make all columns on the grid visible
"Hide All": Would make all columns on the grid invisible
What is the best way of accomplishing this?
Thanks.
I'm just dipping my toes into the wpf water and am trying to get up to speed.
I have a RadDocking control on my main page as shown below.
I want to, in response to a button click or some other event, create a pane in code-behind that loads a page's xaml into the content of the pane.
So, for example, I have a page defined:
<Page x:Class="QI.Pages.Test"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:QI.Pages"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300"
Title="Test">
<Grid>
<TextBlock Text="Hello"></TextBlock>
</Grid>
</Page>
I want to create a pane that contains the page shown above and add it to the rpgRightGroup defined below.
Can someone help me get there from here?
Thanks ... Ed
<telerik:RadDocking x:Name="radDock" HasDocumentHost="True"
HorizontalAlignment="Stretch" Grid.Row="2"
VerticalAlignment="Stretch"
Grid.ColumnSpan="2"
RetainPaneSizeMode="DockingAndFloating" Grid.RowSpan="2"
>
<telerik:RadSplitContainer Name="LeftContainer" >
<telerik:RadPaneGroup x:Name="rpgLeftGroup"
>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
<telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer Name="RightContainer">
<telerik:RadPaneGroup x:Name="rpgRightGroup" >
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>
</telerik:RadDocking
IsReadOnly
= true , in code
But I can still change the values and select other items.
How do I lock the combo box ? Any idea what I'm doing wrong?
thanks
Hello,
I want to use a XML-File as Data Source for the Appointments. I searched already the web for a tutorial, but I didn't find anything.
Can anybody tell me the Way, how to use a XML-File as Data Source Step by Step?
Hi ,
can anyone help on
How to implement Similar property of CanKeyboardNavigationSelectItems="True" in RadCombobox, like in RadAutoCompleteBox.
I didn't find this property in RadAutoCompleteBox.
I have a GridViewColumn where the IsVisible property is connected to a DynamicResource "ShowColumn". When I click on the Button, the value of the "ShowColumn" resource is negated. While the Content of the Button is updated, the IsVisible property of the column does not change.
How can I achieve that the column is hidden/shown when the resource value changes? The mechanism is part of a larger framework, that does not support direct binding to a ViewModel as the resources are dynamically created as needed and the values are inherited from higher levels.
<
Window.Resources
>
<
system:Boolean
x:Key
=
"ShowColumn"
>True</
system:Boolean
>
</
Window.Resources
>
<
DockPanel
>
<
Button
x:Name
=
"Button"
Content
=
"{DynamicResource ShowColumn}"
Click
=
"ShowHideClick"
/>
<
telerik:RadGridView
AutoGenerateColumns
=
"False"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Foo"
IsVisible
=
"{DynamicResource ShowColumn}"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
DockPanel
>
Telerik grid row is overlapping when GridViewDataColumn is having multiline text. If we resize column or apply any filter, row overlapping disappears. Do we have any solution for this?
<telerik:GridViewDataColumn
DataMemberBinding="{Binding ConnectedCardInfo, Mode=OneWay}"
IsReadOnly="True" UniqueName="ConnectedCardInfo">
<telerik:GridViewDataColumn.Header>
<TextBlock Text="Connected Card Info" TextWrapping="WrapWithOverflow" ToolTip="Connected Card Info"/> </telerik:GridViewDataColumn.Header>
</telerik:GridViewDataColumn>
Hi,
I need to be able to define a non-gradient pale color background for the RadCalendar header, but could not find a custom styling option for this segment.
Please assist.
Thank you.