Created
September 30, 2013 20:40
-
-
Save Pierry/6769939 to your computer and use it in GitHub Desktop.
Criando grid básica com a Kendo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Add Grid Markup --> | |
<div id="grid"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#grid { | |
text-align: left; | |
} | |
/* Add Grid Styles Here */ | |
.k-widget { | |
background-color: #FFFFFF; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add Grid data and initialization code | |
var movies = [ | |
{ Title: "Star Wars: A new Hope", Year: 1977 }, | |
{ Title: "Star Wars: The Empire Strikes Back", Year: 1980 }, | |
{ Title: "Star Wars: Return of the Jedi", Year: 1983 }, | |
]; | |
$("#grid").kendoGrid({ | |
dataSource: new kendo.data.DataSource({ | |
data: movies | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment