Hi,
I'm showing a list of notifications using an iggrid and on a row click (iggridselectionrowselectionchanged) event i'm refering to a detail view
on my local development machine this works on every browser i have(chrome, IE9, Firefox and safari) but when I deploy the application on a webserver(windows server 2008 R2, IIS7, Framework 4.0) the click event is nog working in IE while it does work in the other browsers
below is my source code, I hope you can help me
@Imports Infragistics.Web.Mvc@ModelType IQueryable(Of MvcApplication2.Notification)
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.4.min.js" type="text/javascript"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js" type="text/javascript"></script> <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.js"></script> <script src="@Url.Content("~/Scripts/infragistics.loader.js")"></script>
@( Html.Infragistics() _ .Loader() _ .ScriptPath(Url.Content("~/Scripts/")) _ .CssPath(Url.Content("~/Scripts/css/")) _ .Render() )
<script type="text/javascript">
$('#gridNotification').live('iggridselectionrowselectionchanged', function (event, args) { $.get("NotificationDetails", { index: args.row.element[0].cells[0].textContent }, function (response) { $("#gridNotification").igGrid("destroy"); $("#Overview").html(response).show(); }); }); </script>
<div id="GridInfo"> @Try @(Html.Infragistics().Grid(Model).ID("gridNotification") _ .AutoGenerateColumns(False) _ .Columns(Function(columns) columns.For(Function(c) c.NO001_ID).HeaderText("Number").Width("80") columns.For(Function(c) c.NotificationName).HeaderText("Description (short)").Width("170") columns.For(Function(c) c.NotificationDescription).HeaderText("Description (long)").Width("400") columns.For(Function(c) c.NotificationStatus).HeaderText("Status").Width("80") columns.For(Function(c) c.NotificationTime).HeaderText("Notified date and time").Width("150") columns.For(Function(c) c.ActiveBy).HeaderText("Active by").Width("100") columns.For(Function(c) c.NumberOfAssignedDocuments).HeaderText("Gekoppelde documenten").Width("150") columns.For(Function(c) c.SignalDate).HeaderText("Target date").Width("150") End Function) _ .Features(Function(features) features.Paging().PageSize(100).PrevPageLabelText("Previous").NextPageLabelText("Next") features.Sorting().Mode(SortingMode.Multiple) features.Selection().Mode(SelectionMode.Row).MultipleSelection(False) features.Filtering().Mode(FilterMode.Simple) features.Resizing() End Function) _ .DataSource(Session("Notifications")) _ .Width("100%") _ .Height("500") _ .DataBind() _ .Render())Catch ex As Exception MsgBox("Error maken van de grid", MsgBoxStyle.OkOnly, "Error")End Try </div>
PS: the datasource is now bound by the session because when i use the datasourceUrl binding my filtering and paging stops working on IE, and again this does work in the other browsers
Hello Daniel van Cann,
Thank you for the detailed information. Can you please point the exact build of NetAdvantage which you are using in your website.
Hello Nikifor,
I'm using:
Infragistics.web.MVC: 3.12.1.2059
Hello Daniel,I have created a sample based on your code. I have deployed it on the pointed server version via File System publish method. I tested the deployed sample on my dev machine - Win 7 64 bit SP 1 IE 9 and it is firing the event every time. I used (assemblies are deleted from the attachment in order to make it smaller it is easy to add them again to test) the pointed from you MVC 3 version 12.1 build 2059 to test. Please let me know under which IE versions and operating systems you have faced the missbehavior.
Hello Daniel,Please let me know if you have any further questions regarding this issue.