Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
MVC3 application refresh partial view grid disapears
posted

In my application I use a igTree to select a record, according to the selected record i'm filling the grid.

the first time this works correctly the second time the grid disapears and I get this error in my console:

  1. Uncaught TypeError: Cannot read property 'id' of undefined :4611/Scripts/modules/infragistics.ui.grid.filtering.js:19
    1. b.Widget._createWidgetjquery-ui.min.js:21
    2. c.event.add.h.handle.ojquery-1.4.4.min.js:56
    3. c.event.triggerjquery-1.4.4.min.js:61
    4. c.fn.extend.triggerHandlerjquery-1.4.4.min.js:74
    5. c.fn.extend.emptyjquery-1.4.4.min.js:115
    6. c.fn.extend.htmljquery-1.4.4.min.js:117
    7. (anonymous function):4611/:50
    8. c.extend.handleSuccessjquery-1.4.4.min.js:142
    9. c.extend.ajax.w.onreadystatechangejquery-1.4.4.min.js:141


the 3th time it works again and the 4th the same thing happens and so on..

anybody got an idea of what i'm doing wrong?

note: I only refrash the partial using this code:

$('#igContactPersonGrid').live('iggridselectionrowselectionchanged', function (event, args) {
$.get("Detail/selectContact", { bla: args.row.element[0].cells[0].textContent }, function (response) {
$("#DivDetailView").html(response).show();
});
});

Function selectContact(id As String) As PartialViewResult
If String.IsNullOrEmpty(id) Then

Session("ContactPersonModel") = New ContactPersonModel()

End If

Return PartialView("DetailView")
End Function