Telerik Forums
UI for WPF Forum
13 answers
729 views
Hello,
I am trying to set the style of my GridViewDataColumn to a textbox and am having some difficulty.
This is the latest thing I have tried.  It seems that i should not be having this much trouble.
I have seen examples of checkboxes and images but cannot find a RadMaskedTextBox example. Could you provide one?

Thank you.
                        <telerikPres:RadGridView ItemsSource="{Binding}>
                            </telerikPres:RadGridView.Columns>
                                    <telerikPres:GridViewDataColumn Header="My RadMaskedTextBox" UniqueName="MyDecimalField">
                                        <telerikPres:GridViewColumn.CellStyle>
                                            <Style TargetType="{x:Type telerikPres:GridViewCell}">
                                                <Setter Property="Template">
                                                    <Setter.Value>
                                                        <ControlTemplate TargetType="{x:Type telerikPres:GridViewCell}">
                                                            <telerikInput:RadMaskedTextBox Margin="0 3 0 3"  Width="55" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=MyDecimalField, Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center"  MaskType="Numeric" Mask="n2"  />
                                                        </ControlTemplate>
                                                    </Setter.Value>
                                                </Setter>
                                            </Style>
                                            </telerikPres:GridViewColumn.CellStyle>
                                    </telerikPres:GridViewDataColumn>
                            </telerikPres:RadGridView.Columns>
Veselin Vasilev
Telerik team
 answered on 13 Oct 2010
1 answer
104 views
I downloaded radControlTelerik for WPF in www.telerik.com . But I don't see rad control splitter in Toolbox.
Does radControlTelerik have support splitter for WPF?
Alex Fidanov
Telerik team
 answered on 13 Oct 2010
4 answers
1.1K+ views

I have a GridView with several columns. I am using a subset of columns to the right to show bars like a kind of Gantt chart.

I want to style the cells in the rows in such a way that each Cell merge with the cell to its left and the cell to its right (no merge with above or below cells) in order to produce the impression that there is a horizontal bar created by setting the background color.

I set up padding and also margin to (0,10, 0,10) in the Cell Template and hidden the columns vertical  lines but I still get a gap between the cells.
I also created a GridViewCellStyle copied from the default as suggested in the documentation, I assigned to the DataColumns tag but make no difference. I can't get rid of the gaps. So I may be doing something wrong.

1. Could you be so kind of tell me how can I get this result.

2. I need to change the name of the columns header dynamically. I can do it from code behind but if I want to do it from XAML how I do that?

Thanks

Vanya Pavlova
Telerik team
 answered on 13 Oct 2010
3 answers
91 views
Hi,

How can show vertical scroll bar programatically.

I've tried the below code, but no luck

RadGridView1.SetValue(ScrollViewer.VerticalScrollBarVisibilityProperty, ScrollBarVisibility.Visible);

Thanks,
-Narendra
Vlad
Telerik team
 answered on 13 Oct 2010
5 answers
365 views
Hi

I am trying to come up with a composite control which includes GridView and Date pager something similar to asp.net grid. I have AllowPagination property. I am finding it difficult as to how link datapager and gridview control in the composite control.

I have seen the sample where it says Datapager Source="{Binding Items, ElementName=radGridView}" but how i can I do the same linking in code behind.

Regards
Kiran
Pavel Pavlov
Telerik team
 answered on 13 Oct 2010
3 answers
230 views
Hi,

I want to edit filter popup in RadGridView. is it possible ?
Vlad
Telerik team
 answered on 13 Oct 2010
1 answer
146 views
I like the fade-in/fade-out transition for the window but I need to make it a bit faster. How can I change it. I don't want to turn it off.
George
Telerik team
 answered on 12 Oct 2010
4 answers
177 views
Hi,
I have the following issue. I use Frame control to load data to my tabs - so i can load different pages. But when i change tabs (create new one with different page loaded) - data that my previous pages load get's requeried. How can i disable that - so that when i open a new tab - previous stays as it was and doesn't reset it's self.

