Hi,
Since UI WPF Q3 2015, I notice change in the GridView column auto size. I have the following simple user control (with no height and width) :
<
UserControl
x:Class
=
"WpfApplication1.UserControl1"
xmlns:local
=
"clr-namespace:WpfApplication1"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"300"
>
<
Grid
>
<
telerik:RadGridView
AutoGenerateColumns
=
"False"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Name"
Width
=
"150"
/>
<
telerik:GridViewDataColumn
Header
=
"Description"
Width
=
"*"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
Grid
>
</
UserControl
>
In my MainWindow I have a button which show a RadWindow with the UserControl content :
private
void
OnClick(
object
sender, RoutedEventArgs e)
{
RadWindow window =
new
RadWindow();
window.SizeToContent =
true
;
window.Content =
new
UserControl1();
window.SizeChanged +=
delegate
{
window.Header =
string
.Format(
"({0}, {1})"
, window.Height, window.Width);
};
window.ShowDialog();
}
In Telerik 2015.2.728.45, the RadWindow size is correct (like i expect in fact). In Telerik 2015.3.* the gridcolumn with Width="*" take all width possible (infinite?) and radwindow Width become infinite.
What's the correct behavior ? Telerik 2015.2 or 2015.3 ? Do I need to set the UserControl size ? (I prefer to avoid this solution like my real application is more complex and expect to have an UserControl resize from its content).
Thanks
Regards
Luc
Hi,
I currently have a problem applying a bound size to the HeaderCellStyle.FontSize
Our operators have the possibility to set the text size to what they need.
I would like to have it bound like the FontSize for the GridCells in the following code snippet:
FontSize="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type lisaGridControl:LisaGridControl}}, Path=SettingsModel.GeneralSettings.FontSize, Mode=TwoWay}"
The proplem is that I can only find static solutions like:
<
Style
x:Key
=
"GridHeaderCellStyle"
TargetType
=
"{x:Type telerik:GridViewHeaderCell}"
>
<
Setter
Property
=
"Foreground"
Value
=
"Black"
/>
<
Setter
Property
=
"FontSize"
Value
=
"16"
/>
<
Setter
Property
=
"FontWeight"
Value
=
"Normal"
/>
<
Setter
Property
=
"FontStyle"
Value
=
"Normal"
/>
</
Style
>
Additionally my columns are created in code behind and I have no column definition in xaml.
For example the DisplayText for the header is bound as follows:
var bindingHeader =
new
Binding(
"DisplayText"
) { Source = column, ValidatesOnDataErrors =
false
, Mode = BindingMode.OneWay };
if
(column.GridColumn ==
null
)
{
throw
new
Exception(
"column.GridColumn("
+ column.DisplayText +
")==null"
);
}
column.GridColumn.SetBinding(GridViewColumn.HeaderProperty, bindingHeader);
Thanks for any suggestions
Best regards
Thomas Voß
Hi guys!
I installed the new Visual Studio 2015, and created a new Telerik WPF project with reference to Telerik.Windows.Controls, Telerik.Windows.Controls.GridView, Telerik.Windows.Controls.Navaigation etc.
I'm using implicit styles.
Now I want add some Telerik control, but the IntelliSense is not working!
<
Window
x:Class
=
"TestWithNavigation.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
Grid
>
<
telerik:
***** The IntelliSense NOT WORKING ********
</Grid>
</
Window
>
If I drop the reference to Telerik.Windows.Controls.Navigation, it's working well.
Is it a bug? is there a way to resolve it?
Thanks , Yehudah
How can we make the NumericButtonCount adjust based on the width of the data pager? Using a constant value for the button count makes the control very awkward for use as most everything else is sized dynamically in a WPF application.
In the wizard demo the side header goes from top to bottom. Is it possible to have the header go across the top of the modal and side header under it?
Like it's displayed in the WPF doc Overview, http://docs.telerik.com/devtools/wpf/controls/radwizard/overview.
Thanks,
Rich
Hello,
I need to get the visible rows. I've seen how to do this by way of: theGrid.ChildrenOfType<GridViewRow>();
But this seems to have a flaw. If I expand a group and then collapse that group, the rows in the group are now returned as visible.
Is there a way to get only the currently visible rows?
Thanks,
Scott
my requirement as below:
1: Don't display the underline and thousand-separator when the text box is focused
2: If the number typed is bigger than one thousand, it will fill thousand-separator automatically (the text box is still being focused).For example, if I type in 123,then it displays as 123.00;then I input the fourth number 7,I want it displays as 1,237.00 immediately(not only after the text box lost focused). it's important that keeping then cursor position be after the number 7.
3:when the entire content is selected and I delete it,the value of the the text box should be zero and displays as 0.00
many thanks
Hi,
I want to define a tooltip that will shown, when mouse is over the title of the column.
Used the below code xaml for tooltip, but it is not showing tooltip.
<telerik:GridViewDataColumn Header="First Name"
DataMemberBinding="{Binding FirstName}" ToolTip="First Name Tooltip" />
I am missing any thing.
Thanks,
-Narendra