Telerik Forums
UI for WPF Forum
2 answers
138 views
Trying to get something similar to a RadSplitButton (text area and right-side button) working that actually raises a Command instead of opening a Popup. Basically I'd like to use it inside of a Template that has it's own logic to show whatever happens when you click the button.

Any ideas?
Miro Miroslavov
Telerik team
 answered on 15 Sep 2010
1 answer
482 views
I am using a bound treeview that has two different hierartcial data templates.  Both need to be able to expand, but on one I don't want the user to be able to select that treeviewitem.   Only expand it.  Is that possible?  Also, is there a way to disable the expander on a treeviewitem as well if I know beforehand they have no subitems?  I am using LoadOnDemand.

Here are my data templates

 <HierarchicalDataTemplate  DataType="{x:Type  Classes:Shmoog}" 
   ItemsSource="{Binding Converter={StaticResource childConverter}}">
        <StackPanel Orientation="Horizontal">
            <Image Source="/Images/DocumentIcon.png" Margin="0 0 3 0"></Image>
                <TextBlock Foreground="White" Text="{Binding DisplayName}" />
        </StackPanel>
    </HierarchicalDataTemplate>

        <HierarchicalDataTemplate DataType="{x:Type Model:WorkFlowTemplateItem}" 
   ItemsSource="{Binding Converter={StaticResource childConverter}}">
        <StackPanel Orientation="Horizontal">
            <Image Source="/Images/DropboxIcon.png" Margin="0 0 3 0"></Image>
                <TextBlock Foreground="White" Text="{Binding DisplayName}" />
             </StackPanel>
    </HierarchicalDataTemplate>

Kiril Stanoev
Telerik team
 answered on 15 Sep 2010
4 answers
226 views
How can i enable and validate custom cell in a grid ?

If i want my cell to have Both Checkbox AND textbox.. how can i achieve this ?

Thank you
Tgaud
Top achievements
Rank 1
 answered on 15 Sep 2010
1 answer
140 views
My app has Vista as the default style and I would like to use Office_Black as the style for and instance of RadDocking. So far I've got this:

<Controls:RadDocking Grid.Row="0" Controls1:StyleManager.Theme="Office_Black">
 
    <Controls:RadDocking.DocumentHost>
        <Controls:RadSplitContainer >
            <Controls:RadPaneGroup>
 
                <Controls:RadPane Header="Tab 1">
                    <UserControl1/>
                </Controls:RadPane>
 
                <Controls:RadPane Header="Tab 2">
                    <UserControl2/>
                </Controls:RadPane>
 
            </Controls:RadPaneGroup>
        </Controls:RadSplitContainer>
    </Controls:RadDocking.DocumentHost>
</Controls:RadDocking>

However, The style is applied to the tabs, but the RadPaneGroup is still the Vista style (a blue glow). If I set the StyleManager.Theme on each RadPane, then it is style correctly, but loses the style if I drag the control to another position in the dock. I've tried creating a style in RadDocking.Resources targetting the RadPaneGroup, but that doesn't work at all:

<Controls:RadDocking.Resources>
                <Style TargetType="{x:Type Controls:RadPaneGroup}">
                    <Setter Property="Controls1:StyleManager.Theme" Value="Office_Black"/>
                </Style>
</Controls:RadDocking.Resources>

Any suggestions how I can get my docking elements to all be styled as Office_Black? Thanks!
Geoff Smith
Top achievements
Rank 1
 answered on 15 Sep 2010
2 answers
86 views
Hi Support, 

Look at this stack:
http://screencast.com/t/NmJiNDc1ZW

I've tried:
1) Setting the DataGrid to read only
2) Column to read only
3) binding to ignore DataErrors

   <telerik:GridViewDataColumn Header="Country" UniqueName="Country" 
                                                    IsReadOnly="True"
                                                    DataMemberBinding="{Binding Country.Name,ValidatesOnDataErrors=False}">
                        </telerik:GridViewDataColumn>

Nothing seems to prevent the call (completelly unnecesary IMHO) to IDataErrorInfo.

I consider this to be a mayor problem.


Notes: 
  • I can't find ValidatesOnDataErrors @ RadGridView level. (only available for silverlight?) 
  • Using latest WPF version : 2010.2.812.35

thanks in advance, 
Sebastian Talamoni



