Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
ASP.NET MVC jQuery - Press enter to open selected item
posted

I can navigate through the GridView with my keyboard but now I want to use the 'enter' key to load the selected row in a new page instead of editing the row inline.

Is this possible with Infragistics? Or must this be manually programmed?

Any help is appreciated.

Thank You


Parents
  • 30
    posted

    The next I made for my problem but it isn't working. (If I replace keydown with dblclick, does it work well...)

    <script type="text/javascript">

      $(document).ready(function () {
        $('#grid1').delegate('.ui-iggrid-activerow', 'keydown', function (e) {
          if (e.keyCode == 13) {
            var row = $('#grid1').igGridSelection('selectedRow');
            var dataview = $('#grid1').data('igGrid').dataSource.dataView();
            var cellValue = dataview[row.index]["StudentID"];
            alert(cellValue);
          }
        });
      })
    </script>

Reply Children
No Data