Telerik Forums
UI for WPF Forum
0 answers
138 views
Hi, 

I have a footer with two aggregation results, and i want the number s to be right aligned.
like this:  19.65489564
6548 .

I have tried to set TextAlignment="Right" and  FooterTextAlignment="Right" but the result is left aligned.
like this:  19.65489564 6548

Any suggestions? 

Thanks in advance.

<telerik:RadGridView
    x:Name="RadGrid"
    ItemsSource="{Binding Contents}"
    AutoGenerateColumns="False"
    telerik:StyleManager.Theme="Office_Blue"
    RowIndicatorVisibility="Collapsed"
    Width="200"
    Height="300"
    ShowColumnFooters="true"
    ShowGroupPanel="False"
    >
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn
            DataMemberBinding="{Binding Number1}"
            Width=" 1*"
            TextAlignment="Right"
            FooterTextAlignment="Right"
            >
            <telerik:GridViewColumn.Header>
                <TextBlock Text="Numbers"/>
            </telerik:GridViewColumn.Header>
            
            <telerik:GridViewDataColumn.AggregateFunctions>
                <telerik:AverageFunction  SourceField="Number1"  />          
                <telerik:SumFunction  SourceField="Number1" />
            </telerik:GridViewDataColumn.AggregateFunctions>              
             
        </telerik:GridViewDataColumn>
    </telerik:RadGridView.Columns>
</telerik:RadGridView>
Mia
Top achievements
Rank 1
 asked on 12 Sep 2011
1 answer
155 views

Hello

I added sort description in code and the grid loaded sorted.

The problem is when the user added new item or deleted item,

The sort descriptor not refreshes.

How can I solve this?

Best regards

Ehud

Avi Avni
Top achievements
Rank 1
 answered on 11 Sep 2011
1 answer
371 views
I have a radgridview setup liek the following:

<telerik:RadGridView AutoGenerateColumns="False" Margin="10" x:Name="GridViewDealers" Width="Auto" IsReadOnly="True" ShowGroupPanel="False" telerik:StyleManager.Theme="Summer" KeyDown="GridViewDealers_KeyDown" MouseDoubleClick="GridViewDealers_MouseDoubleClick">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn UniqueName="CompanyName" Header="Dealership Name" DataMemberBinding="{Binding CompanyName}" ></telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn UniqueName="AddrLine1" Header="Address Line 1" DataMemberBinding="{Binding AddrLine1}" ></telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn UniqueName="City" Header="City" DataMemberBinding="{Binding City}"></telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn UniqueName="StateCode" Header="State" DataMemberBinding="{Binding StateCode}"></telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn UniqueName="PostalCode" Header="Postal Code" DataMemberBinding="{Binding PostalCode}"></telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn UniqueName="PhoneNumber" Header="Phone Number" DataMemberBinding="{Binding PhoneNumber}"></telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn UniqueName="Email" Header="Email" DataMemberBinding="{Binding email}"></telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn UniqueName="CurrentCustomer" Header="Is Current Customer" DataMemberBinding="{Binding CurrentCustomer}"></telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn UniqueName="Latitude" Header="Latitude" DataMemberBinding="{Binding Latitude}"></telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn UniqueName="Longitude" Header="Longitude" DataMemberBinding="{Binding Longitude}"></telerik:GridViewDataColumn>
        <telerik:GridViewColumn>
            <telerik:GridViewColumn.CellTemplate>
                <DataTemplate>
                    <telerik:RadButton Content="Print Mailing"
                       Command="Print"
                       CommandParameter="{Binding}" />
                </DataTemplate>
            </telerik:GridViewColumn.CellTemplate>
        </telerik:GridViewColumn>
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

but I don't know how to attach a button click event that will be unique i.e. how to find the how to find the data Item associated with the row in which the button is clicked?  Do you have an example.  I'm fairly new to WPF.

Thanks,
Jonathan
Jonathan
Top achievements
Rank 1
 answered on 10 Sep 2011
1 answer
159 views
I have a RadGridView in my application that is crashing the application on a select few tablet pc running Windows XP tablet editiion. Because our (state) department is going the tablet way, I really need to get this fixed. Not just disable tablet input services on the pc.
I'm thinking the problem is because the grid that is causing the problem is heavily customized with Data Templates.