Nedyalko Nikolov
Telerik team
 answered on 15 Sep 2010
1 answer
270 views
I know this could be a simple oversight on my part since I'm transitioning from WinForms to WPF.   I've created a simple WPF application using the RadControls for WPF40 2010 Q2 release. 

I have created my radmenu, figured out how to get my icons to appear on the main menu along with my text, etc.  When I follow the directions for an application wide theme, I added the following line right before my InitializeComponent(); of my main window:

StyleManager.ApplicationTheme = new SummerTheme();
InitializeComponent();

At runtime, nothing changed.  No theme was applied.  So I manually applied the Theme to my RadMenu in the XAML:

<telerik:RadMenu HorizontalAlignment="Stretch" Name="mnuMainMenu" VerticalAlignment="Top" telerikControls:StyleManager.Theme="Summer">

In the Visual Studio 2010 Designer, I can see the summer theme being applied but once again at Runtime, the application has the basic look/feel.  The Themes are not being applied at runtime.  I've cleaned the build and rebuilt with no changes.  I've restarted Visual Studio to make sure that the environment is reparsing and reloading the modules (based on past experience with previous Studio environments getting out of whack).

Any suggestions as to what I might be overlooking would be greatly appreciated.
George Peters
Top achievements
Rank 1
 answered on 14 Sep 2010
2 answers
311 views

Hi!

I have 2 panels, first one for details from every row and second one to show all rows via RadGridView like this:

<Grid x:Nme="pnlDetalle">

<Label x:Name="lblCodigo" Content="Código" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="8,8.5,76,8.499"/>
<telerik:RadMaskedTextBox x:Name="fmtCodigo" IsEnabled="False" Style="{DynamicResource Estilo1MaskedTextBox}" Value="{Binding ElementName=grdGridConsulta, Path=SelectedItem.CA001, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" Margin="87,0,0,8.5" HorizontalAlignment="Left" Width="51.92" VerticalAlignment="Bottom" TabIndex="0" />
   Label x:Name="lblTitulo" Content="Titulo" Margin="21,84,0,0" VerticalAlignment="Top" Width="77" Height="27"/>
<TextBox x:Name="txtTitulo" Style="{StaticResource Estilo1TextBox}" Text="{Binding ElementName=grdGridConsulta, Path=SelectedItem.CA002, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" HorizontalAlignment="Left" Margin="102,84,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="27" TabIndex="1" Width="230"/>
<Label x:Name="lblEjecutable" Content="Ejecutable" Margin="21,121,0,0" VerticalAlignment="Top" Width="77" Height="27"/>
<TextBox x:Name="txtEjecutable" Style="{StaticResource Estilo1TextBox}" Text="{Binding ElementName=grdGridConsulta, Path=SelectedItem.CA003, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" HorizontalAlignment="Left" Margin="102,121,0,0" TextWrapping="Wrap" VerticalAlignment="Top" TabIndex="2" Width="301" Height="27"/>
<Label x:Name="lblID" Content="ID" Margin="21,159,0,0" VerticalAlignment="Top" Width="77" Height="27"/>
<TextBox x:Name="txtID" Style="{StaticResource Estilo1TextBox}" Text="{Binding ElementName=grdGridConsulta, Path=SelectedItem.CA004, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" HorizontalAlignment="Left" Margin="102,159,0,0" TextWrapping="Wrap" Height="27" VerticalAlignment="Top" TabIndex="3" Width="128"/>
<telerik:RadToggleButton x:Name="chkInactivo" Content="Inactivo?" IsChecked="{Binding ElementName=grdGridConsulta, Path=SelectedItem.CA005, Mode=TwoWay, Converter={StaticResource ValueConverter}}" Style="{StaticResource EstiloCheckBox}" HorizontalAlignment="Left" Margin="21,202.98,0,0" Width="86" Height="22" VerticalAlignment="Top" TabIndex="4">
<telerik:RadToggleButton.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFEBEBEB" Offset="0.074"/>
<GradientStop Color="#FFD2D2D2" Offset="0.93"/>
<GradientStop Color="#FFC6C6C6" Offset="0.561"/>
<GradientStop Color="#FFEDEDED" Offset="0.504"/>
<GradientStop Color="#FFF3F3F3" Offset="1"/>
<GradientStop Color="White" Offset="0.017"/>
</LinearGradientBrush>
</telerik:RadToggleButton.Background>
</telerik:RadToggleButton>
</Grid>

