Telerik Forums
UI for WPF Forum
1 answer
215 views
Hello,

We've been working with WPF Compenents and using Metro Template as ApplicationTheme. I want to chane the the background color of DocumentPane Title ( the conaitner of the title).

To explain clearly, "Visualizer" text has a container which I want to change the background.
        <telerik:RadDocking x:Name="radDocking1"   BorderThickness="0"  Padding="0" Grid.Row="1"  Background="WhiteSmoke">
            <telerik:RadDocking.DocumentHost  >                
                <telerik:RadSplitContainer >                    
                    <telerik:RadPaneGroup >                        
                        <telerik:RadDocumentPane  Name="ActualContent" Title="Visualizer " CanFloat="False" CanUserClose="False" >         
I had tried couple of possible Templates however, I could not succeed. 

Regards,

Dani
Telerik team
 answered on 14 May 2012
1 answer
140 views
Is possible add text (field) in header where its content is different for each page?
Boby
Telerik team
 answered on 14 May 2012
1 answer
117 views
Hello,

I've been encountering some odd graphics behavior on an XP test machine.  When attempting to use the filter control on a radview, the data in the columns behind the filter dialog is flashing through the filter dialog.  In the attached picture the Rack and Position information shows through the filter dialog and blinks in and out.  Is this a known issue or perhaps an error in my configuration of the tool?

Thanks,
Brandon
Yordanka
Telerik team
 answered on 14 May 2012
2 answers
225 views
I am adding UserControls to a RadTabControl at runtime thus:

            var tabItem = new RadTabItem();
            tabItem.Header = somestring
            tabItem.Content = new RtiDetailViewer();
            ImagesTabControl.Items.Add(tabItem);

Where RtiDetailViewer is a UserControl.

However, I have been unable to find a way to ensure that the added UserControl fills the available space, any help would be appreciated.
Peter
Top achievements
Rank 1
 answered on 14 May 2012
1 answer
120 views
you can get such behaviour, doing following steps:
1. create QueryableCollectionView and filling it any data. Collection have to contain more than one record.
2. Bind this QueryableCollectionView to GridView.
3. Call MoveCurrentToPosition(0) for QueryableCollectionView.

Item in GridView will not be selected, if CurrentPosition for QueryableCollectionView was 0 or -1. But, I think, first record has to be selected.

How can I solve this problem?
Nedyalko Nikolov
Telerik team
 answered on 14 May 2012
1 answer
137 views
Good time of day.
I need to get the GridView and filter the filter to print.
why in the debug properties I see:
http://i49.tinypic.com/20nozt.jpg
Telerik.Windows.Controls.GridView.DistinctValuesFilterDescriptor DistinctFilter;
Telerik.Windows.Controls.GridView.MemberColumnFilterDescriptor filter;
Telerik.Windows.Controls.GridView.FieldFilterDescriptor FieldFilter;

And in the name space they are not.
Why not? 
public Telerik.Windows.Controls.GridView.DistinctValuesFilterDescriptor DistinctFilter;// Does not type in namespace
public Telerik.Windows.Controls.GridView.MemberColumnFilterDescriptor filter;// Does not type in namespace
public Telerik.Windows.Controls.GridView.FieldFilterDescriptor FieldFilter;// Does not type in namespace
public Telerik.Windows.Data.FilterOperator x ;
public Telerik.Windows.Data.FilterCompositionLogicalOperator x ;
And those listings there, but the content is missing. 

How do I read a different filter GridView?  What should I do? 

Rossen Hristov
Telerik team
 answered on 14 May 2012
3 answers
152 views
Hi,

I'm using a RadTreeView control and have got the check list feature to work for me nicely, but am having problems with items in the tree that are disabled.

The tree is dynamically created and uses certain conditions to make some nodes disabled, and set to checked. The tree view is working against a collection of items and if an item from the tree is in that collection, then users should not be able to click on it, or change it's checked status.

the disabled part works perfectly, but when a parent node is clicked, it automatically changes the checked value on all child nodes, including the disabled ones.

is there any way to stop this from happening?

thanks,
nemanja
Petar Mladenov
Telerik team
 answered on 14 May 2012
3 answers
122 views
Hello,

I have an application with several gridviews on separate tabs.  I would like to be able to export the contents of the grids to Excel in a way that each grid goes to a separate tab of the Excel file.  Is there a straightforward way to do this?

Also, I need to add other rows of data to the spreadsheet that are not coming from the gridviews.  Can this be done?
Dimitrina
Telerik team
 answered on 14 May 2012
1 answer
94 views
Hello,

Found a potential bug in the private DataFormDataField.SetLabelStyle() method.  Basically, a user of the DataForm control can cause an exception of their lable content is not the same type as that specified in the LabelStyle's TargetType.  As a fix, we can just check the types and apply if the are compatible.  Here is how to fix the bug:

1) In the 'Telerik.Windows.Controls.DataFormDataField' class, you will see the SetLabelStyle method defined as:
private void SetLabelStyle() {
    FrameworkElement label = this.GetTemplateChild("PART_Label") as FrameworkElement;
    if (label != null &&
        this.ParentForm != null &&
        this.ParentForm.LabelStyle != null) {
        label.Style = this.ParentForm.LabelStyle;
    }
}

Replace this method with:
private void SetLabelStyle() {
    FrameworkElement label = this.GetTemplateChild("PART_Label") as FrameworkElement;
    if (label != null &&
        this.ParentForm != null &&
        this.ParentForm.LabelStyle != null &&
        this.ParentForm.LabelStyle.TargetType.IsCompatibleWith(label.GetType())) {
        label.Style = this.ParentForm.LabelStyle;
    }
}

Please use this fix until Telerik gets around to correcting the bug.

- Rashad Rivera, Omegus Prime, LLC
Ivan Ivanov
Telerik team
 answered on 14 May 2012
10 answers
207 views
Below are some class definitions.  My property grid is named pg

pg.Item = new Parent { Child = new ConcreteChild() };

The property grid will show the Child Property, the displayname attribute is ignored and only properties of the ancestor class are shown.  If I trap the AutoGeneratingPropertyDefinition event the PropertyType shows as AbstractChild.  It appears the propertygrid is not looking at the instance type of the property.

If I bind directly to an instance of type ConcreteChild, I get all the properties. 

pg.Item = new ConcreteChild(); //this works 



    public class Parent
    {
        public AbstractChild Child { get; set; }
    }
    public abstract class AbstractChild
    {
        public string Name { get; set; }
    }

    [DisplayName("Concrete Child")]
    public class ConcreteChild : AbstractChild
    {
        [DisplayName("New Property")]
        public String NewProperty { get; set; }
    }
Ivan Ivanov
Telerik team
 answered on 14 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?