The crash happens when they attempt to scroll horizontally on an editable grid. It's been reported that if InsertRows and DeleteRows is disabled, then the grid behaves normally. So far this error has only been reported by users running on a tablet pc.

Also, another user reported that when he tried to activate the TabItem where this grid lives, the application crashed only when there were items bound to the grid. If the bound collection had no items, it didn't crash. His problem was resolved by disabling Tablet Input Services on his Windows 7 tablet pc.

Could someone look at my code and see if I've done something I shouldn't.
<telerik:RadGridView AutoGenerateColumns="False" ShowGroupPanel="False" Margin="15" x:Name="ActionsGridView"
    ItemsSource="{Binding ActionsTaken}" ColumnWidth="Auto"
     SelectionMode="Extended" CanUserDeleteRows="{Binding DataContext.CanEditActions, ElementName=ResolutionsControl}"
                                 CanUserInsertRows="{Binding DataContext.CanEditActions, ElementName=ResolutionsControl}"
                                 ShowInsertRow="{Binding DataContext.CanEditActions, ElementName=ResolutionsControl}"
                                 SelectedItem="{Binding DataContext.SelectedAction, ElementName=ResolutionsControl, Mode=TwoWay}"
                                 IsSynchronizedWithCurrentItem="True"
                                 ValidatesOnDataErrors="InViewMode"
                                 AddingNewDataItem="RadGridView_AddingNewDataItem" EnableColumnVirtualization="False" EnableRowVirtualization="False">
           <telerik:RadGridView.FilterDescriptors>
               <radData:FilterDescriptor Member="IsDeleted" Value="false" Operator="IsEqualTo" />
           </telerik:RadGridView.FilterDescriptors>
           <i:Interaction.Triggers>
               <i:EventTrigger EventName="Deleting">
                   <cmd:EventToCommand PassEventArgsToCommand="True" Command="{Binding DataContext.DeletingAction, ElementName=ResolutionsControl}" />
               </i:EventTrigger>
           </i:Interaction.Triggers>
           <telerik:RadGridView.Columns>
               <telerik:GridViewColumn CellTemplate="{StaticResource DeleteCellTemplate}" />
               <telerik:GridViewComboBoxColumn Header="Action" UniqueName="Action" DataMemberBinding="{Binding ActionID, Mode=TwoWay, ValidatesOnDataErrors=True}"
SelectedValueMemberPath="ActionID" DisplayMemberPath="Name" ItemsSource="{Binding DataContext.Actions, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=UserControl,AncestorLevel=2}}"
                                               IsComboBoxEditable="True">
               </telerik:GridViewComboBoxColumn>
               <telerik:GridViewDataColumn Header="Date of Action" UniqueName="ActionDate" DataMemberBinding="{Binding DateActionTaken, StringFormat={}{0:d}, ValidatesOnDataErrors=True,UpdateSourceTrigger=PropertyChanged}">
                   <telerik:GridViewDataColumn.CellTemplate>
                       <DataTemplate>
                           <TextBlock Text="{Binding DateActionTaken, StringFormat={}{0:d}, ValidatesOnDataErrors=True}" />
                       </DataTemplate>
                   </telerik:GridViewDataColumn.CellTemplate>
                   <telerik:GridViewDataColumn.CellEditTemplate>
                       <DataTemplate>
                           <telerik:RadDatePicker SelectedValue="{Binding DateActionTaken, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
                             SelectableDateEnd="{Binding Source={x:Static System:DateTime.Now}}"
                             SelectableDateStart="{Binding DataContext.Complaint.DateReceived, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=UserControl,AncestorLevel=2}}" />
                       </DataTemplate>
                   </telerik:GridViewDataColumn.CellEditTemplate>
               </telerik:GridViewDataColumn>
               <telerik:GridViewDataColumn Header="Action By" DataMemberBinding="{Binding ActionByUserID}" MinWidth="120">
                   <telerik:GridViewDataColumn.CellTemplate>
                       <DataTemplate>
                           <TextBlock Text="{Binding ActionBy.FullName}" />
                       </DataTemplate>
                   </telerik:GridViewDataColumn.CellTemplate>
                   <telerik:GridViewDataColumn.CellEditTemplate>
                       <DataTemplate>
                           <StackPanel VerticalAlignment="Stretch" Orientation="Horizontal">
                               <TextBlock Margin="3,0" MinWidth="104"
                                                  Text="{Binding ActionBy.FullName, ValidatesOnDataErrors=True}" />
                               <telerik:RadButton Command="{Binding DataContext.ShowUsersPopup, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=UserControl,AncestorLevel=2}}">
                                   <Image Source="/Complaints.Common;component/Images/magnifier.png" />
                               </telerik:RadButton>
                           </StackPanel>
                       </DataTemplate>
                   </telerik:GridViewDataColumn.CellEditTemplate>
               </telerik:GridViewDataColumn>
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Comments}" Header="Comments" UniqueName="ActionComments" TextWrapping="Wrap" Width="300"
                                                CellEditTemplate="{StaticResource CommentEditorTemplate}">
                   <telerik:GridViewDataColumn.CellTemplate>
                       <DataTemplate>
                           <TextBlock Width="300" Text="{Binding Comments}" TextWrapping="Wrap" />
                       </DataTemplate>
                   </telerik:GridViewDataColumn.CellTemplate>
               </telerik:GridViewDataColumn>
               <telerik:GridViewDataColumn DataMemberBinding="{Binding UserCreated}" Header="Recorded by" IsReadOnly="True" />
               <telerik:GridViewDataColumn DataMemberBinding="{Binding DateCreated}" Header="Date/Time Recorded" IsReadOnly="True" />
           </telerik:RadGridView.Columns>
       </telerik:RadGridView>
