Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function() {
  2.  
  3.     var home = {
  4.         myFunc: function() {
  5.    
  6.    
  7.         }
  8.     }
  9.    
  10.     $(function() {
  11.        
  12.         // Doing it this way means the data-* attributes on your elements will need global access to functions
  13.         // in the "home" variable
  14.         //kendo.init($("#myform"));
  15.        
  16.        
  17.         // Doing this way means everything is internal to the closure
  18.         var ds = new kendo.data.DataSource({
  19.             // ...
  20.         });
  21.        
  22.         $("#myform .grid).kendoGrid({
  23.             dataSource: ds
  24.         });
  25.     });
  26.  
  27. )();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement