Telerik Forums
UI for WPF Forum
4 answers
330 views

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>

Harald
Top achievements
Rank 2
 answered on 07 Jul 2016
3 answers
353 views

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.

Edwin
Top achievements
Rank 1
 answered on 07 Jul 2016
2 answers
233 views

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

 

Randy Hompesch
Top achievements
Rank 1
 answered on 07 Jul 2016
10 answers
1.9K+ views
Hi..
I set

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

Polya
Telerik team
 answered on 07 Jul 2016
1 answer
185 views

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?

Nasko
Telerik team
 answered on 07 Jul 2016
2 answers
244 views

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.

 

 

Kalin
Telerik team
 answered on 07 Jul 2016
1 answer
431 views

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>
Dilyan Traykov
Telerik team
 answered on 07 Jul 2016
5 answers
280 views

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>

Stefan Nenchev
Telerik team
 answered on 07 Jul 2016
4 answers
285 views

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.

Nasko
Telerik team
 answered on 07 Jul 2016
3 answers
129 views
Hi, i am using the DataForm. In edit mode i can not set the cursorposition in the DataField with left Mouseclick. How can I change this?
Harald
Top achievements
Rank 2
 answered on 06 Jul 2016
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?