Telerik Forums
UI for WPF Forum
1 answer
200 views
Hi,

Im new in WPF, i just wanna ask how to change the style of tabs on hover or onSelected? Sample add image, or change the font color.
Kindly check the attached image.

Thanks

Dimitrina
Telerik team
 answered on 03 Aug 2010
1 answer
111 views
I have two grids and I am using costume objects to bind them too. I have a master grid that binds fine to a list of objects. When you click on a row it reads the parameter in the object and loads a custom Details Template I then pass the ref of the object to the detail template user control which has another gridview which I try and bind it to a another list within the master object. However it causes the gridview to disappear has anyone seen this before?

**EDIT: Sorry forgot to mention that it only disappears when I add objects to the list. 

Vlad
Telerik team
 answered on 03 Aug 2010
0 answers
62 views

why in the source code of it you re-invented the wheel?

for example your controls doesn't inherit from the wpf base class of them (except the RadMaskedTextBox which inherits from TextBox)

also the RadMaskedTextBox doesn't support passwords

another example is the Mask Property of it

you wrote it from scratch when you could use MaskedTextProvider

and there are counless examples of stuff like this in your code

i'm sure there are reasons that you talked about before doing this

now my question is what were the considerations to write everything from scratch instead of using or inheriting what already exists in the .net framework and Wpf?
why did you decided to do it?

because even though you put out updates very frequently
doing something like this can open a way for some unexpected infrastractural bug
and also prevents you from getting update to it when a new .net framework is released

lets say i preffer the .net code because they have automated testing for it, so that they will release it without bugs

igal a
Top achievements
Rank 1
 asked on 03 Aug 2010
3 answers
161 views
Hi there, is any way to put currency format on a cell depending on another? 
For example In Row 3,5,7 on cell 3 y want to show Euros. In columns 2,4,6 i want to show Dolars depending on cell 4 simbols.

Help me to apply this.

Regards
Maya
Telerik team
 answered on 03 Aug 2010
1 answer
106 views
Hi,
I'm implementing self reference hierarchy using a property relation to a collection of the parent type.
How can I show in the child template the same columns that appear in the parent grid?
I would like to copy the parent grid columns to the child grid.

thanks,
Noam
Vlad
Telerik team
 answered on 02 Aug 2010
2 answers
135 views
I'm trying to change the fontstyle of the a radTreeviewItem. In fact, I want to do this within the code when events are fired. I've tried to add a stackpanel with a textblock in the header but it doesn't seems to work. I've also tried this code:
TextElement.SetFontStyle(treeViewItem, FontStyles.Italic);
without success.

Can you tell me how I could change the font dynamically ?

Thanks
Jean-Francois
Top achievements
Rank 1
 answered on 02 Aug 2010
6 answers
63 views
We use MVVM.  The following code is working fine when using the RadControl Q1 2010. 
<TabControl ItemsSource="{Binding StandardTimeSlotTabs}" SelectedIndex="{Binding StandardSelectedTabIndex, Mode=TwoWay}" >
    <TabControl.ContentTemplate>
    <DataTemplate>          
           <controls:RadGridView ShowColumnFooters="True" ScrollViewer.CanContentScroll="True" 
ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" IsReadOnly="True"  AutoGenerateColumns="False" GridLinesVisibility="None"  ItemsSource="{Binding StandardTimeSlotItems}" 
CurrentItem="{Binding DataContext.SelectedStandardTimeSlotItem, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type vw:OrderEntrySchedulingStandardFieldView}}}"
SelectedItem="{Binding DataContext.SelectedStandardTimeSlotItem, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type vw:OrderEntrySchedulingStandardFieldView}}}"
>        
        <controls:RadGridView.Columns> blah </controls:RadGridView.Columns>
 </DataTemplate>   
   </TabControl.ContentTemplate>  
  </TabControl>

The SelectedItem is bound to a RelativeSource, the Setter and Getter for DataContext.SelectedStandardTimeSlotItem are working fine when row selection changes.

