We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Problem hiding/showing column when grid is empty

VS 2013
Syncfusion MVC: 12.1451.0.49

The zip file submitted with this thread would suffice to test the following problem. When gridObj.showColumns(...) or gridObj.hideColumns(...) is called and the grid is empty, the error "Unable to get property 'length' of undefined or null reference" is raised. The problem occurs here in ej.web.all.js:

sendDataRenderingRequest: function (i) {
      var ft, w, et, d, g, ot, b, p, ht, a, h, u, v, o, it, c, l, s, y, rt, e, f, k, ut, ct, r;
      if (i.requestType == "add" || this.model.currentViewData.length) switch (i.requestType)

Specifically the bold text.

Thanks,

Rick

6 Replies

RT Rick Thompson June 30, 2014 03:43 PM UTC

VS 2013
Syncfusion MVC: 12.1451.0.49

Combining column show/hide with column resize causes the "data" portion of the grid to not line up with the column headers.

Thanks,

Rick


RU Ragavee U S Syncfusion Team July 1, 2014 12:08 PM UTC

Hi Rick

 

Query #1: “When gridObj.showColumns(...) or gridObj.hideColumns(...) is called and the grid is empty, the error "Unable to get property 'length' of undefined or null reference" is raised. 

 

We are able to reproduce the issue that you have mentioned and confirmed it as a defect. We have logged a defect report on the issue “Issue when performing show/hide columns when dataSource is null”.

 

The fix for this issue will be available in our Volume 2, 2014 Service Pack 1 Release.

 

As of now, the issue can be fixed by passing new List<string>() to the dataSource instead of passing null value.

 

Query #2: “Combining column show/hide with column resize causes the "data" portion of the grid to not line up with the column headers.

 

We have analyzed the issue that you have mentioned and we are able to reproduce it only in IE browser. We have confirmed it as a defect and have logged a defect report on the same. The fix for this issue “Mis-Alignment of grid content  and column header when column is resized” will be available in our Volume 2, 2014 Service Pack 1 Release.

 

If you are facing the issue in any other browser, please provide us the information of your browser with the version details. The provided information will be helpful for us to provide the response as early as possible.

 

Currently, the issue can be fixed by enabling the AllowScrolling property of the grid and also by setting the scroller height and width in the ScrollOption property when resizing is enabled.

 

Please let us know if you need any further assistance.

 

Regards

Ragavee U S



RT Rick Thompson replied to Ragavee U S July 1, 2014 02:36 PM UTC

Hi Rick

 

Query #1: “When gridObj.showColumns(...) or gridObj.hideColumns(...) is called and the grid is empty, the error "Unable to get property 'length' of undefined or null reference" is raised. 

 

We are able to reproduce the issue that you have mentioned and confirmed it as a defect. We have logged a defect report on the issue “Issue when performing show/hide columns when dataSource is null”.

 

The fix for this issue will be available in our Volume 2, 2014 Service Pack 1 Release.

 

As of now, the issue can be fixed by passing new List<string>() to the dataSource instead of passing null value.

 

Query #2: “Combining column show/hide with column resize causes the "data" portion of the grid to not line up with the column headers.

 

We have analyzed the issue that you have mentioned and we are able to reproduce it only in IE browser. We have confirmed it as a defect and have logged a defect report on the same. The fix for this issue “Mis-Alignment of grid content  and column header when column is resized” will be available in our Volume 2, 2014 Service Pack 1 Release.

 

If you are facing the issue in any other browser, please provide us the information of your browser with the version details. The provided information will be helpful for us to provide the response as early as possible.

 

Currently, the issue can be fixed by enabling the AllowScrolling property of the grid and also by setting the scroller height and width in the ScrollOption property when resizing is enabled.

 

Please let us know if you need any further assistance.

 

Regards

Ragavee U S


Thanks for the update. I confirmed in my project that combining show/hide with column adjust is only a problem in IE.


RT Rick Thompson replied to Rick Thompson July 1, 2014 02:45 PM UTC

Hi Rick

 

Query #1: “When gridObj.showColumns(...) or gridObj.hideColumns(...) is called and the grid is empty, the error "Unable to get property 'length' of undefined or null reference" is raised. 

 

We are able to reproduce the issue that you have mentioned and confirmed it as a defect. We have logged a defect report on the issue “Issue when performing show/hide columns when dataSource is null”.

 

The fix for this issue will be available in our Volume 2, 2014 Service Pack 1 Release.

 

As of now, the issue can be fixed by passing new List<string>() to the dataSource instead of passing null value.

 

Query #2: “Combining column show/hide with column resize causes the "data" portion of the grid to not line up with the column headers.

 

We have analyzed the issue that you have mentioned and we are able to reproduce it only in IE browser. We have confirmed it as a defect and have logged a defect report on the same. The fix for this issue “Mis-Alignment of grid content  and column header when column is resized” will be available in our Volume 2, 2014 Service Pack 1 Release.

 

If you are facing the issue in any other browser, please provide us the information of your browser with the version details. The provided information will be helpful for us to provide the response as early as possible.

 

Currently, the issue can be fixed by enabling the AllowScrolling property of the grid and also by setting the scroller height and width in the ScrollOption property when resizing is enabled.

 

Please let us know if you need any further assistance.

 

Regards

Ragavee U S


Thanks for the update. I confirmed in my project that combining show/hide with column adjust is only a problem in IE.

Well, I posted to soon.

There is a problem in Chrome if there is hide/show, column width adjustment, AND moving columns around. It looks like what happens in IE with the hide/show and column width adjustment.

Thanks,

Rick


RU Ragavee U S Syncfusion Team July 2, 2014 07:12 AM UTC

Hi Rick

 

Thanks for the update.

 

As we have already mentioned in our previous update, we are able to reproduce the mis-alignment issue in IE browser and thus have logged an issue report on the same. But we are unable to reproduce the issue in Chrome browser. So could you please provide us with your Chrome version details and the replication procedure.

 

The provided information will be helpful for us to provide the response as early as possible.

 

Please let us know if you need any further assistance.

 

Regards

Ragavee U S



RU Ragavee U S Syncfusion Team August 8, 2014 06:55 AM UTC

Hi Rick,

 

We are glad to announce that our Essential Studio service pack for Volume 2, 2014 is rolled out and is available for download under the following link.

 

http://www.syncfusion.com/forums/117079/essential-studio-2014-volume-2-service-pack-2-release-v12-2-0-39-available-for-download

 

The fix for the issues “Issue when performing show/hide columns when dataSource is null” and “Mis-Alignment of grid content and column header when column is resized” are included in the above link.

 

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

 

Regards,

Ragavee U S


Loader.
Live Chat Icon For mobile
Up arrow icon