jQWidgets Forums
Forum Replies Created
-
Author
-
October 23, 2013 at 10:08 am in reply to: jqxgrid get cell value in variable jqxgrid get cell value in variable #31249
OOh it`s my bad thank peter now it working perfectly
{ text: ‘View’, datafield: ‘Edit’, columntype: ‘button’, cellsrenderer: function () {
return “View”;
}, buttonclick: function PassValue(row)
{
var Value = $(‘#jqxgrid’).jqxGrid(‘getcellvalue’, row, ‘ID’);
window.open(“stockdetails.aspx?ID=” + Value);
}
}October 23, 2013 at 8:58 am in reply to: jqxgrid get cell value in variable jqxgrid get cell value in variable #31245hi peter thank for your advice but i am getting null value by using getcellvalue plz help me regarding this it`s urgent my code is below
$(document).ready(function () {
//Getting the source data with ajax GET request
source = {
datatype: “xml”,
datafields: [
{ name: ‘ID’ },
{ name: ‘CHASSIS_NO’ },{ name: ‘model_description’ },
{ name: ‘MODEL’ },
{ name: ‘FILE_REF’ }
],
async: false,
record: ‘Table’,
url: ‘stocklist.aspx/GetCustomers’,
};
var dataAdapter = new $.jqx.dataAdapter(source,
{ contentType: ‘application/json; charset=utf-8’}
);$(“#jqxgrid”).jqxGrid({
width: ‘99%’,
source: dataAdapter,
theme: ‘metro’,
editable: false,
pageable: true,
autoheight: true,
filterable: false,
showfilterrow: false,columns: [
{ text: ‘ID’, dataField: ‘ID’ },
{ text: ‘CHASSIS NO’, dataField: ‘CHASSIS_NO’ },
{ text: ‘MODEL’, dataField: ‘model_description’},
{ text: ‘YEARS’, dataField: ‘MODEL’ },
{ text: ‘Stk No’, dataField: ‘FILE_REF’ },
{ text: ‘View’, datafield: ‘Edit’, columntype: ‘button’, cellsrenderer: function () {
return “View”;
}, buttonclick: function PassValue()
{
var Value = $(‘#jqxGrid’).jqxGrid(‘getcellvalue’, 0, ‘ID’);
alert(“QueryString ID is:” + Value);
//window.open(“stockdetails.aspx?ID=” + paramVal);
}
}
]
});
}); -
AuthorPosts