I'm currently working on building a crossplatform application using xamarin forms. So I started with building a Class Library and added the RadDataGrid and the output can either be a Android or UWP or WPF.
I can get the sample data to be displayed in Android but i get an below issue(attached)
Using v2019.3.1119.1 of the Telerik Controls for Xamarin I use the following grid layout in my data template to display a list of jobs for a driver;
<
DataTemplate
x:Key
=
"JobItemTemplate"
>
<
Grid
RowSpacing
=
"0"
Padding
=
"0"
Margin
=
"0"
BackgroundColor
=
"{Binding Item.JobStatus, Converter={StaticResource StringToColourConverter}}"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"auto"
/>
<
RowDefinition
Height
=
"auto"
/>
<
RowDefinition
Height
=
"auto"
/>
<
RowDefinition
Height
=
"auto"
/>
<
RowDefinition
Height
=
"1"
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"60"
/>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"40"
/>
</
Grid.ColumnDefinitions
>
<
Label
Grid.Row
=
"0"
Grid.RowSpan
=
"3"
Grid.Column
=
"0"
... />
<
Label
Grid.Row
=
"0"
Grid.Column
=
"1"
Text
=
"{Binding Item.JobLine1}"
TextColor
=
"{StaticResource DarkSlateGrey}"
FontSize
=
"17"
Margin
=
"0,2,0,0"
/>
<
Label
Grid.Row
=
"1"
Grid.Column
=
"1"
... />
...
</
Grid
>
</
Grid
>
</
DataTemplate
>
This would display the sequence number of the job, the address line, then the expander icon to collapse or expand the item to display further details. If the address line was longer than the width of column then it would wrap toa new line.
After upgrading the controls to v2020.3.916.1 the width of the address column behaves like "auto" instead of "*" - the addresses contract or expand without wrapping and the width of the "item" would also adjust accordingly giving a ragged right edge.
I have attached some screenshots to show the result before and after the upgrade.
Hi there, it's me again :)
Is it possible to focus an item of the tree ? I'm using the tree to select a value, that is saved. When I create the tree, I want to focus this value, previously defined. But I can't find any way to expand the tree to this item, and focus on it. I already have a customization to highlight this item, but it's not in the screen when the initialization is done, so I can't see that I already have a selected value (unless I scroll the whole tree to check it myself) :(
The ItemSource of the TreeView is a ObservableCollection<CustomObject> and I know exactly wich CustomObject I would like to focus.
Thank you :)
Hi, i'm working with RadDataGrid using DataGridTemplateColumn to customize some Columns on Grid
this is my implementation
listViewOrder.Columns.Add(new DataGridTemplateColumn
{
HeaderText = "Req. Mts",
SizeMode = DataGridColumnSizeMode.Auto,
CellContentTemplate = new DataTemplate(() => {
Entry entry = new Entry();
entry.FontSize = 16;
entry.Keyboard = Keyboard.Numeric;
entry.SetBinding(Entry.TextProperty, "RequiredQuantity");
/** some code to implement image**/
return entry;
})
});
The code works on all iOS devices and also on some android devices, but on many others the keyboard does not allow typing inside the Entry element.
May be any trouble with my code that causes this issue?
Please help
Hi,
I want that when I look for the filter be case insensitive but I can not find the way.
Thanks.
Hi,
I was wondering if there's any guidance on how to handle Dark mode with Telerik Controls?
We are currently using RadDataFrom and under dark mode, the form still have white background with white text making it unreadable.
Thanks
We're looking for a straightforward way to set the text colour of a cell based on the value of a cell. The markup below gives: Error: Position 79:32. No property, bindable property, or event found for 'TextColor', or mismatching type between value and property.
Will CellContentStyleSelector work and is that the only option?
<
telerikDataGrid:DataGridNumericalColumn
PropertyName
=
"EmployeeRating"
HeaderText
=
"Rating"
>
<
telerikDataGrid:DataGridNumericalColumn.CellContentStyle
>
<
telerikDataGrid:DataGridTextCellStyle
TextColor
=
"{Binding EmployeeRatingTextColor}"
SelectedTextColor
=
"Black"
FontSize
=
"15"
/>
</
telerikDataGrid:DataGridNumericalColumn.CellContentStyle
>
</
telerikDataGrid:DataGridNumericalColumn
>
Hello,
All is in the title.
I could not find any documentation nor example for that feature, besides that I need to create a custom renderer and register it.
Can you provide an example of an editor that triggers an action when clicked, by example?
Regards,
Gregs