Click here to Skip to main content
15,902,636 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I have few panels on page.
In one of the panels, there is a button with few editable controls.
User can edit these controls' values and use the button to see derived values.

However, we have a requirement to prompt user if the user moves out of the panel and goes to another panel without using the button.

Is it possible to catch such event? If yes, how?
Posted
Comments
manognya kota 6-Nov-12 1:44am    
Are the panels in tabs?
Ashok26 6-Nov-12 11:16am    
No.
One after another vertically on same page.

1 solution

Hi,

As per my understanding, i guess..
1.You can have a hidden field flag to indicate whether the button was clicked or not.
2.In the client side events of the controls in Panel2, you can check whether that flag is set or not.
3.Then focus/display an alert message as required.


Correct me if i have understood the context wrongly.
Hope this helps.
 
Share this answer
 
Comments
Ashok26 6-Nov-12 11:15am    
This is my understanding of your reply:
ON each field in panel 2, do a client-side validation for change in any field in panel 1.

This could be tedious if there are many number of fields.
THis becomes even more complex if number of panels are more.

I have 10 panels on my page comprising of 200 fields. Few panels have grids too.

Is there any way to perform same check on panel level.
So, as soon as user clicks on the area of another panel, a javascript function can be called.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900