Telerik Forums
UI for WPF Forum
1 answer
162 views
I'm trying to migrate our apps to latest version, Q1 2013. Having few issues, the blocking one is an InvalidOperationException.

Description of one of the issues and steps it takes to reproduce:
 - WPF 4.0 app
 - RadTabControl as main canvas
 - RadGridView on one of the tabs, but not first
To reproduce just switch between tabs: when coming to the tab with RadGridView for the second time the IOE is thrown.

Exception details:

System.InvalidOperationException was unhandled by user code
  HResult=-2146233079
  Message=Specified element is already the logical child of another element. Disconnect it first.
  Source=PresentationFramework
  StackTrace:
       at System.Windows.FrameworkContentElement.ChangeLogicalParent(DependencyObject newParent)
       at System.Windows.FrameworkElement.AddLogicalChild(Object child)
       at Telerik.Windows.Controls.GridView.GridViewDataControl.ColumnAdded(GridViewColumn column) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.cs:line 3732
       at Telerik.Windows.Controls.GridViewColumn.OnOwnerChanged(GridViewDataControl oldOwner, GridViewDataControl newOwner) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Columns\GridViewColumn.cs:line 1708
       at Telerik.Windows.Controls.GridViewBoundColumnBase.OnOwnerChanged(GridViewDataControl oldOwner, GridViewDataControl newOwner) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Columns\GridViewBoundColumnBase.cs:line 1485
       at Telerik.Windows.Controls.GridViewColumn.set_DataControl(GridViewDataControl value) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Columns\GridViewColumn.cs:line 1610
       at Telerik.Windows.Controls.GridView.GridViewDataControl.Grid_Loaded(Object sender, RoutedEventArgs e) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.cs:line 2641
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at MS.Internal.FrameworkObject.OnLoaded(RoutedEventArgs args)
       at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
       at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
       at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
       at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
       at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
  InnerException: 

Any hints about the cause of the problem? Is it our code or something slipped trough your quality gates?

Thanks
Yoan
Telerik team
 answered on 22 Feb 2013
1 answer
348 views
Hi

I am using telerik watermarktextbox for a WPF application, I set windows 8 theme when application starts up, now I wanted to have the water mark text box to have my templated text with Segeo Font , italic and text color to be white. Both the text to be entered and the watermark content should be using Segoe WP Light , font size 10 and styled to be italic and text foreground color to be italic.

Unfortunately the water mark text does not apply this setting, however when i type some text they are according to the setting which i specified as Segoe WP Light , font size 10 ,  style to be italic.

Strange behavior is that if i change the textblock foreground to yellow for example then it works, why doesn't it work for white.

Please note that my background is black.

Let me know if its a bug or i am doing something incorrect.

<telerik:RadWatermarkTextBox FontFamily="Segoe WP Light" FontSize="12" Foreground="White" FontStyle="Italic" CaretBrush="White" Background="Transparent" Height="20" BorderThickness="0" WatermarkBehavior="HideOnClick" Margin="3,0,3,0" Grid.Column="1" x:Name="radRichTextBox" VerticalAlignment="Center">

<telerik:RadWatermarkTextBox.WatermarkTemplate>

<DataTemplate>

<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left" FontFamily="Segoe WP Light" FontSize="12" Foreground="White" FontStyle="Italic" Text="Enter custom status"></TextBlock>

</DataTemplate>

</telerik:RadWatermarkTextBox.WatermarkTemplate>

</telerik:RadWatermarkTextBox>


Georgi
Telerik team
 answered on 22 Feb 2013
0 answers
64 views
Hi,
we use RadGridView to display a collection of objects.
the model of this collection is as follows:

Public Class Model
{
public Prop1;
public  Prop2;
..
private Dictionary<string, MethodInfo> extensionMethodeByfqdnNameCache = new Dictionary<string, MethodInfo>();
public object this[string name]
        {
            get
            {
                if (extensionMethodeByfqdnNameCache.Keys.Where(key => key == name).FirstOrDefault() == null)
                {

                    string folderPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
 
                    string assemblyFilePath = name.Split(',')[1].Trim();
             
                    string[] assembliesSearchRslt = Directory.GetFiles(folderPath, assemblyFilePath   ".dll", SearchOption.AllDirectories);

       
                    if (assembliesSearchRslt.Count() < 1) throw new Exception("Cannot load assembly");

      
                    Assembly assembly = Assembly.LoadFrom(assembliesSearchRslt[0]);


                    var currentType = this.GetType();
         
                    var methodeinfo = currentType.GetMethod("GetExtensionObject");
                 
                    var extensionType = assembly.GetType(name.Split(',')[0].Trim());

                    MethodInfo generic = methodeinfo.MakeGenericMethod(extensionType);
                    extensionMethodeByfqdnNameCache.Add(name, generic);
                }

                return extensionMethodeByfqdnNameCache.Where(dic => dic.Key== name).FirstOrDefault().Value.Invoke(this, null);
            }
        }
}

The model is shared across multiple assembly.
using a modular mechanism personalized.
the grid is always displayed and each change (module) are added Propertie anotre specific model:
and recovering these properties through the binding as follows:
Model. [^ ClassName, Assembly]. Property

Note: Model contain a method "GetExtension" ClassName to load a Dicationnary.

Binding the work properly.

we create a personalized component filrage and we could fill it with the values ​​of this column grid personalized.

but when we must create a filter and passes FilterDescriptor Member of the filter [ClassName, Assembly]. Property with the operator Equal
unfortunately this does not filter the grid.

FilterDescriptor.Member is on, does that make a filter on the Model property declared in the Model class and can not invoke the method this [string name] to retrieve the extended properties?

how to do the filtering mechanism with an extension properties on the Model?

if you must use IColumnFilterDescriptor found in Q1 2012?
Mouadh
Top achievements
Rank 1
 asked on 22 Feb 2013
1 answer
136 views
For Telerik WPF controls 2012.3.1129.45 I am getting an unwanted tab button (see attached screenshot) using the  XAML below.

Any suggestions on how to make this unwanted tab disappear?

Thank you,
Alan
<telerik:RadRichTextBoxRibbonUI Grid.Row="0"
                                            Width="340"
                                            Margin="5 0 0 0"
                                            TitleBarVisibility="Collapsed"
                                            ApplicationButtonVisibility="Collapsed"
                                            HorizontalAlignment="Left"
                                            HorizontalContentAlignment="Left"
                                            DataContext="{Binding Commands, ElementName=radRichTextBox}"
                                            VerticalAlignment="Top">
                
                <telerik:RadRichTextBoxRibbonUI.Resources>
                    <telerik:FontFamiliesProvider x:Key="FontFamiliesProvider"/>
                </telerik:RadRichTextBoxRibbonUI.Resources>
            
                <telerik:RadRibbonTab>
                    <telerik:RadRibbonGroup Header="Clipboard">
                        <telerik:RadRibbonGroup.Variants>
                            <telerik:GroupVariant Priority="0" Variant="Medium"/>
                        </telerik:RadRibbonGroup.Variants>
                        <StackPanel>
                            <telerik:RadRibbonButton CollapseToSmall="WhenGroupIsMedium" telerik:ScreenTip.Description="Cut the selection and put it on the Clipboard." telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding CutCommand}" Size="Medium" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/cut.png" Text="Cut" telerik:ScreenTip.Title="Cut"/>
                            <telerik:RadRibbonButton CollapseToSmall="WhenGroupIsMedium" telerik:ScreenTip.Description="Copy the selection and put it on the Clipboard." telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding CopyCommand}" Size="Medium" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/copy.png" Text="Copy" telerik:ScreenTip.Title="Copy"/>
                            <telerik:RadRibbonButton CollapseToSmall="WhenGroupIsMedium" telerik:ScreenTip.Description="Paste the contents of the Clipboard." telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding PasteCommand}" Size="Medium" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/paste.png" Text="Paste" telerik:ScreenTip.Title="Paste"/>
                        </StackPanel>
                    </telerik:RadRibbonGroup>
                    <telerik:RadRibbonGroup DialogLauncherVisibility="Visible" telerik:ScreenTip.Description="Show the font dialog box." Header="Font" telerik:ScreenTip.Icon="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/FontDialog.png" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ShowFontPropertiesDialogCommand}" telerik:ScreenTip.Title="Font">
                        <telerik:RadRibbonGroup.Variants>
                            <telerik:GroupVariant Priority="4" Variant="Medium"/>
                            <telerik:GroupVariant Priority="6" Variant="Small"/>
                            <telerik:GroupVariant Priority="7" Variant="Collapsed"/>
                        </telerik:RadRibbonGroup.Variants>
                        <telerik:RadOrderedWrapPanel>
                            <StackPanel Orientation="Horizontal">
                                <telerik:RadRibbonComboBox telerik:RadComboBox.CanAutocompleteSelectItems="False" telerik:RadComboBox.CanKeyboardNavigationSelectItems="False" telerik:RadComboBox.CommandParameter="{Binding SelectedValue, RelativeSource={RelativeSource Self}}" telerik:ScreenTip.Description="Change the font family." Height="21" telerik:RadComboBox.IsReadOnly="True" ItemsSource="{Binding RegisteredFonts, Source={StaticResource FontFamiliesProvider}}" telerik:RadComboBox.OpenDropDownOnFocus="True" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ChangeFontFamilyCommand}" telerik:ScreenTip.Title="Font" Width="132"/>
                                <telerik:RadRibbonComboBox telerik:RadComboBox.CanAutocompleteSelectItems="False" telerik:RadComboBox.CanKeyboardNavigationSelectItems="False" telerik:RadComboBox.CommandParameter="{Binding SelectedItem.Tag, RelativeSource={RelativeSource Self}}" telerik:ScreenTip.Description="Change the font size." Height="21" telerik:RadComboBox.IsEditable="True" telerik:RadComboBox.IsReadOnly="True" IsTextSearchEnabled="False" telerik:RadComboBox.OpenDropDownOnFocus="True" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ChangeFontSizeCommand}" telerik:ScreenTip.Title="Font Size" Width="45">
                                    <telerik:RadRibbonComboBoxItem Tag="10.67">
                                        <System:Double>8</System:Double>
                                    </telerik:RadRibbonComboBoxItem>
                                    <telerik:RadRibbonComboBoxItem Tag="12">
                                        <System:Double>9</System:Double>
                                    </telerik:RadRibbonComboBoxItem>
                                    <telerik:RadRibbonComboBoxItem Tag="13.34">
                                        <System:Double>10</System:Double>
                                    </telerik:RadRibbonComboBoxItem>
                                    <telerik:RadRibbonComboBoxItem Tag="14.67">
                                        <System:Double>11</System:Double>
                                    </telerik:RadRibbonComboBoxItem>
                                    <telerik:RadRibbonComboBoxItem Tag="16">
                                        <System:Double>12</System:Double>
                                    </telerik:RadRibbonComboBoxItem>
                                    <telerik:RadRibbonComboBoxItem Tag="18.67">
                                        <System:Double>14</System:Double>
                                    </telerik:RadRibbonComboBoxItem>
                                    <telerik:RadRibbonComboBoxItem Tag="21.33">
                                        <System:Double>16</System:Double>
                                    </telerik:RadRibbonComboBoxItem>
                                    <telerik:RadRibbonComboBoxItem Tag="24">
                                        <System:Double>18</System:Double>
                                    </telerik:RadRibbonComboBoxItem>
                                    <telerik:RadRibbonComboBoxItem Tag="26.67">
                                        <System:Double>20</System:Double>
                                    </telerik:RadRibbonComboBoxItem>
                                    <telerik:RadRibbonComboBoxItem Tag="29.33">
                                        <System:Double>22</System:Double>
                                    </telerik:RadRibbonComboBoxItem>
                                    <telerik:RadRibbonComboBoxItem Tag="32">
                                        <System:Double>24</System:Double>
                                    </telerik:RadRibbonComboBoxItem>
                                    <telerik:RadRibbonComboBoxItem Tag="34.67">
                                        <System:Double>26</System:Double>
                                    </telerik:RadRibbonComboBoxItem>
                                    <telerik:RadRibbonComboBoxItem Tag="37.33">
                                        <System:Double>28</System:Double>
                                    </telerik:RadRibbonComboBoxItem>
                                    <telerik:RadRibbonComboBoxItem Tag="48">
                                        <System:Double>36</System:Double>
                                    </telerik:RadRibbonComboBoxItem>
                                    <telerik:RadRibbonComboBoxItem Tag="64">
                                        <System:Double>48</System:Double>
                                    </telerik:RadRibbonComboBoxItem>
                                    <telerik:RadRibbonComboBoxItem Tag="96">
                                        <System:Double>72</System:Double>
                                    </telerik:RadRibbonComboBoxItem>
                                </telerik:RadRibbonComboBox>
                            </StackPanel>
                            <telerik:RadButtonGroup>
                                <telerik:RadRibbonButton telerik:ScreenTip.Description="Increase the font size." telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding IncrementFontSizeCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/font-increasesize.png" telerik:ScreenTip.Title="Grow Font"/>
                                <telerik:RadRibbonButton telerik:ScreenTip.Description="Decrease the font size." telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding DecrementFontSizeCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/font-decreasesize.png" telerik:ScreenTip.Title="Shrink Font"/>
                            </telerik:RadButtonGroup>
                            <telerik:RadButtonGroup>
                                <telerik:RadRibbonButton telerik:ScreenTip.Description="Clear all the formatting from the selection, leaving only the plain text." telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ClearFormattingCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/ClearFormatting16.png" telerik:ScreenTip.Title="Clear Formatting"/>
                            </telerik:RadButtonGroup>
                            <telerik:RadButtonGroup>
                                <telerik:RadRibbonToggleButton telerik:ScreenTip.Description="Make the selected text bold." telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ToggleBoldCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/bold.png" telerik:ScreenTip.Title="Bold"/>
                                <telerik:RadRibbonToggleButton telerik:ScreenTip.Description="Italicize the selected text." telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ToggleItalicCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/italic.png" telerik:ScreenTip.Title="Italic"/>
                                <telerik:RadRibbonSplitButton telerik:ScreenTip.Description="Underline the selected text." telerik:RadSplitButton.IsToggle="True" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ToggleUnderlineCommand}" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/underline.png" telerik:ScreenTip.Title="Underline">
                                    <telerik:RadSplitButton.DropDownContent>
                                        <telerik:RadGallery ItemWidth="156" ItemHeight="26" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ChangeUnderlineDecorationCommand}" ViewportHeight="210" ViewportWidth="157">
                                            <telerik:RadGalleryItem Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/underline1.png" Tag="Line"/>
                                            <telerik:RadGalleryItem Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/underline2.png" Tag="DoubleLine"/>
                                            <telerik:RadGalleryItem Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/underline3.png" Tag="ThickLine"/>
                                            <telerik:RadGalleryItem Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/underline4.png" Tag="DottedLine"/>
                                            <telerik:RadGalleryItem Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/underline5.png" Tag="DashedLine"/>
                                            <telerik:RadGalleryItem Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/underline6.png" Tag="DotDashedLine"/>
                                            <telerik:RadGalleryItem Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/underline7.png" Tag="DotDotDashedLine"/>
                                            <telerik:RadGalleryItem Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/underline8.png" Tag="Wave"/>
                                        </telerik:RadGallery>
                                    </telerik:RadSplitButton.DropDownContent>
                                </telerik:RadRibbonSplitButton>
                                <telerik:RadRibbonToggleButton telerik:ScreenTip.Description="Draw a line through the middle of the selected text." telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ToggleStrikethroughCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/Strikethrough16.png" telerik:ScreenTip.Title="Strikethrough"/>
                                <telerik:RadRibbonToggleButton telerik:ScreenTip.Description="Create small letters below the text baseline." telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ToggleSubscriptCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/subscript.png" telerik:ScreenTip.Title="Subscript"/>
                                <telerik:RadRibbonToggleButton telerik:ScreenTip.Description="Create small text above the line of text." telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ToggleSuperscriptCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/superscript.png" telerik:ScreenTip.Title="Superscript"/>
                            </telerik:RadButtonGroup>
                            <telerik:RadButtonGroup>
                                <telerik:HighlightColorPicker AutomaticColor="Transparent" BorderThickness="0" telerik:ScreenTip.Description="Make text look like it was marked with a highlighter pen." Height="Auto" Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/highlight.png" NoColorText="No color" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ChangeFontHighlightColorCommand}" SelectedColor="Yellow" telerik:ScreenTip.Title="Text Highlight Color"/>
                                <telerik:HighlightColorPicker BorderThickness="0" telerik:ScreenTip.Description="Change the text color." Height="Auto" Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/FontForeColor.png" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ChangeFontForeColorCommand}" SelectedColor="Red" telerik:ScreenTip.Title="Font Color"/>
                            </telerik:RadButtonGroup>
                        </telerik:RadOrderedWrapPanel>
                    </telerik:RadRibbonGroup>
                    
                </telerik:RadRibbonTab>
            
            </telerik:RadRichTextBoxRibbonUI>
