Export all rows to excel in RadTreeListView

7 posts, 0 answers
  1. rahul
    rahul avatar
    25 posts
    Member since:
    Jan 2011

    Posted 25 Mar 2011 Link to this post

    I am exporting the data in RadTreeListView using Export function, it exports only the rows expanded by user manullay but I want to export all the rows irrespective users have expanded it or not. I have 10000 rows in a tree and users have to drill down manually all the rows one by one in a tree to export all the rows.
    How can I export all the rows in RadTreeListView without expandign it? 
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 25 Mar 2011 Link to this post

    Hello,

     You can call ExpandAllHierarchyItems() before exporting. 

    All the best,
    Vlad
    the Telerik team
  3. DevCraft banner
  4. rahul
    rahul avatar
    25 posts
    Member since:
    Jan 2011

    Posted 25 Mar 2011 Link to this post

    Hi Vlad,
    Thanks for your prompt reply, but that will forcefully change the users's view as it will expand all the nodes,which I do not want.
     
    How if I can have the one more grid as replica and set the visible property to it's false and can use that grid for export purpose, but can we have better approach as I have 10000 records in a grid and I don't want to load it twice?
  5. Marik
    Marik avatar
    1 posts
    Member since:
    Sep 2009

    Posted 18 Apr 2011 Link to this post

    Did you found a better solution (than call ExpandAllHierarchyItems())?
  6. Du
    Du avatar
    4 posts
    Member since:
    Jun 2012

    Posted 25 Feb 2013 Link to this post

    You can use function ExpandAllItems(), Example: RadTreeList1.ExpandAllItems()

  7. Prithvi
    Prithvi avatar
    19 posts
    Member since:
    Jul 2012

    Posted 29 Jan 2015 in reply to rahul Link to this post

    Hi, 

    I have a radtreelistview. I want to do export excel, but not all elements, only elements which are visible to the user(some are collapased and some are expanded), only those which are visible should be exported.

    Pls Help.
  8. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 29 Jan 2015 Link to this post

    Hello,

    You can handle ElementExporting event and cancel it for the rows/ items that you do not want to be exported.

    Regards,
    Maya
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
DevCraft banner