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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

"Unable to get property 'nodeType' of undefined or null reference" in treegrid

Thread ID:

Created:

Updated:

Platform:

Replies:

119831 Aug 5,2015 07:53 PM UTC Aug 7,2015 10:13 AM UTC ASP.NET MVC 3
loading
Tags: TreeGrid
Harry Zheng
Asked On August 5, 2015 07:53 PM UTC

Hi, I am using treegrid to show hierarchical data. I previously asked question about hide/show certain columns when collapse/expand (please see thread 119567), which works well.
However, I often got error: Unable to get property 'nodeType' of undefined or null reference, when sometimes I collapse a node or double click cells for editing. Please see attached images for error messages on webpage and in debugger.
Note this problem only occurs in internet explorer, but not in chrome.
I wonder if we could fix this problem.
Thank you,

Harry

Attachment: HZ20150805_59d5dab.rar

Mahalakshmi Karthikeyan [Syncfusion]
Replied On August 6, 2015 12:00 PM UTC

Hi Harry,

Sorry about the inconvenience caused.

For your kind information, we are not getting any exception as you have specified in your last update. Can you please share some information regarding the version of the Internet Explorer you are using .But we came across a different issue while editing a row. So we have made some changes in the workaround provided in our previous update. Please find the changes below.

<script type="text/javascript">

        //Collapse Rows        

function collapse(args) {

            //…

            if (expandedChild && expandedChild.length) {

                for (var i = 0; i < columnCollection.length; i++) {

                    if (columnCollection[i].field == "Duration" && columnCollection[i].visible == false) {

                        treeGridObj.showColumn("Duration");

                    }

                    if (columnCollection[i].field == "PercentDone" && columnCollection[i].visible == false) {

                        treeGridObj.showColumn("Progress");

                    }

                }

            } else {

                treeGridObj.showColumn("Duration");

                treeGridObj.hideColumn("Progress");

            }

            //…   

</script>

We have also prepared a sample based on this and please find the sample under the following location.

Sample: http://www.syncfusion.com/downloads/support/forum/119791/ze/TreeGridSample1368706940

If you still facing any issue please get back to us by modifying this sample along with the replication procedure.

Regards,

Mahalakshmi k.


Harry Zheng
Replied On August 6, 2015 12:35 PM UTC

Hi Mahalakshmi,

Thank you for your reply. I am using internet explorer 11.
I just found out that when I comment out TreeGridToolBarItems.Add in ToolbarSettings, it will give that exception both in my project and your sample.
Please check if you could repeat the problem.
Thank you,

Harry


.ToolbarSettings(tool =>
             {
                 tool.ShowToolbar(true);
                 tool.ToolbarItems(new List<TreeGridToolBarItems>()
                {
                                     //TreeGridToolBarItems.Add,
                                     TreeGridToolBarItems.Edit,
                                     TreeGridToolBarItems.Delete,
                                     TreeGridToolBarItems.Update,
                                     TreeGridToolBarItems.Cancel,
                                     TreeGridToolBarItems.ExpandAll,
                                     TreeGridToolBarItems.CollapseAll,
                                  });
             }).

Mahalakshmi Karthikeyan [Syncfusion]
Replied On August 7, 2015 10:13 AM UTC

Hi Harry,

Sorry for the inconvenience caused.

We can also reproduce the issue while disabling add icon in toolbar and editing the task. We have already logged an issue report regarding. A support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents

Please let us know if you require further assistance on this.      

Regards,

Mahalakshmi K.


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.

Warning Icon 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.Close Icon

;