I have a Kendo grid to this div
Then I have a custom popup template like below...
In my script I have grid code and custom validation code
My question is how I bind the validation with my update popup.
Here is ways that I try to do that : I add grid id to validation object....
Not working ...
Then I add a inside div id to validation object..
Not working.....
So I am asking can we add
object to custom grid update popup ??
<
div
id
=
"grid"
></
div
>
Then I have a custom popup template like below...
<
script
type
=
"text/x-kendo-template"
id
=
"myUpdateTemplate"
><
div
id
=
"tempCode"
>// here my template code</
div
></
script
>
In my script I have grid code and custom validation code
<
script
> $(document).ready(function () {
var grid = $("#grid").kendoGrid({// my grid code in here});
var val = $("#grid").kendoValidator({
// my custom validation rules and messages are here
}).data("kendoValidator");
}); <
script
>
My question is how I bind the validation with my update popup.
Here is ways that I try to do that : I add grid id to validation object....
var val = $("#grid").kendoValidator({
// my custom validation rules and messages are here
}).data("kendoValidator");
Not working .....
Then I add template id to grid object ..
var val = $("#myUpdateTemplate").kendoValidator({
// my custom validation rules and messages are here
}).data("kendoValidator");
Not working ...
Then I add a inside div id to validation object..
var val = $("#tempCode").kendoValidator({
// my custom validation rules and messages are here
}).data("kendoValidator");
Not working.....
So I am asking can we add
kendoValidator()