Telerik Forums
UI for WPF Forum
4 answers
94 views
Hello,

I have been playing around with this all day and have given up.
Based off the level of the treeview, I would like to change the expander line color.   I tried to add a style to my ToggleButton x:Name="Expander" line in the RadTreeViewItem template figuring that would work but has no success.

I so far have only been able to change the expander for the entire treeview in the main treeview control.

Thanks for the help
Ryan



Bobi
Telerik team
 answered on 07 Jun 2010
2 answers
96 views
I've just updated to the latest release 2010_1_0422_DEV using the instructions in the Support section (manual update, no msi).

The VS2008 help content is now out of date. How do I update it?

I have downloaded the Documentation folder but don't know what to do with it.

Thanks.
Ryan
Top achievements
Rank 1
 answered on 07 Jun 2010
3 answers
125 views
Hello,

I'm trying to wrap the Telerik (Q1 2010) GridViewRow class within my own CustomGridViewRow implementation. However the items that are generated if I set the ItemsSource are not created correctly if I use a CustomGridView class that extends RadGridView and overrides the IsItemItsOwnContainerOverride and GetContainerFromItem methods.

public class CustomGridView : RadGridView 
    protected override bool IsItemItsOwnContainerOverride(object item) 
    { 
        return (item is CustomGridViewRow); 
    } 
 
    protected override DependencyObject GetContainerFromItemOverride(object item) 
    { 
        return new CustomGridViewRow(); 
    } 
 
public class CustomGridViewRow : GridViewRow 
}

I suppose the problem is my implementation of the GetContainerFromItem method simply returning a new CustomGridViewRow instance which works fine on the RadTabControl to extend the TabItems with Closable support, but there the method signature has no item parameter so I guess I'm missing something here.

I hope someone can point me into the right direction.
Best regards,
Peter
Milan
Telerik team
 answered on 07 Jun 2010
2 answers
148 views
The RadComboBox doesn't seem to use the EmptySelectionBoxTemplate when IsEditable = true.  Is it supposed to, or is there another template to use?

<telerik:RadComboBox EmptyText="Select an answer"
                 IsEditable="True"
                 ItemsSource="{Binding Answers}">
    <telerik:RadComboBox.EmptySelectionBoxTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding}" FontStyle="Italic" Foreground="Red" Opacity="0.4"/>
        </DataTemplate>
    </telerik:RadComboBox.EmptySelectionBoxTemplate>
</telerik:RadComboBox>

Thanks
Valeri Hristov
Telerik team
 answered on 07 Jun 2010
1 answer
55 views
Hello,

I have a problem with the drag and drop, my scenario is the following:
I have a RadDropDownButton that has a ListBox as it DropDownContent and I have another ListBox at the same level as the RadDropDownButton. This works like this: the user press the RadDropDownButton, the ListBox associated with the pressed RadDropDownButton appears and the user can drag and drop an item from the ListBox to another ListBox. The problem is that when I drag an item, the ListBox(DropDownContent) closes and the position of the arrowCue is set to the top left corner of the main window. 
I think that the ListBox(DropDownContent) should not close until the item is dropped into the target.

I hope you can help me, maybe I'm doing something wrong.

Best regards.
Valentin.Stoychev
Telerik team
 answered on 07 Jun 2010
2 answers
63 views
First off, congratulations on a great set of controls.

I'm using the TileView for a settings page, and I don't want users to be able to minimise all the tiles - ie. I always want one of the items to be maximised. I was able to do this from the TileStateChanged event handler with the following code on each TileViewItem:

private void RadTileViewItem_TileStateChanged(object sender, Telerik.Windows.RadRoutedEventArgs e)  
        {  
            Telerik.Windows.Controls.RadTileViewItem it = (Telerik.Windows.Controls.RadTileViewItem)e.OriginalSource;  
 
            if (it.TileState == Telerik.Windows.Controls.TileViewItemState.Restored)  
            {  
                e.Handled = true;  
            }  
        } 

This seems to work great, although it flips the minimised / maximised icon at the top right of the maximised window, which can look a little strange, although quite acceptable.

Is there a more elegant way of achieving the same?

Thanks.
jwhitley
Top achievements
Rank 1
 answered on 04 Jun 2010
5 answers
88 views
Hi,

First of all want to thank you for adding this great control. 

I tried to use RadTileView control with RadFluidControl in a sample application and it works perfectly as expected. However, when I incorporated the RadTileView into our complex application the first tile item does never get maximized. The rest of the items (except the very first one) maximize and minimize. Changed the order of tile items and the problem remains on the first item. The icon on the top right corner of the TileViewItem changes to minimize/maximize/restore icons, but the view itself never maximizes. Whenever maximizing other views, the first one get minimized as expected.

Tried to use the same control (which contains RadTileView) in another empty application, and this issue does not happen.

The application uses numerous number of controls, including ribbon bar, data grids, MDI child windows, etc.

I'd appreciate if you could help to investigate this issue and solve it.

Thanks,
Ruben.


Vladislav
Telerik team
 answered on 04 Jun 2010
1 answer
67 views
Hi,

I used RadGridview and GroupDescriptor to show the records in group wise

When i am scrolling, some of the records are getting hidden(Showing blank spaces).

Can you help me in this.




Thanks,
Surya.



Maya
Telerik team
 answered on 04 Jun 2010
5 answers
675 views
I'm currently evaluating the GridView component for a prototype of an application and I've run into some problems that may be a show-stopper for us. The architecture that we've decided to use requires that the columns are either autogenerated or (for customization) programmatically created from meta data.

I've investigated the problem with several approaches: HypeLinkColumn, DynamicHyperLinkColumn, programmatic cell template and finally XamlReader cell template. I suspect that the reason is the same, that is that the binding expression for some reason fail to map to the right column in the datacontext.

The following code will produce a DataTemplate that I assign to the CellTemplate. Currently this produces a HyperLink with the content 'System.Data.DataRow', however filling in the PathProperty of the Binding will produces a blank/empty string. This problem persists even though I known (or even hard code) a column name/binding path that I've confirmed is in the current datacontext.  

Is there something I've missed about Binding expression in CellTemplate !?
                        FrameworkElementFactory tbContent = new FrameworkElementFactory(typeof(TextBlock)); 
                        tbContent.SetBinding(TextBlock.TextProperty, new Binding());  
 
                        FrameworkElementFactory hl = new FrameworkElementFactory(typeof(Hyperlink)); 
                        hl.AddHandler(Hyperlink.ClickEvent, new RoutedEventHandler(hl_Click)); 
                        hl.AppendChild(tbContent); 
 
                        FrameworkElementFactory tb = new FrameworkElementFactory(typeof(TextBlock)); 
                        tb.AppendChild(hl); 
 
                        DataTemplate dTemp = new DataTemplate(); 
                        dTemp.VisualTree = tb
                        dTemp.Seal(); 
Finn
Top achievements
Rank 1
 answered on 04 Jun 2010
2 answers
69 views
Hello,

Is it possible to define the color of nocolor ?

I'd like to have transparent for these automatic color

Thanks
Aurore
Bobi
Telerik team
 answered on 04 Jun 2010
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?