This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<link href="http://cdn-na.infragistics.com/igniteui/2017.2/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" | |
/> | |
<link href="http://cdn-na.infragistics.com/igniteui/2017.2/latest/css/structure/infragistics.css" rel="stylesheet" /> | |
<script src="http://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.8.3.js"></script> | |
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script> |
This file contains hidden or 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
{ | |
"igGrid init with columns defined": { | |
"prefix": "grid", | |
"body": [ | |
"<!DOCTYPE html>", | |
"<html>", | |
"<head>", | |
" <title></title>", | |
" <link href=\"http://cdn-na.infragistics.com/igniteui/2016.2/latest/css/themes/infragistics/infragistics.theme.css\" rel=\"stylesheet\" />", | |
" <link href=\"http://cdn-na.infragistics.com/igniteui/2016.2/latest/css/structure/infragistics.css\" rel=\"stylesheet\" />", |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<!-- Ignite UI Required Combined CSS Files --> | |
<link href="http://cdn-na.infragistics.com/igniteui/2016.2/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" /> | |
<link href="http://cdn-na.infragistics.com/igniteui/2016.2/latest/css/structure/infragistics.css" rel="stylesheet" /> | |
<script src="http://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.8.3.js"></script> |
This file contains hidden or 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
Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load | |
If Session("data") Is Nothing Then | |
Session("data") = getData() | |
End If | |
Me.WebDataGrid1.DataSource = Session("data") | |
End Sub | |
Private Function getData() As DataTable |
This file contains hidden or 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
<igDP:XamDataGrid DataSource="{Binding Tasks}"> | |
<igDP:XamDataGrid.FieldLayoutSettings> | |
<igDP:FieldLayoutSettings AutoGenerateFields="False" /> | |
</igDP:XamDataGrid.FieldLayoutSettings> | |
<igDP:XamDataGrid.FieldLayouts> | |
<igDP:FieldLayout> | |
<igDP:FieldLayout.Fields> | |
<igDP:Field Name="ID" Label="ID"/> | |
<igDP:TemplateField Name="Title" Label="Title"> | |
<igDP:TemplateField.Settings> |
This file contains hidden or 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
<igDP:XamDataGrid DataSource="{Binding Tasks}"> | |
<igDP:XamDataGrid.FieldLayoutSettings> | |
<igDP:FieldLayoutSettings | |
AutoGenerateFields="False" | |
AutoArrangeCells="Never" /> | |
</igDP:XamDataGrid.FieldLayoutSettings> | |
<igDP:XamDataGrid.FieldLayouts> | |
<igDP:FieldLayout> | |
<igDP:FieldLayout.Fields> | |
<igDP:Field Name="ID" Label="ID" Row="0" Column="0"/> |
This file contains hidden or 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
protected void Page_Load(object sender, EventArgs e) | |
{ | |
if (Session["data"] == null) | |
{ | |
Session["data"] = getData(); | |
} | |
this.WebDataGrid1.DataSource = Session["data"]; | |
} |
This file contains hidden or 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
var data = [ | |
{ "ID": 1, "Name": "John Smith", "Age": 45 }, | |
{ "ID": 2, "Name": "Mary Johnson", "Age": 32 }, | |
{ "ID": 3, "Name": "Bob Ferguson", "Age": 27 } | |
]; | |
$("#grid").igGrid({ | |
autoGenerateColumns: false, | |
columns: [ | |
{ headerText: "ID", key: "ID", dataType: "number" }, |