I am trying to pass parameter(s) to a web service call to flexigrid.
I have setup the FlexiGrid to work just fine except when i try to pass one parameter to my web service call, but am seeing 500 Internal Server Error when trying to load the grid with that one parameter.
Ideally, when the user clicks submit it then calls a javascript function to invoke the ajax call to flexigrid, but that I where I am seeing the 500 Internal Server Error in firebug.
It is saying the lastName
parameter was missing from the web service call. This parameter is obtained from the last name search textbox.
Any help is appreciated since I am a newbie to FlexiGrid.
Here is my ajax call:
$("#userflexiGrid").flexigrid({
url: 'FlexiGridService.asmx/GetDirectory',
params: [{ name: 'lastName', value: 'doe'}],
dataType: 'xml',
colModel: [
{ display: 'Id', name: 'Employeeno', width: 30, sortable: true, align: 'left' },
{ display: 'Name', name: 'Employee', width: 130, sortable: true, align: 'left' },
{ display: 'Bureau', name: 'Bureau', width: 180, sortable: true, align: 'left' }
],
searchitems: [
{ display: 'Name', name: 'Employee' },
{ display: 'Bureau', name: 'Bureau' },
],
sortname: "Name",
sortorder: "asc",
usepager: true,
title: 'Flexi Users',
useRp: true,
rp: 20,
showTableToggleBtn: false,
pagestat: 'Displaying: {from} to {to} of {total} matches.',
//width: 700,
singleSelect: true,
onSubmit: addFormData,
height: 260
});