Click here to Skip to main content
15,851,711 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an update panel. Inside a gridview with templates for text boxes and drop down lists. There is a trigger that refreshes the grid every 10 seconds.

The goal is to avoid refreshing the gridview if the user is editing any of the text boxes or the drop down lists. How can I do this? I thought about using Javascript to run every 10 seconds to check the if any of the textboxes or dropdownlists have focus. If any of the controls have focus then ignore, else refresh the gridview. Is there a better approach or way to do this?
Thank you,
Martin
Posted

1 solution

I think you need to use timer to refresh the grid. Once you start editing the grid, you need to stop the timer.

Check this..

https://www.asp.net/ajax/documentation/live/tutorials/IntroToTimerControl.aspx[^]
 
Share this answer
 

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