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

grid edit open popup

2 Answers 441 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ro
Top achievements
Rank 1
Ro asked on 17 Sep 2015, 12:32 PM

Hi,

I'm using a Kendu grid with the event "Edit-Popup not inline" and in the "OnEdit" function i want to open  a different window- not the defult popup window.

I'm trying to use e.preventDefult() to hide the defult popup- but it doesn't work. i get the "undefined" exception.

 

What can i do to make it work properly? 

 

Thanks in advance,

Sari

2 Answers, 1 is accepted

Sort by
0
Ro
Top achievements
Rank 1
answered on 17 Sep 2015, 12:36 PM

My code:

function onEdit(e) {
        debugger
        e.preventDefault();

        e.model;    
    }

$("#grd_ips_idnt_127").kendoGrid({
     //   change: onChange,
        autobind: false,
        height: 550,
        reorderable: true,
        dataSource: dataSource,
        sortable: true,
        edit:onEdit,
        editable:
            {
            mode: "popup",
        },
        //    confirmation: false,
        //    window: {
        //        animation: false,
        //      //  open: openCustomWindow,
        //    }
        //},
        //dataBound: DisplayNoResultsFound,
        selectable: "row",

0
Petyo
Telerik team
answered on 21 Sep 2015, 08:51 AM

Hello Ro,

the grid edit event is not preventable. I may suggest that you use this approach to customize the contents of the editor popup.

Regards,
Petyo
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
Ro
Top achievements
Rank 1
Answers by
Ro
Top achievements
Rank 1
Petyo
Telerik team
Share this question
or