Quantcast
Viewing all articles
Browse latest Browse all 7205

Using keyboard for ASPxGridView pages navigation

This example demonstrates how to process a document's keydown
event and how to activate some ASPxGridView's page according to
the key that has been pressed.

The following keys are processed in this example:
 
 * Ctrl + Left Arrow (activate previous page)
 * Ctrl + Right Arrow (activate next page)
 * Ctrl + Home (activate first page)
 * Ctrl + End (activate last page)

The AttachEventToElement method of the ASPxClientUtils class
is used to subscribe to a document's keydown event. The PrevPage,
NextPage, and GotoPage methods of the ASPxClientGridView class
are used to change the active page of ASPxGridView.

Note: Starting with v2010 vol 1, this functionality can be obtained by setting the grid's KeyboardSupport property to true:

Keyboard Navigation
Common Changes Across All ASP.NET Controls -> Keyboard Navigation Support in Grid Controls

By default, the grid's KeyboardSupport property is set to false. Refer to the Accessibility - Keyboard Support Online Demo to see this feature in action.

See Also:
Using keyboard for ASPxDataView pages navigation

Question Comments

Added By: MasterRanger at: 6/10/2014 5:06:55 AM    

There is no ASPxWebControl on the Default.aspx page.  Therefore the Default.aspx.cs will not work

Added By: MasterRanger at: 6/10/2014 5:45:47 AM    

AddKeyboardNavigationTo doesnt work either.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>