Coder Social home page Coder Social logo

Comments (12)

roman-simionov avatar roman-simionov commented on July 2, 2024 2

@GikiDev, thank you for your reply. Now I see the issue appears when EF is used. We will fix it in the context of this issue

from devextreme.aspnet.data.

AlekseyMartynov avatar AlekseyMartynov commented on July 2, 2024 1

Hi @GiviKDev

Would you please check the fixed NuGet from https://ci.appveyor.com/project/dxrobot/devextreme-aspnet-data/build/244/artifacts ?

You will need the following binding redirect in web.config:

<dependentAssembly>
 <assemblyIdentity name="DevExtreme.AspNet.Data" publicKeyToken="982f5dab1439d0f7"/>
 <bindingRedirect oldVersion="0.0.0.0-99.0.0.0" newVersion="99.0.0.0"/>
</dependentAssembly>

P.S. How to install a Nuget Package .nupkg file locally

from devextreme.aspnet.data.

AlekseyMartynov avatar AlekseyMartynov commented on July 2, 2024

Test case (in the context of GroupHelperTests):

var data = new[] {
    new { d = new DateTime?(new DateTime(1996, 7, 4)) },
    new { d = new DateTime?() }
};

var groups = CreateHelper(data).Group(data, new[] {
    new GroupingInfo { Selector = "d", GroupInterval = "year", IsExpanded = false },
    new GroupingInfo { Selector = "d", GroupInterval = "month", IsExpanded = false },
    new GroupingInfo { Selector = "d", GroupInterval = "day", IsExpanded = false }
});

@vconst @Alyar666
What behavior we expect?
Should null values be ignored during the calculation of date group intervals?

from devextreme.aspnet.data.

vconst avatar vconst commented on July 2, 2024

The null values should not be ignored. The groups array should contains item with key value null. The grid ignores the items property in header filter when key is null.

from devextreme.aspnet.data.

AlekseyMartynov avatar AlekseyMartynov commented on July 2, 2024

Do I understand correctly: there must be 3 group levels with null keys?

from devextreme.aspnet.data.

vconst avatar vconst commented on July 2, 2024

Yes

from devextreme.aspnet.data.

AlekseyMartynov avatar AlekseyMartynov commented on July 2, 2024

Fix will be included in release 1.2.1

from devextreme.aspnet.data.

GiviKDev avatar GiviKDev commented on July 2, 2024

Hello,

Header Filter not working with Nullable<DateTime> when RemoteOperations is set to true.

public static object Load<T>(IQueryable<T> source, DataSourceLoadOptionsBase options);
method throws an exception:

Value cannot be null.
Parameter name: constructor

Version 1.2.3

from devextreme.aspnet.data.

AlekseyMartynov avatar AlekseyMartynov commented on July 2, 2024

@roman-simionov PTAL

from devextreme.aspnet.data.

roman-simionov avatar roman-simionov commented on July 2, 2024

Hello @GiviKDev,

My attempts to reproduce the issue with the sample project were unsuccessful. The header filter works correctly with Nullable<DateTime> and the enabled RemoteOperations options. Would you please update my sample to illustrate the issue.

from devextreme.aspnet.data.

GiviKDev avatar GiviKDev commented on July 2, 2024

Hello @roman-simionov ,
I updated your sample project, where you can reproduce current bug.

T458279.zip

from devextreme.aspnet.data.

GiviKDev avatar GiviKDev commented on July 2, 2024

Hello,

Thanks, it's working like a charm.

from devextreme.aspnet.data.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.