I am using a WebGrid with EnableF2="False" and EnableOnKeyPress="True".
I have users that need to type values on rows of some colum in a WebGrid.
Is there a way for the user to type a value in a cell and then just pressing downArrow key, move the focus to the cell below, saving the data?
With the settings I am using now, after typying the value, I have to press ENTER and only after that I can press downArrow to move the focus.
I do not want to press ENTER, I just want to press downArrow key.
You can see this behavior at this link:
http://wijmo.com/demo/explore/?widget=Grid&sample=Editing
Try to change the value of DISCOUNT column and then press downArrow, note that the value is saved and the focus moved to the cell below,
Another nice issue is: try to click in the QUANTITY HEADER, note that the focus moves to the first cell
Is there a way to have these behaviors using WEBGRID?
Thanks!
Edson
Hello ,
I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
Hello haijunw ,
The issue is analogical to the scenario when you use a NumericEditorProvider in a WebDataGrid.
You’ll have to handle the editor’s keydown event instead and move the navigation logic there.
Let me know if you have any questions.
Developer Support Engineer II
Maya, Just let know that WebnumericEdit control was embedded inside cell and I do not know whether it prevents UltraWebGrid1_EditKeyDown event firing. If yes, how can I allow users to use arrow key for navigation and edit? Thanks
Hi Maya,
After changed the CellClickActionDefault to Edit, the ultrawebgird I am using is very slow - it takes several seconds to update a cell and the UltraWebGrid1_EditKeyDownHandler event never fires. I followed the instrution you sent to me. I think I missed something. Any suggestions.
Thanks
Haijunw
Hello Edson,
The element is found by its client id. If the grid is nested in other container controls it’s possible that isn’t its client id.
You could get the client id dynamically for example:
var grid = $find("<%=WebDataGrid1.ClientID%>");
Let me know if that helps.