After we updated to Q2 2010, the row selection changes will not fire the Setter of DataContext.SelectedStandardTimeSlotItem, but the getter was callled when the control is loaded.  if I put a stop point in the SelectChanged event, the Selecteditem is changed when the row selection is changing.  It seems the RelativeSource works for the getter, but not when the selection is changed.  Is it a bug or I missed something?   Keep in mind it worked fine in Q1, nothing else is changed.

Thanks!

Amy
Milan
Telerik team
 answered on 02 Aug 2010
1 answer
99 views
Hello,

I downloaded and installed the trial version of the controls as I want to evaluate them.  I see lots of rad controls in my toolbox now.  Walking through a tutorial the very first thing I do is search on RadDocking and it is not there.  The RadDockPanel is there.  Any thoughts on what the problem may be.  The Docking.dll is in the Binaries/WPF folder.

Thanks,

Jason
Jason
Top achievements
Rank 1
 answered on 02 Aug 2010
3 answers
95 views
Hi,

A pane is always showing is visibile even when the content is not.  Or maybe I am confused how the is visible works.

Assuming we have two tabs (Tab1 on the front Tab2 on the back):

The pane in Tab1 content is visible and Tab2 content is not.  I can drag Tab2 out of the docking and now both should be visible.  Is there a way to get the visibility information   How can I get the visiblity of the content using the panes?

Maybe something like IsContentVisible? or IsHeaderVisible?

J
George
Telerik team
 answered on 02 Aug 2010
2 answers
99 views
I'm still very new to Telerik and still getting to know all the ins and outs of the controls.  What I'm doing is implementing a simple grouping mechanism to simulate a property grid.

XAML:

<telerik1:RadGridView Name="ParametersGridView"
                      CanUserDeleteRows="False"
                      CanUserInsertRows="False"
                      IsReadOnly="False"
                      AutoExpandGroups="True"
                      ShowGroupPanel="False"
                      ShowColumnHeaders="False"
                      AutoGenerateColumns="False"
                      HorizontalContentAlignment="Stretch"
                      HorizontalAlignment="Stretch"
                      VerticalContentAlignment="Stretch"
                      VerticalAlignment="Stretch"
                      RowLoaded="ParametersGridView_RowLoaded">
      
    <telerik1:RadGridView.GroupDescriptors>
        <telerikData:GroupDescriptor Member="Category"
                                     SortDirection="Ascending" />
    </telerik1:RadGridView.GroupDescriptors>
      
    <telerik1:RadGridView.Resources>
        <DataTemplate x:Key="GridToolTip">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding Description}" 
                           MaxWidth="300"
                           TextWrapping="Wrap" />
            </StackPanel>
        </DataTemplate>
    </telerik1:RadGridView.Resources>

    <telerik1:RadGridView.Columns>
        <telerik1:GridViewDataColumn Header="Parameter"
                                     DataMemberBinding="{Binding DisplayName}"
                                     Width="150"
                                     IsReadOnly="True" />
        <my:ConfigDataColumn Header="Value"
                              DataMemberBinding="{Binding Value,Mode=TwoWay}"
                              Width="300"
                              IsReadOnly="False" />
        <telerik1:GridViewDataColumn Header="Category"
                                     DataMemberBinding="{Binding Category}"
                                     IsReadOnly="True"
                                     IsVisible="False" />
    </telerik1:RadGridView.Columns>
</telerik1:RadGridView>

I load up the RadGridView.ItemsSource in the control's Loaded event.  When I run it, everything works just fine as expected.  However, when I try to view my control in the VS designer, I get a System.ArgumentException stating:"Invalid property or field - 'Category' for type: Customer".

First of all, I don't know where the "Customer" is coming from, there's no such class/object in my code.  Secondly, is this exception normal since I load my data at runtime?

...Glenn
Glenn
Top achievements
Rank 2
 answered on 02 Aug 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?