Html Grid

Set the editmode property of the jqxGrid. Author: http://jqwidgets.com

by barkha

HTML

<script src="http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/generatedata.js"></script>
<script src="http://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
Double-click on a cell to begin an edit operation
<div>
				<div id="jqxgrid"></div>
</div>

JavaScript

var data = [{"rateCardId":47,"rateCard":10.0,"createdBy":"lputhran","createdDate":"15/01/2015 19:17:32:997","year":2015,"hubId":186,"hubName":"Asia"},{"rateCardId":44,"rateCard":5444444664,"createdBy":"lputhran","createdDate":"15/01/2015 19:17:32:997","year":2015,"hubId":182,"hubName":"Bermuda"},{"rateCardId":43,"rateCard":455.0,"createdBy":"lputhran","createdDate":"15/01/2015 19:17:33:000","year":2015,"hubId":183,"hubName":"Canada"},{"rateCardId":46,"rateCard":4.0,"createdBy":"lputhran","createdDate":"15/01/2015 19:17:33:000","year":2015,"hubId":185,"hubName":"Europe Re"},{"rateCardId":42,"rateCard":12234444,"createdBy":"lputhran","createdDate":"15/01/2015 19:17:33:003","year":2015,"hubId":184,"hubName":"Group"},{"rateCardId":45,"rateCard":44.0,"createdBy":"lputhran","createdDate":"15/01/2015 19:17:32:997","year":2015,"hubId":180,"hubName":"UK"},{"rateCardId":48,"rateCard":0.0,"createdBy":"lputhran","createdDate":"15/01/2015 19:17:33:330","year":2015,"hubId":181,"hubName":"US"}];
 var source = {
     localdata: data,
    datafields : [

			{
				name : 'rateCardId',
				type : 'number'
			}, {
				name : 'hubId',
				map : 'hubId'
			}, {
				name : 'hubName',
				map : 'hubName'
			}, {
				name : 'rateCard',
				type : 'double'
			}, {
				name : 'year',
				type : 'number'
			},

			{
				name : 'createdBy',
				type : 'string'
			}, {
				name : 'createdDate',
				type : 'date'
			} ],
     datatype: "json"
 };

 var adapter = new $.jqx.dataAdapter(source);
 $("#jqxgrid").jqxGrid({
     width: 500,
     theme: 'energyblue',
     editable: true,
     editmode: 'dblclick',
     selectionmode: 'singlecell',
     source: adapter,
     sortable: true,
     columns : [ {
				text : "Hub",
				datafield : "hubName",
				editable : false, 
				width : 500,
			}, {
				text : "Rate($)",
				datafield : "rateCard",
				cellsformat : "d2",
				width : 450,
				/*createeditor : function(row, column, editor) {
					cost =...