This question is locked. New answers and comments are not allowed.
On a RadWindow, I have a RadGridView whose columns represent a subset of the schema associated with the data behind the RadGridView. I am able to display a tooltip that shows the entire schema, with each field\value on its own line. I am accomplishing this by assigning the ToolTipTemplate property of each GridViewDataColumn to a StaticResource I created that has my DataTemplate for the tooltip behind it.
My issue is that the tooltip only stays open for about 5 seconds (a Silverlight default I believe). Because of this, I've tried a different approach to get my desired behavior. Instead of assigning my DataTemplate to the ToolTipTemplate property, I tried assigning it to the RadToolTipService.ToolTipContentTemplate property, as well as setting the RadToolTipService.ShowDuration property to something larger than 5 seconds (60 sec in the following column):
<telerik:GridViewDataColumn Header="Name" telerik:RadToolTipService.ToolTipContentTemplate="{StaticResource TooltipTemplate}" telerik:RadToolTipService.ShowDuration="60000" DataMemberBinding="{Binding QueryName}" IsReadOnly="True" IsFilterable="False"/>
However, when I do this, Visual Studio tells me that it is Unable to cast object of type 'Telerik.Windows.Controls.GridViewDataColumn' to type 'System.Windows.FrameworkElement'.
Now here's something strange. I have an existing RadToolTip in a different part of my application. It is on a framework Checkbox that sits on a framework UserControl. The RadToolTip is added to the Checkbox by nesting the ShowDuration, etc. properties within the Checkbox like so:
<Checkbox>
<telerik:RadToolTipService.ShowDuration>60000</telerik:RadToolTipService.ShowDuration>
<telerik:RadToolTipService.ToolTipContentTemplate>
<DataTemplate>
<StackPanel>
.......I have some controls in here..............
</StackPanel>
</DataTemplate>
</telerik:RadToolTipService.ToolTipContentTemplate>
</Checkbox>
This works, but when I try to place the same Checkbox verbatium on my RadWindow from above, the tooltip won't show up, although I've seen the mouse pointer flash to the blue circular busy indicator for a blink of an eye (almost like it loaded something, but there wasn't anything to load).
So from all of this, I guess there are 2 questions:
1.) Why is it that I can set the RadToolTipService.ToolTipContentTemplate and other Telerik specific properties on a framework control like my CheckBox, but not on a Telerik control like a RadWindow or GridViewDataColumn without Visual Studio complaining about casting issues?
2.) Why wouldn't my existing\working RadToolTip show up on my CheckBox after I simply moved it from a hosting UserControl to a RadWindow?
My issue is that the tooltip only stays open for about 5 seconds (a Silverlight default I believe). Because of this, I've tried a different approach to get my desired behavior. Instead of assigning my DataTemplate to the ToolTipTemplate property, I tried assigning it to the RadToolTipService.ToolTipContentTemplate property, as well as setting the RadToolTipService.ShowDuration property to something larger than 5 seconds (60 sec in the following column):
<telerik:GridViewDataColumn Header="Name" telerik:RadToolTipService.ToolTipContentTemplate="{StaticResource TooltipTemplate}" telerik:RadToolTipService.ShowDuration="60000" DataMemberBinding="{Binding QueryName}" IsReadOnly="True" IsFilterable="False"/>
However, when I do this, Visual Studio tells me that it is Unable to cast object of type 'Telerik.Windows.Controls.GridViewDataColumn' to type 'System.Windows.FrameworkElement'.
Now here's something strange. I have an existing RadToolTip in a different part of my application. It is on a framework Checkbox that sits on a framework UserControl. The RadToolTip is added to the Checkbox by nesting the ShowDuration, etc. properties within the Checkbox like so:
<Checkbox>
<telerik:RadToolTipService.ShowDuration>60000</telerik:RadToolTipService.ShowDuration>
<telerik:RadToolTipService.ToolTipContentTemplate>
<DataTemplate>
<StackPanel>
.......I have some controls in here..............
</StackPanel>
</DataTemplate>
</telerik:RadToolTipService.ToolTipContentTemplate>
</Checkbox>
This works, but when I try to place the same Checkbox verbatium on my RadWindow from above, the tooltip won't show up, although I've seen the mouse pointer flash to the blue circular busy indicator for a blink of an eye (almost like it loaded something, but there wasn't anything to load).
So from all of this, I guess there are 2 questions:
1.) Why is it that I can set the RadToolTipService.ToolTipContentTemplate and other Telerik specific properties on a framework control like my CheckBox, but not on a Telerik control like a RadWindow or GridViewDataColumn without Visual Studio complaining about casting issues?
2.) Why wouldn't my existing\working RadToolTip show up on my CheckBox after I simply moved it from a hosting UserControl to a RadWindow?