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
edit mode et add new row
08/09/2008
06:16
Avatar
stephane
Member
Members
Forum Posts: 3
Member Since:
08/09/2008
sp_UserOfflineSmall Offline

hello,

as i understand :    

editurl: "xxx.php" and field ... editable:true ....

is the same url for editing and adding row...

but in fact, i do not tolerate that we can change values of selectionned fields so i would like to have different models to edit and adding ...

is-it possible ?

stephane

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

Hello,

I think we can't change that fields but you can chage the url for add / edit /search blabala looks like that (Please see the below & read the great manual):

).navGrid('#prowed3', {}, //options 
{top : 450, left: 500, editCaption: “Kayıt Düzenle”, bSubmit: “Kaydet”, bCancel: “Çıkış”, processData: “Kaydediyor…”, url:”balik_hareket.php?q=3″, closeAfterEdit : true, onInitializeForm: function(formid) {
 
$(”#tarih”,formid).datepicker({dateFormat:”dd-mm-yy”});
 
}}, // edit options 
{top : 450, left: 500, addCaption: “Kayıt Ekle”, bSubmit: “Kaydet”, bCancel: “Vazgeç”, processData: “Kaydediyor…”, url:”balik_hareket.php?q=2″, closeAfterAdd : true, onInitializeForm: function(formid) {
 
$(”#tarih”,formid).datepicker({dateFormat:”dd-mm-yy”});
 
}}, // add options 
{delCaption: “Kayıt Sil”, bSubmit: “Evet”, bCancel: “Hayır”, processData: “Siliniyor…”, url:”balik_hareket.php?q=4″, 
msg:”Seçili Kaydın Silinmesini Onaylıyor musunuz?”}, // del options 
{top : 450, left: 500, caption: “Ara & Bul…”, Find: “Bul”, Reset: “Temizle”, odata : ['eÅŸittir', 'eÅŸit deÄŸildir', 'küçük', 'küçük veya eÅŸit','büyük','büyük veya eÅŸit', 'ile baÅŸlayan','ile biten','içeren']} // search options 
).navButtonAdd('#prowed3',{buttonimg:”themes/sand/images/excel.gif”, caption:””, onClickButton:function() { 
top.location=”balik_hareket.php?q=5″ }}).navButtonAdd('#prowed3',{buttonimg:”themes/sand/images/pdf.gif”, caption:””, onClickButton:function() { 
top.location=”balik_hareket.php?q=6″ }}).navButtonAdd('#prowed3',{buttonimg:”themes/sand/images/chart.gif”, caption:””, onClickButton:function() { 
top.location=”balik_hareket.php?q=7″ }});
});

each methods has own urls with this docutment see: (we're using url:blabla.php to change url)

{top : 450, left: 500, addCaption: “Kayıt Ekle”, bSubmit: “Kaydet”, bCancel: “Vazgeç”, processData: “Kaydediyor…”, url:”balik_hareket.php?q=2″, closeAfterAdd : true, onInitializeForm: function(formid) {
 
$(”#tarih”,formid).datepicker({dateFormat:”dd-mm-yy”});
 
}}, // add options 

here the example for edit method:

{top : 450, left: 500, editCaption: “Kayıt Düzenle”, bSubmit: “Kaydet”, bCancel: “Çıkış”, processData: “Kaydediyor…”, url:”balik_hareket.php?q=3″, closeAfterEdit : true, onInitializeForm: function(formid) {
 
$(”#tarih”,formid).datepicker({dateFormat:”dd-mm-yy”});
 
}}, // edit options 

I'm using same php file for that. If you like you can use diferent files like for add: add.php for edit: edit.php blabla ;)

Regards,

Ibrahim.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
23 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