Is there any event to capture the row double click event? And i need how to read an item in the selected row and pass it as a query string to some other page. I need sample in ASP.NET MVC Razor (cshtml). It will be great if some one can assist me on the same.
The code below works fine for the first time when we open the popup
<script type = "text/javascript" > $(document).ready(function () { $('#igGrid1').delegate('.ui-iggrid-activerow', 'dblclick', function (e) { var row = $('#igGrid1').igGridSelection('selectedRow'); var dataview = $('#igGrid1').data('igGrid').dataSource.dataView(); var cellValue = dataview[row.index]["UserId"]; var address = "@Url.Action("ModifyUser")" + "?UserId=" + cellValue; window.location = address; var $dialog = $("#modifyUser").load(address).dialog({ autoOpen:false, modal:true, }); $dialog.dialog('open'); }); })</script><div id="modifyUser"></div>Here i am using div tag to show the dialog. It works fine for the first time only. Say for example if i have 100 rows in a grid when i double click 1st row and close it and if i double click on the 2nd row i am getting the error in the below line var row = $('#igGrid1').igGridSelection('selectedRow');and the error message is as belowMicrosoft JScript runtime error: Object doesn't support this property or methodIt will be great if you can let me know how can i fix the issue.Regards,Suresh A
Hello Suresh,
I have answered your question here
http://community.infragistics.com/forums/p/64713/327888.aspx
Any updates on this?
Regards,
Suresh A
Hi Tsvetelina Georgieva,
Thanks for your response. As mentioned earlier when i use window.open its getting some time to load the page where as if i give window.address its opening fine.
My issue is
<script type = "text/javascript" > $(document).ready(function () { $('#igGrid1').delegate('.ui-iggrid-activerow', 'dblclick', function (e) { var row = $('#igGrid1').igGridSelection('selectedRow'); var dataview = $('#igGrid1').data('igGrid').dataSource.dataView(); var cellValue = dataview[row.index]["UserId"]; var address = "@Url.Action("ModifyUser")" + "?UserId=" + cellValue; window.location = address; }); }) </script>
The above script works perfectly fine when i double click on the grid which is in the users.cshtml page.
I have 2 pages
1. Users.cshtml - Displays the user details int he grid. When i double click i need to
open a modal popup window where i will pass user id as a query string to modifyusers.cshtml page
2. ModifyUsers.cshtml - User is allowed to modify certain details on the page. On click of save button
it is updating the details to the DB. After it gets updated the popup needs to be closed and
the grid in users.cshtml must be refreshed.
How to acheive the same?
Thank you for posting in our forums.
I created a support ticket on your behalf
CAS-82287-FDBWKR
You can upload your sample code to the case
as we are not able to reproduce the issue in our environment
using the appoach which Martin provided you.
Please zip all the files before attaching them to the case.
Hope hearing from you.