MihaMarkic / BlazorDevExtreme

Blazor interop for DevExtreme library
MIT License
30 stars 5 forks source link

weirdness with DxDataGrid and GridBase #11

Closed sven5 closed 5 years ago

sven5 commented 5 years ago

Hi Miha,

today I tried implementing a Dxdatagrid. I was successful in defining columns for the grid:

<DxDataGrid Columns="@gridColumns" />
object gridColumns = new[]
{
    new DevExpress.Ui.DxDataGridColumn { caption = "Name", dataField = nameof(OverviewEntry.StoreName), dataType = "text"},
    new DevExpress.Ui.DxDataGridColumn { caption = "Street",dataField = nameof(OverviewEntry.StoreStreet), dataType = "text" },
    new DevExpress.Ui.DxDataGridColumn { caption = "Zipcode", dataField = nameof(OverviewEntry.ZipCode), dataType = "text" },
    new DevExpress.Ui.DxDataGridColumn { caption = "City",dataField = nameof(OverviewEntry.City), dataType = "text" },
    new DevExpress.Ui.DxDataGridColumn { caption = "Status", dataType = "text" }
};

And then I'd like to add a filterRow to the grid. My problem is, that most of datagrid's functionality is in the GridBase component. However there is no connection between DxDataGrid and GridBase - I think something is missing. The DxDataGrid should inherit from GridBase. Could you please look into it?

Thanks Sven

MihaMarkic commented 5 years ago

Fixed with #13 and released 0.6.2. Will close it, but feel free to report whether it works or not.

sven5 commented 5 years ago

@MihaMarkic It's working. thank you.