![]() ![]() I figure there has to be a better built in way of accessing the grid fully via the keyboard with standard tab and enter keys, rather than the non standard keyboard shortcuts, or if I have to do it htis way for all the buttons in the control to be properly caught and handled through javascript. However, for the cancel button that is part of the GridEditCommandColumn, the validators on the page are firing which is not what happens when you just click on the Cancel link button in the grid. ![]() ASP.NET uses these values to determine what control has fired an event and what arguments should be passed as EventArgs object. This is bad enough and a poor solution for obvious reasons. The values that are passed to the function doPostBack as arguments will be sent to the server as request parameters named EVENTTARGET and EVENTARGUMENT. We'd like the same thing to happen as if we clicked on it - a new row to be added to the grid.Īs a work around, I have enabled keyboard validation, and set the OnKeyPress event in the client events to call javascript where I evaluate the key, see if it's the enter key, and then if so, examine the innerHTML to see what sent it to the JS. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to. Tabbing through the page and getting to the Add New Record buttons (the InitInsert buttons?) on the page, and then hitting enter in the default scenario causes our default button for the page to fire which is not what we want. If I posted any code, assume that code was written using the latest release version unless stated otherwise. The Czech Republic value is part of a values set which is returned from the server after clicking a button in the web page itself, you'll have to simulate a click on this button by the VBA code, wait for IE to fetch the result and then continue with your code: As this is the HTML of the button for fetching the next set of values: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |