Unplanned
Last Updated: 04 Sep 2020 17:00 by Brad
Created by: Brad
Comments: 2
Category: DataGrid
Type: Bug Report
0

If you use a TrueType font for the DataGrid column's OptionsButtonFontFamily, it is not respected and falls back to a default OS font.

Workaround

The only workaround at this time is to create a custom column HeaderTemplate with a custom options button and hide the default options button.

<dataGrid:RadDataGrid x:Name="dataGrid" ...>
    <dataGrid:RadDataGrid.Columns>
        <dataGrid:DataGridTextColumn x:Name="productNameColumn" PropertyName="ProductName">
            <dataGrid:DataGridTextColumn.HeaderContentTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>

                        <Label Text="Name" TextColor="Black"/>

                        <Label FontFamily="MyCustomFont.ttf#MyCustomFont"
                                    Text="&#xE717;"
                                    TextColor="Orange" HorizontalOptions="End" HorizontalTextAlignment="End" Grid.Column="1">
                            <Label.GestureRecognizers>
                                <TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped"/>
                            </Label.GestureRecognizers>
                        </Label>
                    </Grid>
                </DataTemplate>
            </dataGrid:DataGridTextColumn.HeaderContentTemplate>
            <dataGrid:DataGridTextColumn.HeaderStyle>
                <dataGrid:DataGridColumnHeaderStyle OptionsButtonFontSize="0" FilterIndicatorFontSize="0"/>
            </dataGrid:DataGridTextColumn.HeaderStyle>
        </dataGrid:DataGridTextColumn>
    </dataGrid:RadDataGrid.Columns>
</dataGrid:RadDataGrid>

In the code-behind, we use reflection to access the column's command context and invoke the options menu via DataGrid command service.

public partial class YourPage : ContentPage
{
    private readonly MethodInfo generateOptionsTapContextMethodInfo;

    public YourPage()
    {
        InitializeComponent();

        this.generateOptionsTapContextMethodInfo = this.dataGrid.GetType().GetMethod(
            "GenerateFilteringCommandContext", 
            BindingFlags.NonPublic | BindingFlags.Instance);
    }

    private void TapGestureRecognizer_Tapped(object sender, EventArgs e)
    {
        if (this.generateOptionsTapContextMethodInfo != null)
        {
            // Get a reference to the column, this is needed to invoke a command
            var context = this.generateOptionsTapContextMethodInfo.Invoke(
                this.dataGrid, 
                new object[] { this.productNameColumn });

            // Invoke the command service that opens the options button
            this.dataGrid.CommandService.ExecuteDefaultCommand(
                Telerik.XamarinForms.DataGrid.Commands.DataGridCommandId.OptionsTap, 
                context);
        }
    }
}

 

Unplanned
Last Updated: 27 Aug 2020 11:10 by Mahmoud
For example: When I enable DataGrid LoadOnDemand it's loading infinitely for a static list of 3 records.
Unplanned
Last Updated: 27 Aug 2020 11:12 by Mahmoud
The horizontal scrollviewer is not visualized initially when the column header text is longer than the columns' text. Still, tapping on any item makes it possible to scroll.
Unplanned
Last Updated: 08 May 2020 10:08 by ADMIN
changing the item source of the data grid based on the picker option, but the app crashes at that time when changing data grid cell values
Unplanned
Last Updated: 17 Apr 2020 06:04 by ADMIN
If you open the filtering UI of a TextColumn, start typing into the "Enter filter criteria" field and press "Reset" or "Filter", the filtering UI is closed, still, the soft keyboard is not hidden.
Unplanned
Last Updated: 28 Jan 2020 11:29 by ADMIN

When you edit a value of a certain item of the DataGrid and keyboard is displayed, while the focus is still in the input and the row is scrolled away, the keyboard will stay open on Android.

In addition, if you return back to the edited cell, the row will display as if it were on focus, the cell shows the editor underline, the keyboard is still open, but there will be no focus.  You will be required to click on the cell to get focus again.

