Hi SV,
First, I'd like to point out that the
DataGrid CTP control is still in technical preview. We will be adding more features as the control matures and
this feedback portal is the best way to communicate what features you'd like to see first.
That said, let me get right to your questions, you can address them with straightforward Xamarin.Forms XAML approaches once inside the TemplateColumn.
1 - Yes. You can define a custom TemplateColumn and set the Label's LineBreakMode.
Here is an example:
2 - DataGrid CTP doesn't have support for Aggregates.
You can submit a Feature Request in
the Feedback Portal for this. If this is a must have right now, you could add an additional property to your model and do the aggregates manually, then have a column bound to that additional field.
3 - Yes. I have two options you can pick from.
Option #1
You can either use the approach in #1 but set the column's
CellContentTemplateSelector property with a
custom DataTemplateSelector. Then you'd have different templates with different coloring. For example:
Here's the selector:
Here's the XAML for the column. Notice that we have two different DataTemplates one with a Green background and one with a DarkRed.
Option #2
Alternatively, you can use a single template and then use converters to set any property you want based on the model's values. For example:
Here's the TemplateColumn's XAML. Notice the BackgroundColor of the Grid is set using the converter above:
4 - Yes, we handle scrolling (vertical and horizontal)
In fact you should not nest the control within a ScrollViewer as you'll encounter gesture conflicts.
Wrapping Up
If you have any additional questions,
please open a support ticket here. Thank you for contacting Support and for choosing UI for Xamarin.
Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items