Skip to content

Replies

0
Gowtham R
Gowtham R answered on Jan 16, 2013 8:04 AM

Hi Lyubo,

Thanks for your answer.

What i did is binded the grid to the double click event. Please see below.

Actually i want a popup which shows some more information about the row that is double clicked.

I have a javascript like below and this loads the popup from the div i.e <div id="detailsView"></div>. All i want to do is to load a popup from a seperate page. ie. from a seperate .CSHTML page. How can i achieve that? Also I want to pass the variable "cellValue" to that cshtml page. Please help me on how to acheive this.

<script type = "text/javascript" >

$(document).ready(function () {       

$('#Grid1').delegate('.ui-iggrid-activerow', 'dblclick', function (e) {                     

var row =  $('#Grid1').igGridSelection('selectedRow');

var dataview = $('#Grid1').data('igGrid').dataSource.dataView();  

var cellValue = dataview[row.index]["ConditionNo"];  

var tipNo = dataview[row.index]["TIPNumber"];

var $dialog = $("#detailsView").dialog({                           autoOpen: false, width: 700, resizable: false, height: 600, modal: true                       });                      

$dialog.dialog('open');                  });    }) </script>