Thank you.
Sam Ur
Top achievements
Rank 2
 answered on 12 Oct 2010
1 answer
111 views
Hello,

I want to use a RadWindow as a user control inside another RadWindow, like as below.

<

 

 

telerik:RadWindow x:Class="MacFellow.WPF.ParentRadWindow"

 

 

 

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"

 

 

 

mc:Ignorable="d"

 

 

 

xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

 

 

 

d:DesignHeight="300" d:DesignWidth="521">

 

 

 

 

<Grid>

 

 

 

 

<telerik:RadWindow Top="10" Left="10" Height="200" Width="300" Visibility="Visible">

 

 

 

 

<Button x:Name="btnClickMe" Content="Click Me" Width="100"/>

 

 

 

 

</telerik:RadWindow>

 

 

 

 

</Grid>

 

</

 

 

telerik:RadWindow>

 


Now when I click on the button "btnClickMe" it throws an exception "Object reference not set to an instance of object".

Please let me know the reason of the exception and how can it be resolved.
Miroslav Nedyalkov
Telerik team
 answered on 12 Oct 2010
3 answers
112 views

Hi,
We have a RadTreeView nested in a RadPanelBar which the user can undock and have floating. While docked the binding for the all data works fine including the state of the checkboxes. However, when the undocked and floating the checkboxes no longer reflect the correct state. The names for the hierarchical data items are displaying correctly so some of the binding is still working but not the state of the checkboxes.

The following is the xaml we are using:

<telerikNavigation:RadPanelBarItem Collapsed="RadPanelBarItem_ExpandedCollapsed" Expanded="RadPanelBarItem_ExpandedCollapsed" >
    <telerikNavigation:RadPanelBarItem.Header>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="18" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <CheckBox Grid.Column="0" IsThreeState="True" IsChecked="{Binding IsDomainsChecked, Mode=TwoWay, NotifyOnTargetUpdated=True}" Click="FilterCheckBox_Click" TargetUpdated="CheckBox_TargetUpdated"/>
            <TextBlock Grid.Column="1" Text="Domains"/>
        </Grid>
    </telerikNavigation:RadPanelBarItem.Header>
    <telerikNavigation:RadTreeView 
        Name="DomainTreeView"
        IsOptionElementsEnabled="True"
        ItemsOptionListType="CheckList" 
        IsTriStateMode="True" Checked="TreeView_CheckedUnchecked" Unchecked="TreeView_CheckedUnchecked"
        ItemsSource="{Binding Path=DomainEmailTypes}">
            
        <telerikNavigation:RadTreeView.ItemTemplate>
            <HierarchicalDataTemplate DataType="{x:Type ViewModels:EmailTypeFilterViewModel}" ItemsSource="{Binding Path=EmailTypes}">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                        <ColumnDefinition />
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" Text="{Binding Path=Name}"/>
                    <TextBlock Grid.Column="1" Margin="5,0,5,0" Text="{Binding Path=DisplayCount}" />
                </Grid>
                <HierarchicalDataTemplate.ItemTemplate>
                    <DataTemplate>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition />
                                <ColumnDefinition />
                            </Grid.ColumnDefinitions>
                            <TextBlock Grid.Column="0" Text="{Binding Path=Name}"/>
                            <TextBlock Grid.Column="1" Margin="5,0,5,0" Text="{Binding Path=DisplayCount}" />
                        </Grid>
                   </DataTemplate>
                </HierarchicalDataTemplate.ItemTemplate>
            </HierarchicalDataTemplate>
        </telerikNavigation:RadTreeView.ItemTemplate>
    </telerikNavigation:RadTreeView>
</telerikNavigation:RadPanelBarItem>


Any help or insight would be greatly appreciated.

Thank you.
Tina Stancheva
Telerik team
 answered on 12 Oct 2010
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
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?