or
data =[{"name": "test1", "shape":"pinTarget", "latlng":[30.268107, -97.744821]}, {"name": "test2","shape":"pin", "latlng":[40.268107, -97.744821]}];$("#map").kendoMap({ center : [ 30.268107, -97.744821 ], zoom : 3, layers : [ { type : "tile", urlTemplate : "http://#= subdomain #.tile2.opencyclemap.org/transport/#= zoom #/#= x #/#= y #.png", subdomains : [ "a", "b", "c" ], attribution : "© <a href='http://osm.org/copyright'>OpenStreetMap contributors</a>." + "Tiles courtesy of <a href='http://www.opencyclemap.org/'>Andy Allan</a>" } ,{ type: "marker", dataSource: data, locationField: "latlng", titleField: "name"}],});data =[{"name": "test1", "shape":"pinTarget", "latlng":[30.268107, -97.744821]}, {"name": "test2","shape":"mystyle", "latlng":[40.268107, -97.744821]}];$("#map").kendoMap({ center : [ 30.268107, -97.744821 ], zoom : 3, layers : [ { type : "tile", urlTemplate : "http://#= subdomain #.tile2.opencyclemap.org/transport/#= zoom #/#= x #/#= y #.png", subdomains : [ "a", "b", "c" ], attribution : "© <a href='http://osm.org/copyright'>OpenStreetMap contributors</a>." + "Tiles courtesy of <a href='http://www.opencyclemap.org/'>Andy Allan</a>" } ,{ type: "marker", dataSource: data, locationField: "latlng", titleField: "name"}],});.k-marker-my-style { border: solid 5px #00f; }var errors = [];var view1Validator = $('#view1').kendoValidator().data("kendoValidator");if (!view1Validator.validate()) { errors = view1Validator.errors();}// unless the user has navigated to view2, it has not been loaded into the DOM, so view2Validator is always nullvar view2Validator = $('#view2').kendoValidator().data("kendoValidator");if (!view2Validator.validate()) { errors = errors.concat(view2Validator.errors());} // display the errors