Captureing custom key presses W/O use of JS

3 posts, 1 answers
  1. Casper
    Casper avatar
    24 posts
    Member since:
    Mar 2015

    Posted 01 Apr 2015 Link to this post

    I am in the situation that I have some data in a container class in my codebehind. I need to be able to access this data when i capture a keypress whic means that the approach the article on keypresses can't be used since i have to capture and process the keypress in JS. Is there a way to capture this in the codebehind?

    The article I am talking about is 

    Casper Andersen
  2. Answer
    Marin Bratanov
    Marin Bratanov avatar
    3908 posts

    Posted 02 Apr 2015 Link to this post

    Hi Casper,

    Keyboard interaction happens only in the browser, i.e., on the client. This context is absolutely separate from the server code and in order to transmit the user interactions to the server, you would need to initiate some request and pass the data.

    One of the simplest ways is to use RadAjax and the ajaxRequest() method we offer: The following blog post can show you other ideas:


    Marin Bratanov

    See What's Next in App Development. Register for TelerikNEXT.

  3. Casper
    Casper avatar
    24 posts
    Member since:
    Mar 2015

    Posted 08 Apr 2015 in reply to Marin Bratanov Link to this post

    Thanks a lot :) I'll look into it



Back to Top