Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prasad on Jan 11, 2008 04:59
open dhtmlx forum
page refreshes automatically

Hi,

I have grid on jsp page. Sometimes i seen that when i press enter key, the jsp page get refresh automatically.
Answer posted by Support on Jan 11, 2008 06:41
If you pressing enter key while focus inside grid - it will stop event and prevent any default actions.
If focus moved out from grid ( in case of IE it can be caused by click anywhere outside of grid ) - enter key will be processed by default page handlers, if your page has form - it may react on enter key pressing by page sending.
Answer posted by Prasad on Jan 11, 2008 07:21
Yes, Focus is moved out of grid.
Now How to avoid  the page  refreshing?
Answer posted by Support on Jan 11, 2008 07:58
If focus moved outside of grid the page refreshing caused by default page logic, it can't be caused|prevented by grid component.