title: How do I get my selected GridView rows into a Javascript variable?
body: <p>I use ASP.NET C# MVC3 with razor templates and I want to know the following:</p>
  
  <p>I have a DevExpress <code>GridView</code> in which I can select rows.<br>
  When selected, I want to pass them into a Javascript variable. How do I do this?<br>
  And what if I have selected multiple rows at the same time, can I get them in an array or something?</p>
  
  <p>Edit:
  Thank you for the comment, I now have the following 'JQuery' function:</p>
  
  <pre><code>$(function () { // Verwijder functie
      $('#select').click(function () {
          var Delete = confirm("Weet u zeker dat u de geselecteerde records wilt verwijderen?");
          if (Delete) {
              //Verwijder Funtie
              var test = ;
              alert(test);
          } else {
              //Niks
          }
      });
  });
  </code></pre>
  
  <p>I need to get the Id of the selected rows into the variable 'test', I tried it with GetSelectedFieldValuesCallback and GetSelectedFieldValues. But this is not working as I'm expecting.
  If someone can provide some example I would really appreciate that. </p>