Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
datepicker & add row/ edit row forms?
01/09/2008
04:06
Avatar
drlinux
Member
Members
Forum Posts: 25
Member Since:
26/08/2008
sp_UserOfflineSmall Offline

Is there any way to integrate add row and edit row forms with datepicker?

Thanks,

Ibrahim.

01/09/2008
11:13
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

You can use the serch button here in the forum - word datepicker.

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

02/09/2008
03:14
Avatar
drlinux
Member
Members
Forum Posts: 25
Member Since:
26/08/2008
sp_UserOfflineSmall Offline

I used that and found that, but it doesn't work(I can't see the datepicker window) :

jQuery(document).ready(function(){
    jQuery(”#editgrid”).jqGrid({         
       url:'get.php',
    datatype: “json”,
       colNames:['Id','Havuz','Tarih', 'Giren', 'Çıkan','Ortalama','Açıklama'],
       colModel:[
           {name:'id',index:'id', width:40, align:"center"},
           {name:'havuz',index:'havuz', width:90, align:"center", editable:true, editoptions:{size:5}},
           {name:'tarih',index:'tarih', width:80, editable:true, editoptions:{size:10}, sorttype:"date"},
           {name:'giren',index:'giren', width:90, editable:true, editoptions:{size:5}},
           {name:'cikan',index:'cikan', width:60, align:"right", editable:true, editoptions:{size:5}},
           {name:'ortalama',index:'ortalama', width:60, align:"right"},        
           {name:'aciklama',index:'aciklama', width:200, align:"right", editable:true, edittype:"textarea", editoptions:{rows:"2",cols:"20"}}
        ],
    height:260,
    width:600,
       rowNum:10,
       rowList:[10,20,30],
       imgpath: 'themes/basic/images',
       pager: jQuery('#pagered'),
       sortname: 'id',
    viewrecords: true,
    sortorder: “desc”,
    caption:”Yeni Kayıt Ekleme Formu”,
    editurl:”ekle.php”
   
});
$(”#bedata”).click(function(){
jQuery(”#editgrid”).editGridRow(”new”, {addCaption: “Kayıt Ekle”, bSubmit: “Kaydet”, bCancel: “Vazgeç”, processData: “Kaydediyor…”});
    onInitializeForm: function(formid) {
$(”#tarih”,formid).datepicker({dateFormat:”yy-mm-dd”,showOn:'focus'});
}
});
 
});

02/09/2008
04:28
Avatar
drlinux
Member
Members
Forum Posts: 25
Member Since:
26/08/2008
sp_UserOfflineSmall Offline

I'm sorry, the right code below 🙂 I found my problem.

$(”#bedata”).click(function(){
jQuery(”#editgrid”).editGridRow(”new”, {addCaption: “Kayıt Ekle”, bSubmit: “Kaydet”, bCancel: “Vazgeç”, processData: “Kaydediyor…”, onInitializeForm: function(formid) {
 
$("#tarih",formid).datepicker({dateFormat:"yy-mm-dd"});

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
40 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information