Telerik Forums
UI for WPF Forum
3 answers
124 views
I need a checkbox column that has a checkbox control in the header that will mimic what the GridViewSelectColum does.  I cannot use the GridViewSelectColumn because I'm not looking to select all rows - I just want to check all rows - like mark all as read functionality.  To achieve this I simply put a CheckBox control in the header of my bool column and set the binding to a property in my VM called CheckAll.

<CheckBox IsChecked="{Binding CheckAll, diagnostics:PresentationTraceSources.TraceLevel=High}"></CheckBox>

The setter on my property is not being called and when I added the diagnostics the binding does not show up.  However, when I move the checkbox outside of the grid it works fine - so I'm thinking the reference is lost?

Thanks,

Greg


Pavel Pavlov
Telerik team
 answered on 07 Jul 2010
1 answer
125 views

Hi

Is someone known where is the sing of the plus (+) in the Row Details?

Best Regards

Ehud

Vlad
Telerik team
 answered on 07 Jul 2010
1 answer
112 views
We use the 2009 Q3 Rad control.  Also we use MVVM.  the SelectedItem is bound to prop in ViewModel.  When clicking on a GridViewdataColumn, the setter for SelectedItem is called and the row is highlighted, but for any CellTemplate is clicked,  the setter for SelectedItem is NOT called and the row is NOT highlighted.   Is any property I can set to make the row is selected when Clicking the cell?

Thanks!

Amy
Vlad
Telerik team
 answered on 07 Jul 2010
4 answers
82 views
Hello,
I am running into a problem with the RadTileView, and the RadFluidContentControl.  I am binding the ItemsSource to a list in my ViewModel, and in turn, I am using the ContentTemplate to render the items, I added a RadFluidContentControl, and use the SmallContentTemplate, MediumContentTemplate, and LargeContentTemplate but it never changes the content in the template,  The same xaml using hard coded content seems to work fine.  Is this a bug in the RadFluidContentControl,or am I using it wrong? 
Below is the Xaml that I am working with.  Rooms is a list of classes with a "DisplayName" property.

Thanks in advance for any help.
        <telerik:RadTileView Margin="8" MinimizedColumnWidth="220" ItemsSource="{Binding Rooms}" > 
            <telerik:RadTileView.ItemTemplate> 
                <DataTemplate> 
                    <TextBlock Text="{Binding DisplayName}">  
                    </TextBlock> 
                </DataTemplate> 
            </telerik:RadTileView.ItemTemplate> 
            <telerik:RadTileView.ContentTemplate> 
                <DataTemplate> 
                    <telerik:RadFluidContentControl BorderBrush="black" BorderThickness="2" SmallToNormalThreshold="190, 140" 
                                    NormalToSmallThreshold="190, 140" NormalToLargeThreshold="320, 320" 
                                    LargeToNormalThreshold="320, 320" ContentChangeMode="Automatic">  
                        <telerik:RadFluidContentControl.SmallContentTemplate> 
                            <DataTemplate> 
                                <Grid> 
                                    <TextBlock Text="{Binding DisplayName}"></TextBlock> 
                                    <TextBlock Text="small"></TextBlock> 
                                </Grid> 
                            </DataTemplate> 
                        </telerik:RadFluidContentControl.SmallContentTemplate> 
                        <telerik:RadFluidContentControl.ContentTemplate> 
                            <DataTemplate> 
                                <Grid> 
                                    <TextBlock Text="{Binding DisplayName}"></TextBlock> 
                                    <TextBlock Text="Medium"></TextBlock> 
                                </Grid> 
                            </DataTemplate> 
                        </telerik:RadFluidContentControl.ContentTemplate> 
                        <telerik:RadFluidContentControl.LargeContentTemplate> 
                            <DataTemplate> 
                                <local:RoomControl Margin="10" HorizontalAlignment="Left" VerticalAlignment="Top"  DataContext="{Binding}"/>  
                            </DataTemplate> 
                        </telerik:RadFluidContentControl.LargeContentTemplate> 
                    </telerik:RadFluidContentControl> 
                </DataTemplate> 
            </telerik:RadTileView.ContentTemplate> 
        </telerik:RadTileView> 
 
Lance
Top achievements
Rank 1
 answered on 06 Jul 2010
