I'm running into a strange situation with one of my grids. When I apply a filter to the first column (a string), the PerformFiltering method throws an "Object reference not set to an instance of an object" error. The strange part about this is that I have another grid that is set up almost exactly like this one and it is not throwing this error. Both are using URLAdaptor, both have mixed-type data (strings and decimals).
SSSeeni Sakthi Kumar Seeni Raj Syncfusion Team December 19, 2019 05:00 AM
Our Grid has “startswith” operator in the string Column and “equal” operator in the number column. It is default behavior. We have tried to your query in the our Grid component with provided the information. But it is unsuccessful. We have created a sample with your query and share that sample for your reference.
Still facing the same problem in your end. Could you please share the below details to us it will help to validate further.
Reproduce issue in the above sample.
Share Essential Studio version.
Is possible to share Grid dataSource in JSON format?
Controller code example example with Index or view page of the Grid.
Seeni Sakthi Kumar S
KSKevin SwannerDecember 20, 2019 12:02 PM
I was able to get your sample to work. From what I could tell, it all came down to (possibly) some null values in the data I was filtering. However, your sample is using .NET Core; mine is using .NET Standard 4.6.1 and MVC 5. When I applied the fixes and code that worked with my project, it still didn't work.
I've attached a sample project that demonstrates the problem. Note that because of file size restrictions, only the core of the solution is provided...no other libraries and packages. I'm using the latest 220.127.116.11 version. I built this application based on the "Grid: Getting Started" section of the documentation.
In the Index.cshtml, you'll see both an HTML grid definition and a (commented) JS grid. The JS grid does not get created--there is some kind of error. The HTML grid renders correctly. In the SKU search, enter "ONS_". This should throw an "Object reference..." error.
SSSeeni Sakthi Kumar Seeni Raj Syncfusion Team December 23, 2019 06:33 AM
We couldn’t see you reported problem with the provided demo and it has client end code alone not backend (Doesn’t defined UrlAdaptor data service in server-side). Now, we have created a sample with your requirement which is used the backend in ASP .Net MVC. Please refer to the below sample for your reference.