Event Firing

2 posts, 0 answers
  1. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 27 Feb 2008 Link to this post

    Hi
           I have created RadDockLayout dynamically, I want to fire SaveDockLayout event on  particular Button, So How it will work?
            OR Any option for the SaveDockLayout function.



     
  2. Obi-Wan Kenobi
    Obi-Wan Kenobi  avatar
    460 posts
    Member since:
    Aug 2007

    Posted 04 Mar 2008 Link to this post

    You can save the state only when a particular button is clicked, if you use a flag(IsButtonClicked).
     For example:

    bool IsButtonClicked = false;  
           protected void Page_Load(object sender, EventArgs e)  
           {  
               Response.Write("Load");  
           }   
           protected void Button1_Click(object sender, EventArgs e)  
           {  
               Response.Write("ButtonClicked");  
               IsButtonClicked = true;  
           }  
           protected void RadDockLayout1_SaveDockLayout(object sender, DockLayoutEventArgs e)  
           {  
               if (IsButtonClicked == true)  
               {  
                   Response.Write("Save");  
                   //SAVE,etc.  
               }  
                 
           } 
Back to Top