Telerik Forums
UI for WPF Forum
5 answers
686 views
I have a telerik RadGridView in which some columns can have a lot of data causing them to go multiline, which is fine. However, when we scroll horizontally and those multiline column data is out of view, the rows resize back to single line. We would like to avoid this.

DataGridView has a AutoSizeRowsMode but I can't find an equivalent RadGridView property.

Help?
Pavel Pavlov
Telerik team
 answered on 01 Sep 2011
1 answer
76 views
Hi ,

Can we customize radtileview items to be displayed on to the right corner and lower part of the screen and the maximized item displays on the center. Similar to the mirror image of 'L'


Any help will be greatly appreciate.

Thanks
Sudha

Zarko
Telerik team
 answered on 01 Sep 2011
5 answers
489 views
Hello I recently tried to use a CollectionViewSource as the items source for the RadGridView in WPF. I wanted to do so for the ammount of filtering that I needed. Coming from a Windows development background that was "the way" to do it. I am new to my company and I am not trying to fall behind. Is there an example of how to do this? In C# all we have to do to apply a filter is add a filter event handler, but when I would do this the RadGrid would "hiccup." I ended up having to use a dataview object before pulling my hair out. I refuse to write for loops with the invention of generics in the .Net framework. Any and all help is appreciated.

Sean
Sean
Top achievements
Rank 1
 answered on 01 Sep 2011
0 answers
105 views
Hi,

I have a grid with a checkbox column, which is bounded to a boolean property
and a toolbar with a Remove command.

The remove command should be enabled only if at least one element in the grid is checked.
The command logic resides in a View Model.

The problem i'm facing is that the Remove button is updated (enabled/disabled) only after
i move focus from the checkbox cell- I would like the button to update upon check/uncheck the checkbox.

Thank you,
Koby
Koby
Top achievements
Rank 1
 asked on 01 Sep 2011
1 answer
157 views
I'm hosting the WPF control in a WinForms project. I currently have a label positioned over the map for informational messages, such as 'drawing map' or 'no data selected'. However when the map is resized or panned, the label and/or the map are drawn incorrectly, or not at all. Is there a built-in overlay available in the map that is fixed to screen coordinates, rather than geographic coordinates? Similar to how the mouse position and scale never move.
Andrey
Telerik team
 answered on 01 Sep 2011
3 answers
106 views
I have a class (lets say CAR) that implements IEditableObject. If i bind a collection of cars to a datagrid, on editing a car, EndEdit on CAR is fired. However, my cars collection is displayed in a treeview. When i edit a CAR using the controls in my treeviewitem , the EndEdit is not raised. It's driving me crazy. Any clues ?
Petar Mladenov
Telerik team
 answered on 01 Sep 2011
2 answers
263 views
Hi everybody,

I ask for a specific cuestion about RadTileView. I would like to display the tile items in "read-only" mode (IsEnable = false no valid xD). What I mean is that I present each item without the button for maximize/minimize. For that I took some piece of code I saw in one of your examples. It works properly but a problem raises when a tile item is selected because it is not highlighted. The code appears in the following snippet:

<
telerik:RadTileView Name="RadTileViewUsers"
                                             ContentTemplate="{StaticResource ContentTemplate}"
                                             ItemTemplate="{StaticResource ItemTemplate}"
                                             MinimizedColumnWidth="150" MinimizedRowHeight="150"
                                             RowHeight="120"
                                             ColumnWidth="147"
                                             MaximizeMode="Zero"
                                             PreviewTileDragStarted="RadTileViewUsers_PreviewTileDragStarted"  
                                             ItemContainerStyle="{StaticResource RadTileViewItemStyle}"
                                             PreservePositionWhenMaximized="True" IsVirtualizing="True" IsSelectionEnabled="True" />

And the style (ignoring the colors):

