jqGrid Example

		datatype: "xml",
		colNames:['Photo', 'First Name','Last Name', 'Title', 'Summary', 'Updated Time'],
			{name:'photo',index:'photo', width:120, sortable: false},
			{name:'summary',index:'summary', width:150, cellattr: function (rowId, tv, rawObject, cm, rdata) { return 'style="white-space: normal;"' }},
		autowidth: true,
		height: 'auto', 
		sortname: 'first_name',
		viewrecords: true,
		sortorder: "",//desc
		pager: $('#pager'), 
		onSelectRow: selected, 
		onSortCol: custom_sort
	}).navGrid('#pager',{edit:false,add:false,del:false, search:false});

function selected(rowid, status, e){

function custom_sort(index, iCol, sortorder){
	var arr_a = ['last_name', 'first_name', 'updated_time'];
	if($.inArray(index, arr_a) > -1){
		index = 'a.' + index;

	if(index == 'appt_date'){
		index = 'c.`start_time`';

		sortname: index, 
		sortorder: sortorder
	return 'stop';

function search(event){
	var params = {
		'from': $('#from').val(), 
		'to' : $('#to').val()

	$("#data_table").setGridParam({postData: params}).trigger("reloadGrid");



7 thoughts on “jqGrid Example

  1. Good day! This is kind of off topic but I need some
    help from an established blog. Is it hard to set up your own blog?
    I’m not very techincal but I can figure things out pretty quick. I’m thinking about setting up my own but I’m not sure where to begin. Do you have any ideas or suggestions? Many thanks

    1. Hi, do you have your own hosting service already? I think it would be very easy to build this kind of web site via a good hosting service.

  2. Excellent pieces. Keep posting such kind of information on your page.
    Im really impressed by it.
    Hello there, You’ve performed an excellent job. I will definitely digg it and for my part recommend to my friends. I am confident they’ll be benefited from this

  3. Hey! I know this is kinda off topic but I’d figured I’d ask.
    Would you be interested in trading links or maybe guest
    authoring a blog post or vice-versa? My blog discusses a lot of
    the same subjects as yours and I feel we could greatly benefit
    from each other. If you are interested feel free to shoot me an e-mail.
    I look forward to hearing from you! Terrific blog by the

  4. This brings us to any substances or undergo any surgical procedure.
    As well because its 100% all lifelike, it is one as to hanker for to flesh out the size of his penis for the most part stimulate not countenance in the least other class anticipate through pricy and unsafe operating theater. Does male enhancement Sildenafil to get certain that you are dependable as you use it.

  5. I just want to mention I am beginner to blogs and absolutely enjoyed this blog. Likely I’m going to bookmark your website . You surely come with incredible well written articles. Many thanks for sharing your web-site.

  6. First off I would like to say excellent blog!
    I had a quick question that I’d like to ask if you don’t mind.
    I was curious to find out how you center yourself and clear
    your mind before writing. I have had a tough time clearing my thoughts in
    getting my thoughts out there. I do take pleasure in writing however it just seems like the first 10 to 15 minutes are usually lost just trying
    to figure out how to begin. Any suggestions or hints?

Comments are closed.