<Grid x:Name="pnlConsulta" Height="322">
<telerik:RadGridView x:Name="grdGridConsulta" ItemsSource="{Binding}" Margin="19,20.675,23,8" ShowGroupPanel="False" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" AutoGenerateColumns="False" ColumnWidth="Auto" CanUserInsertRows="False" IsReadOnly="True">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Header="[lblCodigo]" DataMemberBinding="{Binding CA001, Mode=TwoWay}" UniqueName="CA001" HeaderTextAlignment="Center" TextAlignment="Right"/>
<telerik:GridViewDataColumn Header="[lblTitulo]" DataMemberBinding="{Binding CA002, Mode=TwoWay}" UniqueName="CA002" HeaderTextAlignment="Center"/>
<telerik:GridViewDataColumn Header="[lblEjecutable]" DataMemberBinding="{Binding CA003, Mode=TwoWay}" UniqueName="CA003" HeaderTextAlignment="Center"/>
<telerik:GridViewDataColumn Header="[lblID]" DataMemberBinding="{Binding CA004, Mode=TwoWay}" UniqueName="CA004" HeaderTextAlignment="Center"/>
<telerik:GridViewCheckBoxColumn Header="[chkInactivo]" DataMemberBinding="{Binding CA005, Mode=TwoWay, Converter={StaticResource ValueConverter}}" UniqueName="CA005" HeaderTextAlignment="Center"/>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
</Grid>

however when I change text into any TextBox, cells into radgridView doesn't reflect changes, I guess due to IsReadOnly="True" property I Set as I need only from Details panel users can make changes, so:

1 - I need those changes be reflected in radGridView, how can I do this?

2 - RadgridView is binded by DataContext where source is a DataTable.DefaultView. My second question is, Any changes happen in cells affects automatically data rows into DataTable? - I need this happen in this way

Thanks for your help

ENTERPRISE INTERNATIONAL SAS
Top achievements
Rank 1
 answered on 14 Sep 2010
6 answers
167 views
Hello,
Very easy scenario, I have a listbox in TileviewItem 1.

When I select a ListboxItem I want pass some of the data to the other TIles.

I'm able to bind Data to the  RadfluidContentControl.SmallContent and Normal Content(restore).
The issue is it drops the binding in the RadFluidContentControl.LargeContent.  

If your only binding to One .LargeContent it's fine, when your binding to another its drops the first binding.

Thoughts, 
Rick Mueller
Rick Mueller
Top achievements
Rank 1
 answered on 14 Sep 2010
2 answers
241 views

Hi!

I have a radgridview readonly = true bounded to a DataTable datasource DataContext. Also I have a details panel with textboxes binding like ElementName=grdGridConsulta, Path=Selected.Column, Mode=TwoWay, UpdateSourceTrigger=Explicit.

To Insert a new row and put textBoxes empty I had to do following:

grdGridConsulta.IsReadOnly = false;
grdGridConsulta.BeginInsert();
grdGridConsulta.IsReadOnly = true;
 

this add a new row to the grid and automatically blank every textboxes and set isReadOnly=true again. I put text on textboxes and next save changes, so, I do like this txtID.GetBindingExpression(TextBox.TextProperty).UpdateSource(); when this happen, grdGridConsulta source doesn't reflect changes from target, but if I add this code line - grdGridConsulta.Rebind(); - grdGridConsulta reflects changes from target. Is it necessary Rebind to accomplish the update???

thanks

P.D: please, I left waiting for an older question not answered not even to know answer is not known.

ENTERPRISE INTERNATIONAL SAS
Top achievements
Rank 1
 answered on 14 Sep 2010
8 answers
227 views
Hi,

  • i have to bind a Textbox to a current cell.value (Excel-like Editbox behavior, if you type into  a gridcell the typed char appears directly in the Textbox and vice-versa).

  • UpdateSourceTrigger=PropertyChanged seems not to work with a gridcell.

  • Text="{Binding ElementName=RadGridView1, Path=CurrentCell.Value} doesn't work ?

regards,
Juergen
juergen
Top achievements
Rank 1
 answered on 14 Sep 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
PersistenceFramework
DataPager
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
ProgressBar
Sparkline
LayoutControl
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
Rating
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?