Telerik Forums
UI for WPF Forum
1 answer
192 views
I have a panel bar and I am using the hierarchialdatatemplate.  I am also using an MVVM pattern.  My question is how can I set the IsSelected flag on my ViewModel with a setter property and/or trigger on mouse over so that I know which item in the panel bar is currently selected during a context menu action.  I have this working on a listview, but I cannot get it to work with the panelbar.  Any help or example would be greatly appreciated.

Thanks

Damon
Tihomir Petkov
Telerik team
 answered on 19 Aug 2009
4 answers
129 views
Using VB in VS2008 with WPF 2009 Q2 Build 724.35.  The problem also showed up using Build 701.
With Build 701, when I added the second group, I got an exception in Telerik.Windows.Data with message
"Specified argument was out of the range of valid values.  Parameter name: position"
With Build 724, the exception is gone, but when grouping by two fields, either run-time or programatically, only the first data record (or the first group) is visible in the grid.  

Here is the code defining the data for the grid: 

 

Dim dsBudget As New BudgetDataSet   
Dim taDetails As New BudgetDataSetTableAdapters.DetailsTableAdapter   
taDetails.Fill(dsBudget.Details)  
RadGridView1.ItemsSource = dsBudget.Details.DefaultView  
   
 
 

 

 
Here is one simple variant of the XAML files I have used(autogenerating the columns still has the same problem):

 

 

 

<Grid>    
  <Grid:RadGridView Name="RadGridView1"   
    AutoGenerateColumns="False" >   
    <Grid:RadGridView.Columns>   
      <Grid:GridViewDataColumn HeaderText="Category"   
        DataMemberBinding="{Binding Path=Category}" >   
      </Grid:GridViewDataColumn>   
    <Grid:GridViewDataColumn HeaderText="Company"   
        DataMemberBinding="{Binding Path=Company}" >   
    </Grid:GridViewDataColumn>   
    <Grid:GridViewDataColumn HeaderText="Amount"   
        DataMemberBinding="{Binding Path=Amount}"   
        DataFormatString="{}{0:f2}" >   
    </Grid:GridViewDataColumn>   
    <Grid:GridViewDataColumn HeaderText="Description"   
        DataMemberPath="Description" >   
    </Grid:GridViewDataColumn>   
    </Grid:RadGridView.Columns>   
  </Grid:RadGridView>   
</Grid>   
 

 

 

 

 

Any insight will be greatly appreciated. 

Thanks,  Dan

 

Dan Martin
Top achievements
Rank 1
 answered on 19 Aug 2009
1 answer
218 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
190 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
166 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
142 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
177 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
230 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
265 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
156 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
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?