1 answer
191 views
I have set the ItemsSource of my combobox column to a list of custom objects.  This works fine and I am able to update my object with the selected item from the combobox.  The problem is that my users will need to be able to set this column to null, so I add a null to the list of objects.  I can see the null in the list fine, but whenever I select it, the property of the DataMember SalesRep does NOT get set at all.  I have to select a different item in the list.  I've put a break point on the Property set and it isn't firing at all on null.  Is this a bug, or is there a "better" way?

    <DataTemplate DataType="{x:Type lib:Security.UserInfo}">
        <TextBlock>
                <TextBlock.Text>
                    <MultiBinding StringFormat="{}{0}, {1}">
                        <Binding Path="LastName" />
                        <Binding Path="FirstName" />
                    </MultiBinding>
                </TextBlock.Text>
        </TextBlock>
    </DataTemplate>  
...
<telerik1:GridViewComboBoxColumn Name="SalesRepColumn" Header="Sales Rep" DataMemberBinding="{Binding SalesRep, ValidatesOnDataErrors=True,ValidatesOnExceptions=True,UpdateSourceTrigger=PropertyChanged}"/>
...
CollectionViewSource userInfoSource = this.FindResource("userInfoSource"as CollectionViewSource;
var ul = UserInfoList.GetUserInfoList().OrderBy(u => u.LastName).ToList();                        
ul.Insert(0, null);
userInfoSource.Source = ul;
SalesRepColumn.ItemsSource = userInfoSource.View;

...

public UserInfo SalesRep {
get { return GetProperty(SalesRepProperty); }
set { _salesRep = value; }
}


Pavel Pavlov
Telerik team
 answered on 06 Jul 2010
1 answer
107 views
Hi All,

I have a Radgrid element with auto generate columns set to true,
I want to change background color of cells according to the values that are bounded.

How this can be done programatically?
 
I don't specify the coulmns in xaml..? and I can't hook to some appropriate event..
and moreover I can't loop over the rows and the cells.

Please advise,
Mark
Vlad
Telerik team
 answered on 06 Jul 2010
1 answer
73 views
Is it possible to Handle the event for certain items in my Outlook bar, for some of the items I wish to expand the Content and show it in the Pane.

For two of my items, I just want to get the event of it being clicked and selected, but without it expanding in the bar.

I'd like this with Databinding Style if possible.


Cheers, David Poole.
Viktor Tsvetkov
Telerik team
 answered on 06 Jul 2010
1 answer
141 views
Hi,

I'm trying to create a custom control library using telerik controls as base clases, and creating a default styleguide based on the default telerik styles for each control.

Basically, what I have (as if I was extending from standard WPF controls) is a ResourceDictionary (Generic.xaml) with a Targeted Style for each Custom Control, using the 'BasedOn' property. Something like this:

<Style BasedOn="{StaticResource {x:Type ComboBox}}"  
       TargetType="{x:Type local:MyComboBox}">  
        <Setter Property="Background" Value="Red" />  
        <Setter Property="Foreground" Value="DarkGray" />  
</Style> 



Regrettably, it seems this doesn't work out of the box with telerik, I mean, using RadComboBox as StaticResource. I've also tried using the ThemeResourceKey with no luck:

<Style TargetType="{x:Type local:MyComboBox}"  
               BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Office_BlackTheme, ElementType=Controls:RadComboBox}}">  
    <Setter Property="Background" Value="Red" />  
    <Setter Property="Foreground" Value="DarkGray" />  
</Style> 


The MyComboBox file looks like this:
public class MyComboBox : RadComboBox  
{  
        static MyComboBox ()  
        {  
            DefaultStyleKeyProperty.OverrideMetadata(typeof(MyComboBox), new FrameworkPropertyMetadata(typeof(MyComboBox)));  
        }  
}  


I also tried overriding the TargetType of the inherited control, again, no luck:

[LocalizabilityAttribute(LocalizationCategory.NeverLocalize)]  
[Ambient]  
public Type TargetType  
{  
    get { return typeof (RadComboBox);}   
}  

Any suggestions?

Thanks,

--
R.

Pana
Telerik team
 answered on 06 Jul 2010
4 answers
282 views
How to add the Rad ContextMenu to Application resource so that it can be used on other windows as well.
Xaria D
Top achievements
Rank 1
 answered on 06 Jul 2010
1 answer
137 views


Hi,

I’m trying to implement a piece of functionality on a floating window that will minimise/re-group the floating window back to the main area of the docking control.

Is there a way to achieve this?
Chris.

Chris Ryder
Top achievements
Rank 1
 answered on 05 Jul 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
Slider
Expander
TileList
PersistenceFramework
DataPager
TimeBar
Styling
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
CardView
DataBar
WebCam
FilePathPicker
Licensing
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?