Comments (1)
Keep in mind that the example below work perfect for the new dev version 1.1.0. You could have some issues with 1.0.0 if you use the example below
<html>
<head>
<meta charset="utf-8" />
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<link href="http://code.gijgo.com/1.1.0/css/gijgo.css" rel="stylesheet" type="text/css">
<script src="http://code.gijgo.com/1.1.0/js/gijgo.js"></script>
</head>
<body>
<table id="grid"></table>
<script>
var grid = $('#grid').grid({
dataSource: '/Grid/GetPlayers',
primaryKey: 'ID',
selectionMethod: 'checkbox',
columns: [
{ field: 'Name', title: 'Player' },
{ field: 'PlaceOfBirth', title: 'Place of Birth' }
]
});
grid.on('rowDataBound', function (e, $row, id, record) {
$row.find('td:eq(0) input[type="checkbox"]').prop('disabled', record.ID % 2);
});
</script>
</body>
</html>
from gijgo.
Related Issues (20)
- Bootstrap5 HOT 2
- Question: Usage without JQuery HOT 1
- Grid Dropdown in Edit Mode HOT 1
- Give the input placeholder option & Also make a default date value for the input. HOT 1
- Question: Do you have something like getNodeByPath on the tree? HOT 1
- You can use (-) to get indefinite checkboxes
- Tree Issues: What am I missing? HOT 6
- getCheckedNodes is not a function if tree is in a modal HOT 1
- Question: Changing an array dataSource at runtime & refresh the tree.
- Add enable and disable methods for datepicker and timepicker
- Add creatable option for dropdown like react-select
- Grid updateRow() fails when called for rows after an expanded row
- bootstrap4,dislog.destroy()调用之后会把dom元素<button class="btn btn-secondary" data-role="close" >Cancel</button>删除。
- tree.on('checkboxChange'
- selection expand throught all children
- Pick month only
- Want a "selectionType: 'none' " to be able to only use checkboxes.
- Question: How can I clear all the nodes in the treeview at once?
- Question: Is it possible to set the dataSource from an array from an existing tree instance?
- tree.parents example not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gijgo.