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.
Unfortunately, activation email could not send to your email. Please try again.

Problem hiding/showing column when grid is empty

Thread ID:

Created:

Updated:

Platform:

Replies:

116920 Jun 30,2014 10:45 AM Mar 8,2018 07:51 AM ASP.NET MVC 6
loading
Tags: Grid
Rick Thompson
Asked On June 30, 2014 10:45 AM

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

Rick Thompson
Replied On June 30, 2014 11:43 AM

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

Ragavee U S [Syncfusion]
Replied On July 1, 2014 08:08 AM

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


Rick Thompson
Replied On July 1, 2014 10:36 AM

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.

Rick Thompson
Replied On July 1, 2014 10:45 AM

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

Ragavee U S [Syncfusion]
Replied On July 2, 2014 03:12 AM

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


Ragavee U S [Syncfusion]
Replied On August 8, 2014 02:55 AM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;