Link to home
Create AccountLog in
Avatar of rodojohn
rodojohnFlag for Greece

asked on

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

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

ASKER CERTIFIED SOLUTION
Avatar of kswathi
kswathi
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of rodojohn

ASKER

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
Avatar of Amandeep Singh Bhullar
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.