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

How to show waring message when check box is clicked on edit pop up widow from Kendogrid

1 Answer 332 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sampath
Top achievements
Rank 1
Sampath asked on 23 Aug 2013, 01:07 PM
I am using Kendo UI latest version in my application which is built on MVC3 framework , I have a requirement where I need to show a edit pop window which is working fine.But I have  a check box on page where clicking on check box I need to show a  warning message (I need to call a java script method)client side validation. So could you please help me out how to call a java script  function from edit pop up window of Kendo grid.

 

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 27 Aug 2013, 10:34 AM
Hi Sampath,

 
From the provided information it's not clear for us what is the exact behavior that you are trying to achieve, however If you are trying to call the Grid build-in validation on click of checkbox inside the PopUp editor of the Grid you can use the Edit event of the Grid:

e.g.:

function onEdit(e) {
    var validator = e.container.data("kendoValidator");
 
    var checkbox = e.container.find("#customCheckbox");
    checkbox.bind("change", function () {
        validator.validate();
    })
}
Kind 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
Sampath
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or