Skip to content

Replies

0
User42
User42 answered on Apr 24, 2020 12:51 PM

Hi Katy,

I have fought this same problem and thankfully was able to implement a solution that allowed me to sort and filter columns with nested data.

Before I get to that though I want to second your call for a need to support non-flattened data. It’s counter-intuitive to how I’ve worked with grids in other platforms. I’ve even brought this up to IG representatives at conferences who’ve agreed with me. Would love to see this happen! If you could supply a link to your feature request that I could vote on I certainly would.

Anyway, as to your particular problem, the way to get what your after is to implement a custom filter using the various IgxFilteringOperands that are offered. For sorting you would instead implement a custom sorter.

That’s the route I took and it worked fine, it was just more effort than I’d like to have to go through.

Feel free to reach out to me if you want any help (such that I can provide heh)

0
User42
User42 answered on Mar 5, 2020 9:58 PM

Hi Monika, I believe there were some version conflicts going on in my environment. I updated a lot of packages and it is now working properly. Thanks for the help.

0
User42
User42 answered on Mar 4, 2020 4:20 PM

Hi Monika,

Thanks for catching the naming slip up. I had originally had all of the names straight but going back and forth between paging and no paging I missed that one.

I have corrected the name but that didn't make a difference. I then copied the grid and template definitions from your stackblitz but I'm still getting the same error.

0
User42
User42 answered on May 3, 2019 7:08 PM

Sure, I'm using the following code to set the disabled dates;

 var endDate: Date = new Date(EndDate);
    endDate.setHours(0, 0, 0, 0);

    var startDate = new Date();
    startDate.setHours(0, 0, 0, 0);
    
    endDate.setDate(endDate.getDate() - 1);
    this.datePicker.disabledDates = [
      { type: DateRangeType.Before, dateRange: [startDate] },
      { type: DateRangeType.After, dateRange: [endDate]}
    ]

The idea is to disable all dates that are before today and later than 1 day before the passed in end date.

What I was trying to illustrate in my image is that the 27th is enabled according to my logic, and verified enabled by being able to select it but the 20th is disabled, which it should be due to my logic. Every other day is disabled except for the 26th and 27th which is the expected behavior.

As I stated originally though, the 26th and the 27th are styled exactly the same, and the same as all other disabled dates, even though the 27th is enabled.

0
User42
User42 answered on Apr 23, 2019 12:03 PM

Works great. Not sure how I missed that one but found emptyFilteredGridMessage so easily lol. Thanks!

0
User42
User42 answered on Feb 25, 2019 4:32 PM

Excellent work! Thanks for the sample.

0
User42
User42 answered on Nov 21, 2018 11:52 AM

Thank you for the assistance. This put me on the correct path.