How to send or pass multiple parameters in jquery ajax in asp.net

Posted by imomins on October 7, 2012 at 4:10 AM Comments comments (0)
Introduction:

Here I will explain how to send or pass multiple parameters using JQ...
Read Full Post »

Dynamically setting the "editoption" 'value' field for a select box in jqgrid

Posted by imomins on September 21, 2011 at 11:05 AM Comments comments (0)

1) call $.get() before constructing the grid

 

2)  put its result into a variable

 

3) set that variable in value:name pair of the select box editoptions

 

in colModel.

 

This didn't work because of $.get() executing  an AJAX call asynchronously

 

so that the abovementioned variable is assigned before the AJAX call is

 

finished and gets 'undefined' value accordingly.

 

Read Full Post »

jQuery.ajax( url, [settings] )

Posted by imomins on July 11, 2011 at 11:02 AM Comments comments (0)

jQuery.ajax( url, [settings] )urlA string containing the URL to which the request is sent.

settingsA set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup(). See jQuery.ajax( settings ) below for a complete list of all settings.

version added: 1.0jQuery.ajax( settings )settingsA set of key/value pairs that configure the Ajax request. All s...

Read Full Post »

Jgrid

Posted by imomins on July 11, 2011 at 7:42 AM Comments comments (0)

jsonReader as FunctionIn certain situation you will obtain the data from a web service. In this case it is not possible to configure all the properties of the response so that the grid will work properly. As of version 3.6.4 it is possible to define the elements of the jsonReader as function. Below is a example on how this can be used:

jsonReader: {

repeatitems: false,

id: "Id",

Read Full Post »