Solved

How to catch onclick on treeview inside update panel  with (onCollapse & on Expand trigger) on update panel triggers ,

Posted on 2011-02-13
4
540 Views
Last Modified: 2012-05-11
I have a treeview inside an ajax update panel with ONCollapse & onExpand to trigger the update panel. This is in the masterpage and when clicked i trigger with delegate the inside page, but since i made the update panel, i cant catch the onclick event. I need the treeview on the update panel because i keep its state for retaining the Expanded/Collapsed through the website
public delegate void mstDelegate(object sender, System.EventArgs e);
    public partial class eshop_en : System.Web.UI.MasterPage
    {
        SqlConnection connection10 = new SqlConnection();
        SqlConnection connection100 = new SqlConnection();
        SqlConnection connection200 = new SqlConnection();
        SqlConnection connection300 = new SqlConnection();

        public string[] op = new string[30];

        private string slectedValue;
        public string SlectedValue
        {
            get { return slectedValue; }
            set { slectedValue = value; }
        }
        public event mstDelegate TreeViewEvent;
       
        protected void Page_Load(object sender, EventArgs e)
        {

Open in new window

0
Comment
Question by:rodojohn
4 Comments
 
LVL 6

Accepted Solution

by:
kswathi earned 500 total points
ID: 34886195
0
 

Author Comment

by:rodojohn
ID: 34886213
thanks kswathi i ll look it up, although i believe this solution causes postback wich i want only on the Onclick and not in expand/collapse
0
 
LVL 19

Expert Comment

by:Amandeep Singh Bhullar
ID: 35906827
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
jquery, dropdown 4 38
ConsoleSql 1 21
cs.Designer Issue 2 19
Visual Studio 2013 debugging 2 24
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now