jQWidgets Forums
Forum Replies Created
-
Author
-
Thank you Hristo For your replay
But i have a error
Uncaught Invalid property: showTimeButton
How I can Solve This Error
Now iam using jqwidgets version v3.5.0December 21, 2015 at 8:36 am in reply to: Display listbox in 2 column Display listbox in 2 column #79580i need to use listbox like this
October 6, 2014 at 6:53 am in reply to: JqxGrid Paging last row Shows Null records JqxGrid Paging last row Shows Null records #60701Hi this is my sample ajax data
{ "TotalRows1": 31, "Rows1": [ { "Address": "abc", "Age": 32, "Fullname": "Seena" }, { "Address": "abc", "Age": 32, "Fullname": "Mohan" }, { "Address": "abc", "Age": 32, "Fullname": "RAVI" }, { "Address": "abc", "Age": 32, "Fullname": "rahul" }, { "Address": "abc", "Age": 32, "Fullname": "rahul" }, { "Address": "abc", "Age": 32, "Fullname": "rahul" }, { "Address": "abc", "Age": 32, "Fullname": "ssf" }, { "Address": "abc", "Age": 32, "Fullname": "ss" }, { "Address": "abc", "Age": 32, "Fullname": "abc" }, { "Address": "abc", "Age": 32, "Fullname": "abc" } ], "ItemCount": 10 }
October 6, 2014 at 4:58 am in reply to: JqxGrid Paging last row Shows Null records JqxGrid Paging last row Shows Null records #60688This is my complete Code
var searchpgno = 1;
var ppagesize = 10;function GetSearch()
{
var url1 = ‘/customer/Search/?searchpgno=’ + searchpgno +’&pagesize=’+ppagesize;
var jsonsearch;
$.ajax({
type: ‘POST’,
url: url1,
async: false,
success: function (data) {
if (data == ”) {}
else {
jsonsearch = data;
}
},
error: function (response) {
alert(response.error)
}
});var source =
{
localdata: jsonsearch,
datatype: “json”,
datafields: [
{name:’Fullname’},
{name:’Age’},
{name:’Address’}
],
id:’id’,
root:’Rows1′,
type: ‘POST’,
beforeprocessing: function (data) {
var ParsData = JSON.parse(data);
source.totalrecords = ParsData.TotalRows1;
},
};
var dataAdapter = new $.jqx.dataAdapter(source);
$(“#jqxCustomerSearch”).jqxGrid(
{
source: dataAdapter,
editable: false,
autoheight: false,
sortable: true,
height: 455,
width: 500,
rowsheight: 55,
theme: theme,
columnsresize: true,
showemptyrow: true,
selectionmode: ‘singlerow’,
pageable: true,
virtualmode: true,
pagermode: ‘default’,
rendergridrows: function (obj) {
return obj.data;
},
pagerheight: 45,
columns: [
{ text:’Full Name’, datafield: ‘Fullname’, width: ‘6%’},
{ text: ‘Age’, datafield: ‘Age’, width: ‘12%’ },
{ text: ‘Address’, datafield: ‘Address’, width: ‘18%’ },
{ text: AHouse, datafield: ‘cHouse’, width: ‘13%’ },]
});
// End – Setup Data Grid}
$(‘#jqxCustomerSearch’).on(‘pagechanged’, function (event) {
var args = event.args;
var pagenum = args.pagenum;
var pagesize = args.pagesize;
searchpgno = pagenum+1 ;
ppagesize = pagesize;
GetSearch();
});json Data format:
=================Object {TotalRows1: 31, Rows1: Array[10], ItemCount: 10 }
May 16, 2014 at 9:45 am in reply to: jqxDropDownList insert placeHolder value in db if no value select jqxDropDownList insert placeHolder value in db if no value select #54552thanks Peter Stoev … i got it
-
AuthorPosts