Petar Mladenov
Telerik team
 answered on 22 Feb 2013
5 answers
174 views
I was curious if it is possible to add support for touch panning/scrolling to the RadGridView. All of our applications are for touch screens, and touch panning/scrolling would make the RadGridView much easier to use.

Thank you for the help.

Scott
Alex
Top achievements
Rank 1
 answered on 21 Feb 2013
3 answers
159 views
Hi
Currently I display ColorEditor in a RadExpander in a RadPropertyGrid. When the expander is expanded the whole RadPropertyGrid expands to accommodate it.
Is it possible to present the ColorEditor initially collapsed so user can click to expand and spill outside of container as you can with the ColorPicker?
Or is there another container control I can use to emulate this?
Thanks
Craig
Craig
Top achievements
Rank 1
 answered on 21 Feb 2013
3 answers
203 views
Hi Expertise,

I am using the RadcolorPicker in my project. when i click the color picker, i can able to see the color palatte. Totally 25 colors only available in this control... Can i have more color to access in this control? it means, Is there any options for "More color" in this pallette.?

Thanks in advance.

Regards,
Thiruppathi V
Krzysztof
Top achievements
Rank 1
 answered on 21 Feb 2013
18 answers
1.4K+ views
Hello,
I have a problem binding the SelectedItem of a child grid to a property on my view model. I've included the relevant XAML at the bottom.