Rayne
Top achievements
Rank 1
 answered on 09 Sep 2011
2 answers
171 views
Hi,

Can telerik datagrid has a feature of zoom in and zoom out?
so grid data can be viewed properly.
Guru
Top achievements
Rank 2
 answered on 09 Sep 2011
11 answers
327 views
Hello,

I have a WPF application in which I load a multipage tiff file and use the TileView Control to display the BitmapFrames in tiles. The end user needs to change the order of the pages(tiles) and the save the tiff. The dragging of the tiles works ok but I also need to change the order of the objects in the ObservableCollection<PageViewModel> which is bound to the ItemsSource of the TileView. How can I achieve that ?

Thanks,

Alex.
Peter
Top achievements
Rank 1
 answered on 09 Sep 2011
5 answers
2.4K+ views

Hello,
how i can multi bind a column? I tried the to set multibinding to DataMemeberBinding but i gives me a compilation error

<tel:GridViewColumn.DataMemberBinding> 
     <MultiBinding Converter="{StaticResource PriceByCurrency}" Mode="OneWay">  
            <Binding Path="Price"/>  
            <Binding Path="DefaultCurrency"/>  
      </MultiBinding> 
</tel:GridViewColumn.DataMemberBinding> 

Thanks
Vanya Pavlova
Telerik team
 answered on 09 Sep 2011
4 answers
198 views
I'm dragging and dropping from one of two RadGridViews (Players and Teams) to another RadGridView (Games) which is configured as a 2-level-deep hierarchical grid.  I'm trying to allow users to drag Teams to a Game row and then Players to Game rows, as below:


  1. Team A
  2. Team B
  3. Team C
  4. …
  • Game A
    • Team A
      • Player A
      • Player B
    • Team B
      • Player C
    • Team C
  • Game B
    • Team A
    • Team B
      • Player A
      • Player G

  1. Player A
  2. Player B
  3. Player C
  4. …





How can I determine which row has had (or is about to have) something dropped on it?

I've tried your example that uses

private void RadGridView_Drop(object sender, DragEventArgs e) {
    var destinationRow = SampleGrid.GetElementsInHostCoordinates<GridViewRow>(Mouse.GetPosition(null)).First();
 
    if (destinationRow != null) {
        MessageBox.Show("Dropped on row:" + ((IList) SampleGrid.ItemsSource).IndexOf(destinationRow.DataContext));
    }
}


but it doesn't work, if for no other reason than that Mouse.GetPosition(null) always returns {0,0} if the drag cue is non-null.

How can I determine which target row the droppable object is over at any given time?
Lynne
Top achievements
Rank 1
 answered on 08 Sep 2011
3 answers
176 views
Hello,

I have a a RibbonView hosted in my MainWiindow. All the RibbonTabs (and the ContextualTabs) are defined in the MainWindow.xaml. The second part in the MainWindow is a RadTabControl that is used for showing all ViewModels (and the corresponding Views).
Every UserControl in the RadTabControl has a corresponding ContextualRibbonTab. The Command of the RibbonButtons inside the ContextualTabs are bound to commands in the SelectedItem of the RadTabControl (Commands defined in the ViewModel). Everything works fine, the only problem is, that everytime a new Tab get's loaded in the RadTabControl, WPF tries to bind all the Commands of all ContextualTabs to the currently SelectedItem in the RadTabControl, which causes a lot of binding errors for those commands that don't exist in the currentyl active viewmodel. Is there a way to prevent WPF from rebinding alle the commands, i all want to bind the Commands of the corresponding ContextualTab.

Here is the definition of my RibbonTabs:
<!--Kontext Tab's-->
            <telerik:RadRibbonView.ContextualGroups>
                <telerik:RadRibbonContextualGroup  x:Name="uxContextualGroupCustomerOverview"
                                                       Header="Kunden"
                                                       Color="Goldenrod">
                    <telerik:RadRibbonContextualGroup.Style>
                        <Style TargetType="telerik:RadRibbonContextualGroup">
                            <Style.Triggers>
                                <DataTrigger Binding="{Binding WorkspaceView.CurrentItem.ContextualTabGroup}" Value="Kundenübersicht">
                                    <Setter Property="IsActive" Value="True"/>
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>
                    </telerik:RadRibbonContextualGroup.Style>
                </telerik:RadRibbonContextualGroup>
                <telerik:RadRibbonContextualGroup  x:Name="uxContextualGroupEvents"
                                                       Header="Veranstaltungen"
                                                       Color="Orchid">
                    <telerik:RadRibbonContextualGroup.Style>
                        <Style TargetType="telerik:RadRibbonContextualGroup">
                            <Style.Triggers>
                                <DataTrigger Binding="{Binding WorkspaceView.CurrentItem.ContextualTabGroup}" Value="Veranstaltungsübersicht">
                                    <Setter Property="IsActive" Value="True"/>
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>
                    </telerik:RadRibbonContextualGroup.Style>
                </telerik:RadRibbonContextualGroup>
                <telerik:RadRibbonContextualGroup  x:Name="uxContextualGroupEmployeeOverView"
                                                       Header="Mitarbeiter"
                                                       Color="IndianRed">
                    <telerik:RadRibbonContextualGroup.Style>
                        <Style TargetType="telerik:RadRibbonContextualGroup">
                            <Style.Triggers>
                                <DataTrigger Binding="{Binding WorkspaceView.CurrentItem.ContextualTabGroup}" Value="Mitarbeiterübersicht">
                                    <Setter Property="IsActive" Value="True"/>
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>
                    </telerik:RadRibbonContextualGroup.Style>
                </telerik:RadRibbonContextualGroup>
                <telerik:RadRibbonContextualGroup  x:Name="uxContextualGroupReport"
                                                           Header="Report"
                                                           Color="ForestGreen">
                    <telerik:RadRibbonContextualGroup.Style>
                        <Style TargetType="telerik:RadRibbonContextualGroup">
                            <Style.Triggers>
                                <DataTrigger Binding="{Binding WorkspaceView.CurrentItem.ContextualTabGroup}" Value="Bericht">
                                    <Setter Property="IsActive" Value="True"/>
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>
                    </telerik:RadRibbonContextualGroup.Style>
                </telerik:RadRibbonContextualGroup>
                <telerik:RadRibbonContextualGroup  x:Name="uxContextualGroupMap"
                                                               Header="Karte"
                                                               Color="DarkRed">
                    <telerik:RadRibbonContextualGroup.Style>
                        <Style TargetType="telerik:RadRibbonContextualGroup">
                            <Style.Triggers>
                                <DataTrigger Binding="{Binding WorkspaceView.CurrentItem.ContextualTabGroup}" Value="Karte">
                                    <Setter Property="IsActive" Value="True"/>
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>
                    </telerik:RadRibbonContextualGroup.Style>
                </telerik:RadRibbonContextualGroup>
                <telerik:RadRibbonContextualGroup  x:Name="uxContextualGroupEventRegistrationOverView"
                                                               Header="Veranstaltungsanmeldungen"
                                                               Color="LightSalmon">
                    <telerik:RadRibbonContextualGroup.Style>
                        <Style TargetType="telerik:RadRibbonContextualGroup">
                            <Style.Triggers>
                                <DataTrigger Binding="{Binding WorkspaceView.CurrentItem.ContextualTabGroup}" Value="Veranstaltungsanmeldungsübersicht">
                                    <Setter Property="IsActive" Value="True"/>
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>
                    </telerik:RadRibbonContextualGroup.Style>
                </telerik:RadRibbonContextualGroup>
            </telerik:RadRibbonView.ContextualGroups>
 
            <!--Tabs-->
            <telerik:RadRibbonTab Header="Start">
                <telerik:RadRibbonGroup Header="Gehe zu">
                    <telerik:RadRibbonButton Text="Start" Command="{Binding Path=ShowWorkspaceCommand}" CommandParameter="StartViewModel" LargeImage="/SigiNX;component/Images/32/sigi.png" Size="Large" />
                    <telerik:RadRibbonButton Text="Kunden" Command="{Binding Path=ShowWorkspaceCommand}" CommandParameter="CustomerOverViewModel" LargeImage="/SigiNX;component/Images/32/customer.png" Size="Large" />
                    <telerik:RadRibbonButton Text="Mitarbeiter" Command="{Binding Path=ShowWorkspaceCommand}" CommandParameter="EmployeeOverViewModel" LargeImage="/SigiNX;component/Images/32/employee.png" Size="Large"/>
                    <telerik:RadRibbonButton Text="Veranstaltungs termine" Command="{Binding Path=ShowWorkspaceCommand}" CommandParameter="EventDateOverViewModel" LargeImage="/SigiNX;component/Images/32/event_date.png" Size="Large"/>
                    <telerik:RadRibbonButton Text="Veranstaltungs anmeldungen" Command="{Binding Path=ShowWorkspaceCommand}" CommandParameter="EventRegistrationOverViewModel" LargeImage="/SigiNX;component/Images/32/event_registration.png" Size="Large"/>
                    <telerik:RadRibbonButton Text="Karte" Command="{Binding Path=ShowWorkspaceCommand}" CommandParameter="MapViewModel" LargeImage="/SigiNX;component/Images/32/map.png" Size="Large"/>
               </telerik:RadRibbonGroup>
            </telerik:RadRibbonTab>
 
            <telerik:RadRibbonTab Header="Anzeige" ContextualGroupName="uxContextualGroupCustomerOverview">
                <telerik:RadRibbonGroup Header="Bearbeiten">
                        <telerik:RadRibbonSplitButton Text="Neu" Size="Large" LargeImage="/SigiNX;component/Images/32/customer_new.png"
                                                  Command="{Binding WorkspaceView.CurrentItem.CreateCommand}" CommandParameter="CustomerDetailViewModel"  DropDownButtonPosition="Bottom" DropDownIndicatorVisibility="Visible">
                        <telerik:RadRibbonSplitButton.DropDownContent>
                           <telerik:RadContextMenu BorderThickness="0">
                                <telerik:RadMenuItem Header="neuer Mitarbeiter" Command="{Binding WorkspaceView.CurrentItem.CreateCommand}" CommandParameter="EmployeeDetailViewModel">
                                    <telerik:RadMenuItem.Icon>
                                        <Image Source="/SigiNX;component/Images/16/employee_new.png" />
                                    </telerik:RadMenuItem.Icon>
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem Header="neuer Vertrag" Command="{Binding WorkspaceView.CurrentItem.CreateCommand}" CommandParameter="">
                                    <telerik:RadMenuItem.Icon>
                                        <Image Source="/SigiNX;component/Images/16/contract_new.png" />
                                    </telerik:RadMenuItem.Icon>
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem Header="neue Zustimmungserklärung" Command="{Binding WorkspaceView.CurrentItem.CreateCommand}" CommandParameter="">
                                    <telerik:RadMenuItem.Icon>
                                        <Image Source="/SigiNX;component/Images/16/sign_new.png" />
                                    </telerik:RadMenuItem.Icon>
                                </telerik:RadMenuItem>
                            </telerik:RadContextMenu>
                        </telerik:RadRibbonSplitButton.DropDownContent>
                    </telerik:RadRibbonSplitButton>
                    <StackPanel>
                        <telerik:RadRibbonButton Text="Bearbeiten" Command="{Binding WorkspaceView.CurrentItem.EditCommand}" Size="Medium" SmallImage="/SigiNX;component/Images/16/edit.png"/>
                    </StackPanel>
                </telerik:RadRibbonGroup>
                <telerik:RadRibbonGroup Header="Anzeige">
                    <telerik:RadRibbonSplitButton Text="gruppiern" DropDownButtonPosition="Bottom" Size="Large" LargeImage="/SigiNX;component/Images/32/group_by.png">
                        <telerik:RadSplitButton.DropDownContent>
                            <telerik:RadContextMenu BorderThickness="0">
                                <telerik:RadMenuItem Header="nach Typ" Command="{Binding WorkspaceView.CurrentItem.GroupCommand}" CommandParameter="Typ">
                                    <telerik:RadMenuItem.Icon>
                                        <Image Source="/SigiNX;component/Images/16/employee.png" />
                                    </telerik:RadMenuItem.Icon>
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem Header="nach Bezirk" Command="{Binding WorkspaceView.CurrentItem.GroupCommand}" CommandParameter="Bezirk">
                                    <telerik:RadMenuItem.Icon>
                                        <Image Source="/SigiNX;component/Images/16/contract.png" />
                                    </telerik:RadMenuItem.Icon>
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem Header="nach Zone" Command="{Binding WorkspaceView.CurrentItem.GroupCommand}" CommandParameter="Zone">
                                    <telerik:RadMenuItem.Icon>
                                        <Image Source="/SigiNX;component/Images/16/trainer.png" />
                                    </telerik:RadMenuItem.Icon>
                                </telerik:RadMenuItem>
                            </telerik:RadContextMenu>
                        </telerik:RadSplitButton.DropDownContent>
                    </telerik:RadRibbonSplitButton>
                    <telerik:RadRibbonButton Text="Bericht" Command="{Binding WorkspaceView.CurrentItem.ShowReportCommand}" CommandParameter=".\\Reports\\Kundenbericht.mrt"  Size="Large" SmallImage="/SigiNX;component/Images/32/report.png"/>
                </telerik:RadRibbonGroup>
                <telerik:RadRibbonGroup Header="Gehe zu">
                    <telerik:RadRibbonButton Text="Mitarbeiter" Command="{Binding WorkspaceView.CurrentItem.ShowFilteredWorkspaceCommand}" CommandParameter="EmployeeOverView" Size="Large" LargeImage="/SigiNX;component/Images/32/employee.png" />
                    <StackPanel>
                        <telerik:RadRibbonButton Text="Karte" Command="{Binding WorkspaceView.CurrentItem.ShowFilteredWorkspaceCommand}" CommandParameter="MapView" Size="Medium" SmallImage="/SigiNX;component/Images/16/map.png" />
                        <telerik:RadRibbonButton Text="Verträge" Size="Medium" SmallImage="/SigiNX;component/Images/16/contract.png" />
                        <telerik:RadRibbonButton Text="Produkte" Size="Medium" SmallImage="/SigiNX;component/Images/16/product.png" />
                    </StackPanel>
                    <StackPanel>
                        <telerik:RadRibbonButton Text="Konto" Size="Medium" SmallImage="/SigiNX;component/Images/16/accounting.png" />
                        <telerik:RadRibbonButton Text="Veranstaltungen" Command="{Binding WorkspaceView.CurrentItem.ShowFilteredWorkspaceCommand}" CommandParameter="EventDateOverView" Size="Medium" SmallImage="/SigiNX;component/Images/16/event_date.png" />
                        <telerik:RadRibbonButton Text="Zustimmungen" Size="Medium" SmallImage="/SigiNX;component/Images/16/sign.png" />
                    </StackPanel>
                </telerik:RadRibbonGroup>
            </telerik:RadRibbonTab>
            <telerik:RadRibbonTab Header="Berichte" ContextualGroupName="uxContextualGroupCustomerOverview">
            </telerik:RadRibbonTab>
...

Tina Stancheva
Telerik team
 answered on 08 Sep 2011
3 answers
93 views
Hi All,

i have encountered a problem when selecting a TreeViewItem. The Focused Item seems not to be the selected Item. I bound the TreeView to a list of entities and added hierarchical datatemplates for displaying them.

  • node1
             node1a
             node2a
  • node2
            node2a
            node2b

When i now open node2 and select node2a the focus is set to node2a, but the selected item will be node1a. This happens only if i opened the node1 before. I used the Microsoft TreeView instead and expected the same result but this one seems to work correct. Has somebody had a similar problem before ?

Greetings Markus
Kiril Stanoev
Telerik team
 answered on 08 Sep 2011
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?