This is a migrated thread and some comments may be shown as answers.

Event Firing

1 Answer 58 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Rahul Khinvasara
Top achievements
Rank 1
Rahul Khinvasara asked on 27 Feb 2008, 11:52 AM
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.



 

1 Answer, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 04 Mar 2008, 02:27 PM

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.  
           }  
             
       } 
Tags
Dock
Asked by
Rahul Khinvasara
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Share this question
or