Telerik Forums
UI for WPF Forum
1 answer
135 views
I'm thinking of a hybrid control that would allow the user to select a year, a month in a year a date, or collection of dates.

My scenario is that we have an application that sits on top of an Analysis Services Cube.  In that cube we have a date dimension and you can use that dimension to slice data by year or month or date or set of dates.

My current implementation involves a TreeView - where the user selects year or month and then uses the calendar to select a date (screenshot).  This allows then to select the Year by selecting that TreeNode, the month, or a specific date in the month.

However, I don't really love this implementation.  I like the contextual representation and ease of mouse gesture movement in the RadCalendar control.  Particularly, drilling up and down to through the views (Decade View, Year View).  I have this nagging feeling that I could customize the control in some way so that I could get it to work for my uses instead.  For example in the Year View, instead of clicking the month drilling down to the Month View - change it so clicking the Month selects the month instead - and instead change the drilldown to be attached to a linkbutton on the month text abbreviation (screenshot).

Would something like that be possible?

If so, I'm not sure how to go about doing that.  I tried loading up Expression Blend 3 and dragging the RadControl into it, thinking it's got to be somewhere in the template/style area that I do this but I get an error 'Cannot locate resource 'themes/genericvista.xaml'' (screenshot).  Admittedly by Blend experience is terrible but I'd like to work on that.

Am I on the right track?
Kaloyan
Telerik team
 answered on 09 Jun 2010
1 answer
114 views
I just downloaded and installed the latest WPF trial version. The demo solution file appears to be in VS 2010 format. Is there and where can I download the VS 2008 Solution file for the latest demo?

Boyan
Telerik team
 answered on 09 Jun 2010
1 answer
106 views
Good morning,
 I would like to use the transition control to avoid building a storyboard.

My Code is :

private

 

 

void btnDisplay_Click(object sender, RoutedEventArgs e)

 

{

 

 

try

 

{

 

 

for (int i = 1; i < 9; i++)

 

{

 

 

Image myImg = new Image();

 

myImg.Source =

 

new BitmapImage(new Uri("C:\\00002512\\00000000" + i.ToString() + ".TIF", UriKind.Absolute));

 

 

 

this.TransitionControl1.Content = myImg;

 

 

 

this.radProgressBar1.Value = i;

 

 

}

}

 

 

catch (Exception ex)

 

{

 

 

MessageBox.Show(ex.Message);

 

}

}

I get this error : "Cannot perform action because the specified Storyboard was not applied to this object for interactive control." when I try to load the second image.

Can you help me?

thanks in advance
   Max

Miroslav Nedyalkov
Telerik team
 answered on 09 Jun 2010
1 answer
125 views
Hi,

I'm trying to have custom TabItems in a RadGroupPane in DocumentsHost. As I'm understand RadGroupPane items are rendered using TabItemPresenter (looked at RadGroupPane template) and are RadTabItem controls. Problem is that I can not get them to style.
A litle sample or idea how to set custom template for TabItem's in a RadGroupPane would be really good, as setting it in RadGroupPane resources as style with TargetType for RadTabItem seems don't work.

Thanks,
Saulius
Pana
Telerik team
 answered on 09 Jun 2010
8 answers
913 views
Hello,

I have a RadGridView with a custom row style targeting GridViewRow (set using RowStyle property and defined in resource dictionary).
In that style I have a control template targeting GridViewRow.
In that template I have a couple of GridViewCells definitions.
Here is one of them, for example:

<telerik:GridViewCell x:Name="theCell"  
                                        BorderThickness="0" 
                                        Foreground="{StaticResource ColorMessageText}" 
                                        Value="{Binding Owner}" 
                                        Margin="0,0,0,2" 
                                        Content="Owner" 
                                        Background="{x:Null}" 
                                        BorderBrush="{x:Null}" 
                                        FontSize="11"                                    
                                        HorizontalAlignment="Left" 
                                        HorizontalContentAlignment="Left" 
                                        Width="90" 
                                        Visibility="{Binding Column.IsVisible, Converter={StaticResource VisibilityOfBool}, ElementName=theCell}"/> 


Now, what I am trying to accomplish is to bind the Visibility property to the column IsVisible property (using the required converter).
The problem is that both Column and DataColumn properties of the GridViewCell are unknown at run time (saw it using Snoop).

How do I make my GridViewCell hide when the matching column is hidden?

Thanks,
Gili
Gili Korman Golander
Top achievements
Rank 1
 answered on 09 Jun 2010
3 answers
362 views
Hello Telerik. I've encountered a problem while styling the GridView component. As you can see from the attached image, there are some black borders around the header cells and around the row content as well, that i want to remove. Hope you can help me with this. Thank you  
Kalin Milanov
Telerik team
 answered on 09 Jun 2010
1 answer
75 views
Hello,

