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
551 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

717 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