Lastly, only on Android 5.1, if the edited value is a number, when you scroll the cell out of view, the keyboard changes from the numerical to alphanumerical (default).

Unplanned
Last Updated: 19 Dec 2019 08:36 by ADMIN
Created by: OLIFEL
Comments: 1
Category: DataGrid
Type: Bug Report
2

You can reproduce this by changing input language to any region that uses a comma decimal separator (e.g. Duetsch). The comma is ignored, ultimately corrupting the data

Unplanned
Last Updated: 06 Dec 2019 15:50 by ADMIN
an issue when changing the orientation of the phone to landscape the items of the grid are rendered, then when go back to portrait the items that aren't rendered in the screen disappear.
Unplanned
Last Updated: 07 Nov 2019 08:58 by ADMIN

If you define a PropertyGroupDescriptor in XAML or in page constructor and the PropertyName is set to a nested property, the grouping is not applied.

Grouping by a nested property works correctly when called from the Filtering UI or on a button click action.

Unplanned
Last Updated: 15 Oct 2019 09:34 by ADMIN

Column names in column selector are not visible in Android the first time the column selector is shown. This happens only in the case UserFilterMode is disabled. 

Unplanned
Last Updated: 19 Sep 2019 07:46 by ADMIN

I have tried to change the cell background color programatically .

This is Perfectly Working on Android Devices.

But,this not working on iOS devices.

Please provide better solution to solve this issue.

below i have attached the xmal and .cs file

Unplanned
Last Updated: 11 Sep 2019 11:09 by ADMIN
When the DataGridPickerColumn ItemsSource property is bound to a collection not part of the business object used for the DataGrid, and ItemDisplayBindingPath is used, null reference exception is raised when selecting items in the picker.
Unplanned
Last Updated: 19 Aug 2019 09:58 by ADMIN
When display is on high resolution screen (MS surface book screen 3000*2000 with 200% scale) the DataGrid is not resized correctly.  See attachments. 
Unplanned
Last Updated: 07 Aug 2019 14:40 by ADMIN
Applying custom filter to the datagrid and removing column at the same time disables the horizontal scrollbar - in scenario when the content of the column is bigger than the screen size.
Unplanned
Last Updated: 24 May 2019 07:05 by ADMIN
After scrolling down enough times where all of the data is loaded, if I try to scroll a bit more, things go a bit crazy.  A loading icon flickers on and off over the grid; the data in the grid flickers away and then back; and the entire UI essentially gets stuck in this situation.
Unplanned
Last Updated: 12 May 2020 08:15 by ADMIN

Flicker can be observed when datagrid is manipulated/updated, or entering in edit mode. One example is tapping on a column header - when there is a column with a HeadetTemplate, the column header flickers. Other example is to double-tap a cell to go in edit mode. Also the behavior can be reproduced when DataGrid TemplateColumn is used.

Unplanned
Last Updated: 14 May 2019 12:25 by ADMIN
Created by: Franz
Comments: 1
Category: DataGrid
Type: Bug Report
0
DataGridColumn.ActualWidth always returns 0
Unplanned
Last Updated: 16 Apr 2019 12:42 by ADMIN
Created by: Safan
Comments: 1
Category: DataGrid
Type: Bug Report
10

I have an custom column extending "DataGridTextColumn". This column overrides "CreateGroupDescriptor" methods and returns an instance of "DelegateGroupDescriptor". Once we group items in this column it can never be cleared/un-grouped.

 

Any help would be heighly appreciated. Thanks in advance.

Unplanned
Last Updated: 05 Apr 2019 07:48 by ADMIN
 System.ObjectDisposedException:(Cannot access a disposed object) is thrown when switching tabs fast in RadTabView.
Unplanned
Last Updated: 19 Dec 2018 11:01 by ADMIN
ConcurrentModificationException is thrown when DataGrid is placed inside a TemplateColumn
1 2