The data binding of the SelectedItem of the parent Group finds the view model property okay. I've tried to use the same approach for SelectedItem of the child grid but a get a binding error 'BindingExpression path error: 'SelectedGroupItem' property not found on 'object' ''Group' '. Group is the type of the child object so I can understand why it complains.

//Groups defined in the view model
public ObservableCollection<Group> Groups { get;set;}
...
 
//Group class
public class Group
{
    public Group()
    {
        GroupItems = new List<GroupItem>();
    }
    public string GroupName { get; set; }
    public List<GroupItem> GroupItems { get; set; }
}


How do I change the SelectedItem="{Binding SelectedGroupItem}" data binding expression to refer to the view model as the parent grid has done?

Craig


<Grid.Resources>
  <DataTemplate x:Key="GroupItemTemplate">
    <telerik:RadGridView ItemsSource="{Binding GroupItems, Mode=TwoWay}" Name="itemsGrid"
   ShowGroupPanel="False"  AutoGenerateColumns="False" SelectedItem="{Binding SelectedGroupItem}">
      <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Item Name" Width="*" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Description}" Header="Item Name" Width="*" />
      </telerik:RadGridView.Columns>
    </telerik:RadGridView>
  </DataTemplate>
</Grid.Resources>
 
<telerik:RadGridView Name="groupsGrid" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left"
  VerticalAlignment="Stretch" Width="Auto" ItemsSource="{Binding Groups, Mode=TwoWay}"
  AutoGenerateColumns="False" ShowGroupPanel="False" ShowInsertRow="True" RowHeight="23"
  RowIndicatorVisibility="Collapsed" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
  SelectedItem="{Binding SelectedGroup}"
  HierarchyChildTemplate="{StaticResource GroupItemTemplate}">
  <telerik:RadGridView.Columns>
    <telerik:GridViewDataColumn DataMemberBinding="{Binding GroupName}" Header="Group Name" Width="*"/>
  </telerik:RadGridView.Columns>
  <telerik:RadGridView.ChildTableDefinitions>
    <telerik:GridViewTableDefinition />
  </telerik:RadGridView.ChildTableDefinitions>
</telerik:RadGridView>
Dimitrina
Telerik team
 answered on 21 Feb 2013
7 answers
809 views
Hi everyone,

I am wondering if there is a way to know if the user close a window using the "X" button. I assume it's in the previewclosed event but what should i check in that event?

thank you
Mark
Top achievements
Rank 1
 answered on 21 Feb 2013
1 answer
116 views
Hi,
i am using a readonly GridView with a column like this:
<telerik:GridViewDataColumn Header="Range"
                    Width="*"
                    DataMemberBinding="{Binding Range}"
                    HeaderTextAlignment="Center"
                    TextAlignment="Center"
                    ToolTip="Test">

The problem is that the tooltip does not be displayed on column cells or on the column header.

Where did i make the mistake?

Thanks for help
Mark
Steve
Top achievements
Rank 1
 answered on 21 Feb 2013
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?