Results 1 to 3 of 3

Thread: [ask] datepicker in jqGrid

  1. #1
    Join Date
    Nov 2008
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default [ask] datepicker in jqGrid

    hello guru(s) and advance... please help me i have some problem with my datepicker in rowedit Jquery...

    for information i use Jquery UI date picker V.3.0

    my problem is :
    i cant showing datepicker in form rowedit JqGrid...

    this my code..
    Code:
    jQuery("#editgrid").jqGrid({        
       	url:'selectkontrakkerja.php?q=1&rows=10',
    	datatype: "xml",
       	colNames:['ID Kontrak Kerja','No Proposal','Tgl Kontrak','Perusahaan','Project','Nilai Penawaran','Nilai Kontrak', 'Pembayaran','Termin'],
       	colModel:[
       		{name:'idp',index:'id_kontrakkerja', width:15,align:"center",search:false,editable:true,editoptions:{readonly:true,size:5,align:"center"}},
       		{name:'no_prop', index:'id_proposal', width:60, align:"left", editable:true, editoptions:{readonly:true,size:5}},
       		{name:'tgl', index:'tgl_kontrak', width:60, align:"left",editable:true, editopitons:{size:30}},
       		{name:'nm_per',index:'nm_client', width:90,editable:true,search:true,editoptions:{readonly:true,size:40}},
       		{name:'proj',index:'nm_project', width:60, align:"left",editable:true,editoptions:{readonly:true,size:40}},
       		{name:'nl_pen',index:'nilai', width:60, align:"left",editable:true,editoptions:{readonly:true,size:40}},
    		{name:'nl_kon',index:'nilai_kontrak', width:60, align:"left",editable:true,editoptions:{size:40}},
       		{name:'pembayaran',index:'pembayaran', width:60, align:"left",editable:true,edittype:"select",editoptions:{value:"1:Cash;2:Termin"}},
       		{name:'pembayaran',index:'pembayaran', width:60, align:"left",editable:true,edittype:"select",editoptions:{value:"1:30;2:60;3:90"}}
       	],
       	rowNum:10,
       	rowList:[10,20,30],
       	imgpath: 'themes/basic/images',
       	pager: jQuery('#pagered'),
       	sortname: 'id_kontrakkerja',
        viewrecords: true,
        sortorder: "desc",
    	width: 750, // new width 
    	height: 220,
        caption:"Kontrak Kerja",
        editurl:'editkontrakkerja.php'
    }).navGrid('#pagered',{edit:true,add:false,del:false});
    
    $("#bedata").click(function(){
    	var gr = jQuery("#editgrid").getGridParam('selrow');
    	if( gr != null ) jQuery("#editgrid").editGridRow(gr,{height:280,reloadAfterSubmit:true,
    													 
    	 onInitializeForm: $("#tgl_kontrak").datepicker({dateFormat:"dd-mm-yy",showOn:'focus'})
    });
    		else alert("Please Select Row");
    });
    what wrong with my code advance... please help me thx...
    Last edited by jscheuer1; 11-29-2008 at 04:18 PM. Reason: proper code formatting

  2. #2
    Join Date
    Nov 2008
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default up again

    up again

  3. #3
    Join Date
    Nov 2008
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default up again

    sorry advance can u help me....

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •