Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Why my TreeNodePopulate of TreeView contol is not fired?

Why my TreeNodePopulate of TreeView contol is not fired?

Scheduled Pinned Locked Moved ASP.NET
helpdatabasesysadminxmlquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kmuthuk
    wrote on last edited by
    #1

    Hi all, I have a treeview control, loading data using an xml file, and have a trigger [TreeView1_TreeNodePopulate] in the codebehind. Don't know for some reason it is not getting fired. Even though I'm raising an error in my trigger, it seems it doesn't work. Could anyone help me find this PLEASE? Here is my aspx:

        DataFile="Book.xml"
        runat="server">
    

    codebehind: protected void Page_Load(object sender, EventArgs e) { TreeView1.TreeNodePopulate += new TreeNodeEventHandler(TreeView1_TreeNodePopulate); } protected void TreeView1_TreeNodePopulate(object sender, TreeNodeEventArgs e) { throw new Exception("alsdjfla"); } Thanks A LOT. Muthu

    C 1 Reply Last reply
    0
    • K kmuthuk

      Hi all, I have a treeview control, loading data using an xml file, and have a trigger [TreeView1_TreeNodePopulate] in the codebehind. Don't know for some reason it is not getting fired. Even though I'm raising an error in my trigger, it seems it doesn't work. Could anyone help me find this PLEASE? Here is my aspx:

          DataFile="Book.xml"
          runat="server">
      

      codebehind: protected void Page_Load(object sender, EventArgs e) { TreeView1.TreeNodePopulate += new TreeNodeEventHandler(TreeView1_TreeNodePopulate); } protected void TreeView1_TreeNodePopulate(object sender, TreeNodeEventArgs e) { throw new Exception("alsdjfla"); } Thanks A LOT. Muthu

      C Offline
      C Offline
      Calin Tatar
      wrote on last edited by
      #2

      set PopulateOnDemand = true Calin

      K 1 Reply Last reply
      0
      • C Calin Tatar

        set PopulateOnDemand = true Calin

        K Offline
        K Offline
        kmuthuk
        wrote on last edited by
        #3

        I tried this. But still it is not working. Thanks for the quick response.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups