Unable to find anything on the Xamarin Forms UI forum that solves this,
have looked at this - https://www.telerik.com/forums/several-xamarin-datagrid-questions
and this on the UI for Windows forum - https://www.telerik.com/forums/how-to-display-datagrid-column-header-in-2-lines
I've tried using a DataGridTemplateColumn:
<
grid:DataGridTemplateColumn
CanUserEdit
=
"False"
HeaderText
=
"Title"
>
<
grid:DataGridTemplateColumn.HeaderContentTemplate
>
<
DataTemplate
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
Label
Text
=
"Distance"
/>
<
Label
Text
=
"(miles)"
Grid.Row
=
"1"
/>
</
Grid
>
</
DataTemplate
>
</
grid:DataGridTemplateColumn.HeaderContentTemplate
>
<
grid:DataGridTemplateColumn.CellContentTemplate
>
<
DataTemplate
>
<
Grid
>
<
Label
Text
=
"{Binding JourneyDistance}"
/>
</
Grid
>
</
DataTemplate
>
</
grid:DataGridTemplateColumn.CellContentTemplate
>
</
grid:DataGridTemplateColumn
>
Which returns - No property, bindable property, or event found for 'CellContentTemplate', or mismatching type between value
Also tried a DataGridTextColumn.HeaderContentTemplate using both a StackLayout
<
grid:DataGridTextColumn
CanUserEdit
=
"False"
PropertyName
=
"JourneyDistance"
>
<
grid:DataGridTextColumn.HeaderContentTemplate
>
<
DataTemplate
>
<
StackLayout
>
<
Label
Text
=
"Line 1"
/>
<
Label
Text
=
"Line 2"
/>
</
StackLayout
>
</
DataTemplate
>
</
grid:DataGridTextColumn.HeaderContentTemplate
>
</
grid:DataGridTextColumn
>
and a Grid inside the template
<
grid:DataGridTextColumn
CanUserEdit
=
"False"
PropertyName
=
"JourneyDistance"
>
<
grid:DataGridTextColumn.HeaderContentTemplate
>
<
DataTemplate
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
Label
Text
=
"Distance"
/>
<
Label
Text
=
"(miles)"
Grid.Row
=
"1"
/>
</
Grid
>
</
DataTemplate
>
</
grid:DataGridTextColumn.HeaderContentTemplate
>
</
grid:DataGridTextColumn
>
The last snippet runs without error but the header is just empty
Help please.
Hi,
Is it possible to databind to the SelectedItems property of RadListView? I haven't seen any samples doing this.
When I try to do it I just get InvalidOperationException: Sequence contains no matching element.
Thanks,
Hi,
Is there a way to add the second vertical axis (on right hand side of the chart) on RadCartesianChart (Xamarin Form)?
Regards,
CT
Hi,
Is there a way to wrap the overflow legend item (see attached screen captured)?
Cheers,
CT
How can I create a calendar such that a specific month is displayed?
For example, I want to open the calendar to initially show next month.
1. I see HitTest can return a row being displayed at a given point. How do I determine the desired point; i.e., what events or functions would supply that data, based on what parameters?
2. Might I add a request for making public some of the scrolling and sorting events that must already be internal to the Grid? Otherwise the Grid is too much of a black box.
3. I am glad to see in another thread you plan to implement a ScrollToEnd function.
And how about ScrollToRow, ScrollToRowIndex functions? Both would require a collection of some sort. Maybe also a ScrollToPoint function.
The nearest help I can find is in DataGridCellInfo with its Item property (might be better named Row). At any rate, that property does give me all the data supplied by a specific entry in the grid's ItemsSource, but neither its index within the ItemsSource nor within the visible display. I currently display an initial grid with just a few columns, but on cell selection I often popup a tabbed Details Editor for all properties. On closing the Editor I would like the newly edited entry to scroll to the grid top. I am already doing this with the competitor control I want to replace (it has other issues that are a real headache on Android).
Hi, microsoft oficially released support for xamarin.forms.platform.WPF, and we want to use telerik on that as well
https://docs.microsoft.com/en-us/xamarin/xamarin-forms/platform/wpf
do you have plans on supporting it anytime soon?
I have a list of items that I would like to group by several property. To do that I must use DelegateGroupDescriptor instead of PropertyGroupDescriptor. That part does not seem to be complicated.
hat I don't know how to achieve (and have found no examples on to do it) is to display information on the grouping properties on the group header. Is this possible? If so, how can it be done?