code: function() {
              if ($(this).treegrid('isNode')) {
                  var parentNode = $(this).treegrid('getParentNode');
                  if (parentNode === null) {
                      if ($(this).treegrid('getNodeId') === $(this).treegrid('getRootNodes').last().treegrid('getNodeId')) {
                          return true;
                      }
                  } else {
                      if ($(this).treegrid('getNodeId') === parentNode.treegrid('getChildNodes').last().treegrid('getNodeId')) {
                          return true;
                      }
                  }
              }
              return false;
          }
docs: Method return true if node last in branch
  
  @returns {Boolean}