<Style x:Key="RadTileViewItemStyle" TargetType="telerik:RadTileViewItem">
            <Setter Property="telerik:RadDragAndDropManager.AllowDrag" Value="True" />
            <Setter Property="HorizontalContentAlignment" Value="Stretch" />
            <Setter Property="VerticalContentAlignment" Value="Stretch" />
            <Setter Property="Background" Value="{StaticResource TileView_Background}" />
            <Setter Property="BorderBrush" Value="{StaticResource TileView_OuterBorder}" />
            <Setter Property="BorderThickness" Value="1" />
            <Setter Property="Padding" Value="7" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerik:RadTileViewItem">
                        <Grid>
                            <Border x:Name="outerBorder"
                                    Margin="{TemplateBinding Padding}"
                                    Background="{TemplateBinding Background}"
                                    BorderBrush="{TemplateBinding BorderBrush}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    CornerRadius="{StaticResource TileView_OuterBorder_CornerRadius}">
                                <Border x:Name="outerContainer"
                                        Background="Transparent"
                                        BorderBrush="{StaticResource TileView_InneBorder}"
                                        BorderThickness="{StaticResource TileView_InneBorder_Thickness}"
                                        CornerRadius="{StaticResource TileView_InneBorder_CornerRadius}">
                                    <Grid>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto" />
                                            <RowDefinition Height="*" />
                                        </Grid.RowDefinitions>
                                        <StackPanel>
                                            <Border Background="{StaticResource TileView_HeaderBackground}"
                                                    BorderBrush="{StaticResource TileView_HeaderBorder}"
                                                    BorderThickness="{StaticResource TileView_HeaderBorder_Thickness}"
                                                    CornerRadius="{StaticResource TileView_HeaderBorder_CornerRadius}"
                                                    Padding="10 0 7 0">
                                                <Grid MinHeight="28">
                                                    <Border x:Name="GripBarElement" Background="Transparent">
                                                        <ContentPresenter x:Name="HeaderElement"
                                                                          Margin="0,0,10,0"
                                                                          HorizontalAlignment="Left"
                                                                          VerticalAlignment="Center"
                                                                          ContentTemplate="{TemplateBinding HeaderTemplate}" />
                                                    </Border>
                                                    <!--  This is the default Minimize/Maximize button  -->
                                                    <!--
                                                        <telerik:RadToggleButton x:Name="MaximizeToggleButton"
                                                        Command="tileView:TileViewCommands.ToggleTileState"
                                                        Style="{StaticResource maximizeToggleStyle}" />
                                                    -->
                                                    <!--<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
                                                        <telerik:RadButton >Refresh</telerik:RadButton>
                                                        <telerik:RadButton >Minimize</telerik:RadButton>
                                                        <telerik:RadButton >Maximize</telerik:RadButton>
                                                    </StackPanel>-->
                                                </Grid>
                                            </Border>
                                            <Border x:Name="Splitter"
                                                    Height="4"
                                                    Background="{StaticResource TileView_HeaderBorder_HorizontalSplitterBackground}"
                                                    BorderThickness="0"
                                                    OpacityMask="{StaticResource TileView_HeaderBorder_HorizontalSplitterOpacityMask}" />
                                        </StackPanel>
                                        <Grid Grid.Row="1" Background="Transparent">
                                            <ContentPresenter x:Name="ContentElement"
                                                              Grid.Row="1"
                                                              HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                                              VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                                              Content="{TemplateBinding Content}"
                                                              ContentTemplate="{TemplateBinding ContentTemplate}" />
                                        </Grid>
                                        <Rectangle x:Name="DisabledVisual"
                                                   Grid.RowSpan="2"
                                                   Fill="{StaticResource DisabledBrush}"
                                                   RadiusX="4"
                                                   RadiusY="4"
                                                   Visibility="Collapsed" />
                                    </Grid>
                                </Border>
                            </Border>
                            <Grid x:Name="SelectedItem"
                                  Margin="-1"
                                  Visibility="Collapsed">
                                <Border Margin="{TemplateBinding Padding}"
                                        BorderBrush="{StaticResource ControlOuterBorder_Selected}"
                                        BorderThickness="2"
                                        CornerRadius="{StaticResource TileView_OuterBorder_CornerRadius}" />
                            </Grid>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

Note: If I change Visibility value to Visible in Grid "SelectedItem" all the item appear as selected.

Do you have any suggestion for solving my problem?

Thanks in advance.

Eduardo.
Eduardo
Top achievements
Rank 1
 answered on 01 Sep 2011
1 answer
108 views
Hi,

I am applying two group filters in code-behind to a RadGridView. Code : -


Dim trackGroupDescriptor As New Telerik.Windows.Data.GroupDescriptor  
  
trackGroupDescriptor.Member = "TrackName"  
  
trackGroupDescriptor.DisplayContent = "Track"  
  
trackGroupDescriptor.SortDirection = ComponentModel.ListSortDirection.Ascending  
  
AllTrackGrid.GroupDescriptors.Add(trackGroupDescriptor)
  
  
  
Dim FeatureGroupDescriptor As New Telerik.Windows.Data.GroupDescriptor  
  
FeatureGroupDescriptor.Member = "FeatureName"  
  
FeatureGroupDescriptor.DisplayContent = "Feature"  
  
FeatureGroupDescriptor.SortDirection = ComponentModel.ListSortDirection.Ascending 
   
AllTrackGrid.GroupDescriptors.Add(FeatureGroupDescriptor)


The problem I am having is that when the grid loads only one single data row appears inside each of the inner (second) group descriptor, while the actual number of rows which should be present is more. Hoever when I remove the column headers from the 'ShowGroupPanel' while application is running and add them once more, I am able to see all the entries properly. Is there something I am missing in the code?

BTW: Tried adding the descriptor from design-side as well, but having the same issue.  


Thanks
Anish George

Anish
Top achievements
Rank 1
 answered on 01 Sep 2011
4 answers
97 views
Hello,

I've trying to follow all the recommendations, samples, tutorials and how-tos I could find about this, and now I'm kind of lost because I can't make anything work... So I put together a sample application (http://pauloqueiroga.com/wpfapplication2.zip) to illustrate my problem.

All I need to drag and drop with a ListBox to redefine the order of the elements.

I started following the steps in this article (http://www.telerik.com/help/wpf/raddraganddrop-within-listbox.html), then I also applied the recommendations of this other one (http://www.telerik.com/help/wpf/raddraganddrop-child-window-non-telerik-popups.html) because my original app had the listbox in a popup window, and I tried a few different tweaks, like the ones recommended here (http://www.telerik.com/community/forums/wpf/draganddrop/drag-drop-mvvm.aspx) but I'm only getting lost.

Do you think you can help me?

Thank you,

PQ.
Maya
Telerik team
 answered on 01 Sep 2011
0 answers
102 views
Is there some sort of GetAllNodes method for the TreeListView, like in the TreeView.  

I am trying to do a custom filter on the nodes and need to get all the TreeListView nodes back to set their visibility depending on  a value in a TreeListView Column.
Thanks,
Jessica
Top achievements
Rank 1
 asked on 31 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?