I try customize control in Blend 4. But it doen't allow edit styles(Only suggests to create the empty)
Can u share dictionary with default RadGridView styles?
Vlad
Telerik team
 answered on 08 Jun 2010
2 answers
264 views
Hello,

I've already created a topic in this forum, and I need your help once again.
I work with the same configuration (it's the same application) : Telerik + MS Prism
Link : Close tabs - RadTabControl + Prism

I have a problem with the Binding and RadTabControl.
I have a button to add a RadTabItem in my RadTabControl, and the content of the RadTabItem work with a ContentTemplate.
The content is a form with some TextBox and each textbox has a Binding with an Object in my Model.

CODE :
So, here the XAML code of my RadTabControl :
<telerik:RadTabControl Name="RadTabControlAddress" SelectionChanged="RadTabControlAddress_SelectionChanged"
                    <telerik:RadTabControl.ItemContainerStyle> 
                        <Style TargetType="{x:Type telerik:RadTabItem}"
                            <Setter Property="ContentTemplate"
                                <Setter.Value> 
                                    <DataTemplate> 
                                        <Grid Name="Grid"
                                            <Grid.ColumnDefinitions> 
                                                <ColumnDefinition Width="100" /> 
                                                <ColumnDefinition Width="*"/> 
                                            </Grid.ColumnDefinitions> 
                                            <Grid.RowDefinitions> 
                                                <RowDefinition /> 
                                            </Grid.RowDefinitions> 
                                            <TextBlock Text="{Loc address1}" Grid.Row="0" Grid.Column="0"></TextBlock> 
                                            <TextBox Grid.Row="0"  Grid.Column="1" Text="{Binding Adresse.Adresse1 }" Height="30" Margin="5"></TextBox> 
                                        </Grid> 
                                    </DataTemplate> 
                                </Setter.Value> 
                            </Setter> 
                        </Style> 
                    </telerik:RadTabControl.ItemContainerStyle> 
                 
                </telerik:RadTabControl> 
(I deleted some field for a short version)

I have a simple RadButton with this event :
private void AddAddressTab() 
        { 
            _model.AddAddress(); 
            RadTabItem itemToAdd = new RadTabItem() 
            { 
                Header = "New Tab" 
            }; 
            RadTabControlAddress.Items.Add(itemToAdd); 
            RadTabControlAddress.SelectedIndex = RadTabControlAddress.Items.Count - 1; 
        } 

The constructor in my XAML.cs is :
public AjouterView(AjouterViewModel model) 
        { 
            InitializeComponent(); 
            // Sauvegarde du model dans un attribut de la classe. 
            _model = model; 
            // On se sert de notre model en tant que DataContext. 
            this.DataContext = model; 
 
            //AddAddressTab(); 
        } 

In my Model I have two attribute :
private IAdresse _adresse = null
        public IAdresse Adresse 
        { 
            get { return _adresse; } 
            set 
            { 
                _adresse = value; 
                OnPropertyChanged("Adresse"); 
            } 
        }
My Model implement INotifyPropertyChanged - (And sorry for french name...)

The AddAddress() Method (in the model) :
public void AddAddress() 
        { 
            IAdresse address = new Adresse("Just a test"); 
            ListAdresse.Add(address); 
            Adresse = address; 
        } 

I not include the system to change the address when we select an other Tab.

PROBLEM :
The first time we add an address (add a Tab in the TabControl), the binding doesn't work. I need to add two address for work. I don't find why ! The binding work only if I click the Button (to add an other address) if there is already a Tab in the TabControl.

ATTACHED FILE :
You can download a demo here : Download

If you need more informations, please tell me.
Thank you in advance for your answer.

Regards,
G.B.

[EDIT] : Nobody shall have the beginning of solution ? I don't find how to fix this problem !
George Bill
Top achievements
Rank 1
 answered on 08 Jun 2010
3 answers
160 views
Hi,
I want to cancel drag operation on right click. i dragged item by pressing left click now i press right click(Simultaneously) and want to cancel drag operation.  This is same behavior as window expolere.

Thanks
Bala
Kiril Stanoev
Telerik team
 answered on 08 Jun 2010
7 answers
290 views
When I try to change the point size on a scatter plot, it doesn't increase in size, it's as if the container is fixed at a size and the point get clipped (so when I draw a circle point of point size 20, i see only a quarter of the circle appear on the graph).

here is my code i'm using to adjust the size:

DataSeries series = new DataSeries();
            ScatterSeriesDefinition l = new ScatterSeriesDefinition();
            l.Appearance.Fill = Brushes.DeepPink;
            l.Appearance.Stroke = Brushes.Black;
            l.PointSize = 20;
            series.Definition = l;

Appreciate your thoughts,
Nelson



James DAmour
Top achievements
Rank 1
 answered on 08 Jun 2010
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?