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

I am not able to inherit/override style for telrik:GridViewHeaderCell

 I have Common ResourceDictionary  Style.Xaml , it has

<ResourceDictionary xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <Style TargetType="telerik:GridViewHeaderCell">
        <Setter Property="FontWeight" Value="ExtraLight" />
        <Setter Property="FontStyle" Value="Normal" />
    </Style>
</ResourceDictionary>

Im MyControl.Xaml I have

  <Window.Resources>
        <Style x:Key="CheckBoxHeaderCellStyle"  TargetType="telerik:GridViewHeaderCell">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerik:GridViewHeaderCell">
                        <CheckBox HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    
In code behind I am using

 var dict = new ResourceDictionary
                           {
                               Source = new Uri("MyApp;component/View/styles.xaml", UriKind.Relative)
                           };
Resources.MergedDictionaries.Add(dict);

I apply style in GridDataColumn as

<telerik:GridViewDataColumn HeaderCellStyle="{StaticResource CheckBoxHeaderCellStyle}"/>

In design mode I can see the checkbox in Grid Header.But It does not show a check box in GridHeader.
Vlad
Telerik team
 answered on 19 Aug 2009
1 answer
143 views
I'm setting the grid's datacontext to a dataset with just 100 rows (and 67 columns).

Quite frankly, the gridview's *vertical* scrolling performance sucks - big time. It seems the more columns we have, the worse it gets.  "Deferred" scrolling is not an option (it lags too, BTW).  We need the grid to scroll smoothly as the scroller is dragging down the scrollbar. 

Curiously, horizontal scrolling seems to work just fine, regardless of the number of columns we have in the dataset.

What can we/you do to improve this?


Vlad
Telerik team
 answered on 19 Aug 2009
1 answer
115 views
Is there a way to move the position of a tooltip form the default?  Currently, it is displaying bellow the mouse and that is causing it to go beyond the browser window and cuts it off.  I would like it to show above and to the right of the mouse position.  Thanks.
Hector
Top achievements
Rank 1
 answered on 18 Aug 2009
5 answers
97 views

Hello

I tried putting  the 2009q2 dlls in the GAC and got the following error for the
"Telerik.Windows.Controls.Scheduler.Design.dll":

---------------------------
Assembly Cache Viewer - Install failed
---------------------------
Assembly 'Telerik.Windows.Controls.Scheduler.Design.dll' is required to be strongly named.



Thanks,

Erez
Teodor
Telerik team
 answered on 18 Aug 2009
2 answers
137 views

Hi,

I was wondering whether RadControls for WPF support UI Automation...

So I created very simple WPF application: I dragged four Rad controls on a form (RadDatePicker, RadTimePicker, RadMaskedTextBox and RadNumericUpDown). Then I assigned AutomationProperties.AutomationId for each of Rad controls (for RadDatePicker it was "datePicker", for RadTimePicker "timePicker", for RadMaskedTextBox "maskedTextBox" and for RadNumericUpDown "numUpDown").

Now in c# (in Program.cs to be precise) I written code like this (mainWindow is a AutomationElement which represents main application window):

PropertyCondition datePickerCondition =   
   new PropertyCondition(AutomationElement.AutomationIdProperty, "datePicker");  
AutomationElement datePicker =   
   mainWindow.FindFirst(TreeScope.Element | TreeScope.Descendants, datePickerCondition); //It doesn't find anything  
AutomationPattern[] datePickerPattrens =   
   datePicker.GetSupportedPatterns(); 

FindFirst method does not find anything, however It should if RadControls for WPF would support UI Automation. Out of four controls I've tested only RadNumericUpDown was found this way.

I've also checked my test application window using UISpy - only RadNumericUpDown had AutomationId properly assigned.

So my question are: 

Am I doing something wrong?

If no, when will RadControls for WPF fully support UI Automation?

RadControls for WPF version used in sample application: 2009.2.701.35

Thanks for help

Boyan
Telerik team
 answered on 18 Aug 2009
1 answer
195 views
I use the chart to display some data, but the labels can become very long.
Now I want to use the Default LabelFormat but I do not seem to get it work

I use the following      #LABEL{[a-zA-Z]{0,10}...}

But my string always stays as long as it is. I want the string to be a max of 15 chars and if longer have the tree dots after it
Velin
Telerik team
 answered on 18 Aug 2009
1 answer
214 views
I'm adding items to a treeview programmatically and have set the tag property to a unique value.  How can I loop the items and when I come to my value select the item and then exit the loop.  I'm using


 

For Each item As RadTreeViewItem In RadTreeView1.Items

 

 

If CInt(item.Tag) = 3 Then

 

item.IsSelected =

True

 

 

Exit For

 

 

End If

 

 

Next

However I need to get the child items to the first treeview item

Thanks

 

Valentin.Stoychev
Telerik team
 answered on 18 Aug 2009
2 answers
120 views
I need to get the value of the selectedItem NumeroIncidencia column, I looked at the examples and following the steps that detail does not work, I can help.

Thank you.

 

A simulation code to see what I'm doing

<Grid>   
    <Button Height="36" HorizontalAlignment="Right" Margin="0,11,177,0" Name="cmdBuscar" VerticalAlignment="Top" Width="36">   
        <Image Source="iconos/buscar.gif" Name="Image5" />   
    </Button>   
    <ListBox Height="100" Margin="0,40,245,0" Name="ListBox1" DisplayMemberPath="NumeroIncidencia" VerticalAlignment="Top" />   
    <telerik:RadGridView x:Name="BuscarGrid" Margin="0,160,0,0" AutoGenerateColumns="False">   
        <telerik:RadGridView.Columns >   
            <telerik:GridViewDataColumn IsReadOnly="True" Header="Numero Incidencia" UniqueName="NumeroIncidencia" Width="150"/>   
            <telerik:GridViewDataColumn IsReadOnly="True" Header="Procedencia" UniqueName="DescripcionProcedencia" Width="120"/>   
            <telerik:GridViewDataColumn IsReadOnly="True" Header="Observaciones" UniqueName="Observaciones" Width="300"/>   
        </telerik:RadGridView.Columns>   
    </telerik:RadGridView>   
</Grid> 
 
 
Private Sub cmdBuscar_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles cmdBuscar.Click   
    Dim rd As New ReturnData.ReturnDataSoapClient   
    Dim ds As DataSet   
    ds = rd.ReturnDataset("SELECT NumeroIncidencia, DescripcionProcedencia,  Observaciones FROM Incidencias")   
    Me.BuscarGrid.ItemsSource = ds.Tables(0)   
    Me.ListBox1.ItemsSource = Me.BuscarGrid.SelectedItems   
End Sub   
 
I have no ListBox1 in the desired value
Carles Vazquez
Top achievements
Rank 1
 answered on 17 Aug 2009
0 answers
70 views

 

 

 

 Resolved.

Hemal
Top achievements
Rank 1
 asked on 17 Aug 2009
3 answers
117 views
I can display the data how I want it with my custom column headers and such. However, I have some columns in my child tables I'd like to have aggregates on and display in a footer in the child table. Can this be done?

Thanks,
Byron
Vlad
Telerik team
 answered on 17 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?