ExpandAllItems() is a server-side method intended only for use when the ExpandCollapseMode is set to Server. If you wish to expand all items on the client you should use the client-side API of the TreeList http://docs.telerik.com/devtools/aspnet-ajax/controls/treelist/client-side-programming/treelistdataitem-object