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

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

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,


Attachment: HZ20150805_59d5dab.rar

3 Replies

MK Mahalakshmi Karthikeyan Syncfusion Team 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) {



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




            } else {






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.


Mahalakshmi k.

HZ Harry Zheng 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,


.ToolbarSettings(tool =>
                 tool.ToolbarItems(new List<TreeGridToolBarItems>()

MK Mahalakshmi Karthikeyan Syncfusion Team 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.


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


Mahalakshmi K.

Live Chat Icon For mobile
Up arrow icon