Telerik Forums
UI for WPF Forum
6 answers
532 views
I have a RadGridView in which I need a column of checkboxes.  My problem?  I need a checkbox in the header that will cause all the checkboxes in the column to be selected - and I need that checkbox and its text to match the style of the other headers, regardless of what theme might be selected.

From this thread I'd thought that this would work:

<telerik:GridViewDataColumn
        IsReadOnly="True"
        >
    <telerik:GridViewDataColumn.Header>
        <CheckBox
                                        telerik:StyleManager.Theme="Metro"
                    x:Name="deleteFoo"
                    >
            Delete?
        </CheckBox>
    </telerik:GridViewDataColumn.Header>
    <telerik:GridViewDataColumn.CellTemplate>
        <DataTemplate>
            <CheckBox
                    IsChecked="{Binding Path=isFoo,Mode=TwoWay}"
                    />
        </DataTemplate>
    </telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>

It doesn't.  In the Metro theme, header text is drawn in grey. My Delete? header text is drawn in black.

What I don't want is to apply a specific foreground color so that it matches Metro. Because if the theme were to be changed, it'd not match.  (I also don't want to apply a hard-coded theme name, but I was hoping that I could bind to a variable that'd be set by my theme initializing code, but there's no point in worrying about that, when the literal string doesn't).

Just on the off chance, I've tried to set the theme in the code-behind:

StyleManager.SetTheme(this.deleteFoo, new MetroTheme());

And I've tried to set the theme from the parent:
StyleManager.SetThemeFromParent(this.deleteFoo, this);

None if it has worked.  The CheckBox always draws black, regardless of the theme I've tried to attach to it.
Jeff
Top achievements
Rank 1
 answered on 13 Sep 2012
0 answers
124 views
Hi,

Validation in case of heritance:

  public class Lookup : ValidationBase
    {
        [Required(ErrorMessage = "Das Feld 'Name' muss gefüllt sein.")]
        public string Name
        {
            get { return this._name; }
            set
            {
                this._name = value;
            }
        }
 
public class Child : Lookup
    {
     ...
      }

I want to disable Validation of child object in Dataform:
- Only Property Name
- All Properties

is it posible to disable Validation? why there is no ValidatesOnDataErrors="None" property like by gridview?

is it also posible to disable validation on DataField?

Thanks!
Dmitrijs
Top achievements
Rank 1
 asked on 13 Sep 2012
1 answer
203 views
Is there any way to determine the number of items that have overlapping timespans and are therefore displayed vertically one below the other? To clarify, I'm interested in the maximum number of items in the whole timeline that are displayed below other items.

If there are too many items at the same time, the items happen to overlap each other (see attached screenshot, top image). I want to automatically adjust the height of the RadTimeline so that the items don't overlap anymore, but fit in the control without overlapping. (Actually I want to adjust the size of the TimelineItemContainer via a custom style, but what matters is that I get the needed height - the bottom image on the attached screenshot is what I'm trying to achieve with automatical height detection)

I guess the RadTimeline control knows that height internally anyway, because otherwise it wouldn't know how to layout the overlapping items when there isn't enough space. Is there any way to get the values I'm looking for?
Tsvetie
Telerik team
 answered on 13 Sep 2012
1 answer
129 views
Hello,
I have got some code:

<Application x:Class="QualerDA.App"<br>             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"<br>             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="Views/LoginWindow.xaml"><br></Application>

Where LoginWindow.xaml is a RadWindow Created as User Coontrol

<telerik:RadWindow<br>    x:Class="SomeProject.SomeFOlder.LoginWindow"<br>    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"<br>    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"<br>    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"<br>    telerik:StyleManager.Theme="Vista"><br>    <Grid> ... </Grid><br></telerik:RadWindow>

 When I sturtup my project, I have got the next (see attach):

How to get rid of the System window?
Sergiy
Top achievements
Rank 1
 answered on 13 Sep 2012
0 answers
106 views
Hello,
I have got some code:

<Application x:Class="QualerDA.App"<br>             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"<br>             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="Views/LoginWindow.xaml"><br></Application>

Where LoginWindow.xaml is a RadWindow Created as User Coontrol

<telerik:RadWindow<br>    x:Class="SomeProject.SomeFOlder.LoginWindow"<br>    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"<br>    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"<br>    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"<br>    telerik:StyleManager.Theme="Vista"><br>    <Grid> ... </Grid><br></telerik:RadWindow>


When I sturtup my project, I have got the next (see attach):




Sergiy
Top achievements
Rank 1
 asked on 13 Sep 2012
1 answer
120 views
Hi see that WinForms GridView has a beautiful Conditional Formatting dialog that let the user formatting the grid at runtime. I cannot find the same thing for the GridView for Wpf. Does it exist a prebuild dialog? or if not, what is the quicker pattern to create it?

Thanks in advance (and sorry for my english)
Mauro
Vlad
Telerik team
 answered on 13 Sep 2012
4 answers
152 views
Hi Team,

Am working with WPF MVVM Pattern using rad controls.
Now am using Radcolorpicker. Instead of events i want to use Command binding to call the code which is in viewModel.
But i didn't find the Command property for RadColorpicker. Then how can i do this. Reply me asap.

Regards,
Srinivas.
Petar Mladenov
Telerik team
 answered on 13 Sep 2012
2 answers
166 views
Is there a way to instruct the RadGridView to display loading animation while it is fetching data from the bound VirtualQueryableCollectionView(query) { LoadSize = 10 }?

Probably not when scrolling, but when it's loading the initial data...

I have tried DataLoadMode="Asynchronous" but that doesn't seem to do the trick...
Wenrong
Top achievements
Rank 1
 answered on 13 Sep 2012
4 answers
235 views
Hi,

I have been looking at the Command example in the wpf examples and I'm trying to bind a button click to a Grid Command

I have a RibbonBar and on the RibbonBar I have some navigation buttons (First,Last,Next,Previous)

I then have a RadTabControl with a few tab pages on I have a ContentTemplateSelector which depending on a value will add a RadGridView with set columns to the tab page.

it is this GridView i'm trying to add the bindings too.

Hope I have explained what i'm trying to do :)

thanks David
David
Top achievements
Rank 2
 answered on 12 Sep 2012
0 answers
226 views
When I am using RadGridView in my xaml and have  IsFilterable = "True" on the columns (GridViewDataColumn), I am able to see the filter icon for the required columns.

When I click on the filter icon on the column header, a nice filter drop down comes up.

However, when I try to filter based on any filter in  "Show rows with value that" drop down options, the filter stops responding and does not collapse either. It's only when I click outside the application, the filter collapses (so the filter does not serve any purpose of filtering).

Any idea why this is happening, since I am don't have any custom code. Is this a bug in the control itself?
Gautam
Top achievements
Rank 1
 asked on 12 Sep 2012
Narrow your results
Selected tags
Tags
+? 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?