Telerik Forums
UI for Xamarin Forum
3 answers
3.3K+ views

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.

Lance | Senior Manager Technical Support
Telerik team
 answered on 20 Apr 2018
1 answer
233 views

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,

Yana
Telerik team
 answered on 19 Apr 2018
2 answers
237 views

Hi,

Is there a way to add the second vertical axis (on right hand side of the chart) on RadCartesianChart (Xamarin Form)?

 

Regards,

CT

CT
Top achievements
Rank 1
 answered on 19 Apr 2018
2 answers
99 views

Hi,

Is there a way to wrap the overflow legend item (see attached screen captured)?

 

Cheers,

CT

CT
Top achievements
Rank 1
 answered on 19 Apr 2018
1 answer
69 views

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.

Lance | Senior Manager Technical Support
Telerik team
 answered on 17 Apr 2018
1 answer
95 views
Is it possible for list items to automatically alter their height to fit their contents?
Stefan Nenchev
Telerik team
 answered on 17 Apr 2018
1 answer
123 views

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).

Lance | Senior Manager Technical Support
Telerik team
 answered on 16 Apr 2018
1 answer
125 views

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?

Lance | Senior Manager Technical Support
Telerik team
 answered on 16 Apr 2018
1 answer
334 views

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?

Lance | Senior Manager Technical Support
Telerik team
 answered on 13 Apr 2018
3 answers
142 views

Hi,

We are using your dll in our Xamarin iOS application.
The problem is that since its size is 65MB, the dll puts us over the AppStore limit of 100MB.
Do you have any solutions for this problem?

Regards,
Lance | Senior Manager Technical Support
Telerik team
 answered on 13 Apr 2018
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?