Grid.SetState gives null ref with no useful stack trace

0 Answers 21 Views
Grid
Jason
Top achievements
Rank 1
Iron
Veteran
Jason asked on 18 Feb 2022, 02:45 PM

I'm suddenly getting null refs when I call Grid.SetState and I need more information on why.

User clicks Reset button:
await Grid.SetState(null);

And then I set a Default Sort

            var desiredState = new GridState<SearchDocumentItem>()
            {
                SortDescriptors = new List<SortDescriptor>()
                    {
                        new SortDescriptor { Member = member, SortDirection = dir }
                    }
            };

            if (Grid != null)
                await Grid.SetState(desiredState);

Marin Bratanov
Telerik team
commented on 20 Feb 2022, 04:26 PM

Please add the error stack trace and when that issue happens.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Jason
Top achievements
Rank 1
Iron
Veteran
Share this question
or