This is a migrated thread and some comments may be shown as answers.

RequestEnd e.type is undefined

1 Answer 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 20 Nov 2013, 07:39 PM
I am trying to get my grid to refresh after an update using the pop-up editor. I followed the suggestion on a related post to use RequestEnd and the following handler.

function onGridDataSourceRequestEnd(e){
    if(e.type=="update")
    {
         this.read();
    }
}

Everything is perfect when debugging in Visual Studio but it stops working after I publish to our production server. When I debug this using firebug I see the type property is missing from e all together (only when coming from the pop-up editor, in other cases like when the page loads it looks fine). Please advise.

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 22 Nov 2013, 12:38 PM
Hi Adam,

Basically when the grid dataSource is set to use client paging / filtering / sorting the type property will be undefined for all requests after the first, however the update action always returns valid type. Could you please provide ruanble project where the issue is reproduced? This would help us pinpoint the exact reason for this behavior.

Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Adam
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or