Telerik RadGrid cant able to get the id on client side

Telerik RadGrid cant able to get the id on client side

hi,
 
i need to get the RadGrid id on client side,but i cant able to get the selected row value
 
i am using this code for get the id
but its not working,returns the null value
 
  1.  function GetSelectedNames() {
                alert('hello');
                var grid = $('#<%# RadGrid1.ClientID %>');
                alert(grid);
          var MasterTable = grid.get_masterTableView();
          var selectedRows = MasterTable.get_selectedItems();
          for (var i = 0; i < selectedRows.length; i++) {
              var row = selectedRows[i];
              var cell = MasterTable.getCellByColumnUniqueName(row, "EmpId")
              alert(cell.innerHTML);
              //here cell.innerHTML holds the value of the cell   
          }










  2. needs some one help
    Thanks in advance