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
InlineEdit Formatter Bug
02/10/2009
07:31
Avatar
JimmyOS
Member
Members
Forum Posts: 14
Member Since:
10/09/2009
sp_UserOfflineSmall Offline

Hi,

today I used the row editing feature for the first time and I noticed an weird behavior in combination with formatters. It doesn't matter whether I use the “currency” or “number” formatter. Before I edit the row I have the value “125,00″. After an click on the row I am able to edit the field, but the editable value is now “12500″. After that I press escape or click on another row and the new value is “12.500,00″. That's strange, isn't it? I use the latest grid version 3.5.3

This is my grid setup

var lastSel;

$GridTbl = $('#sykGridTbl');

$GridTbl.jqGrid({
height: 300,
width: 600,
url: 'index.php?pageId=5009&getList=true',
editurl: 'index.php?pageId=5014',
colNames: ['Description', 'Info', 'Costs', 'Sum'],
colModel: [{name:'description', editable: true},
           {name:'info', editable: true, width: 110},
           {name:'costs', editable: true, width: 80, align: 'right', formatter: 'currency'},
           {name:'sum', editable: true, width: 130, align: 'right', formatter: 'currency'}],
onSelectRow: function (id) {
    if(id && id!==lastSel){
        $GridTbl.restoreRow(lastSel);
        lastSel=id;
    }
    $GridTbl.editRow(id, true);
}
});

This is my grid.locale-de.js

(function(a){a.jgrid={defaults:{recordtext:”Zeige {0} – {1} von {2}”,emptyrecords:”Keine Datensätze vorhanden”,loadtext:”Lädt…”,pgtext:”Seite {0} von {1}”},search:{caption:”Suche…”,Find:”Finden”,Reset:”Zurücksetzen”,odata:["gleich","ungleich","kleiner","kleiner gleich","größer","größer gleich","beginnt mit","beginnt nicht mit","ist in","ist nicht in","endet mit","endet nicht mit","enthält","enthält nicht"],groupOps:[{op:"AND",text:"alle"},{op:"OR",text:"mindestens eins"}],matchText:” match”,rulesText:” rules”},edit:{addCaption:”Datensatz hinzufügen”,editCaption:”Datensatz bearbeiten”,bSubmit:”Speichern”,bCancel:”Abbrechen”,bClose:”Schließen”,saveData:”Daten wurden geändert! Änderungen speichern?”,bYes:”ja”,bNo:”nein”,bExit:”abbrechen”,msg:{required:”Feld ist erforderlich”,number:”Bitte geben Sie eine Zahl ein”,minValue:”Wert muss größer oder gleich sein, als “,maxValue:”Wert muss kleiner oder gleich sein, als “,email:”ist keine valide E-Mail Adresse”,integer:”Bitte geben Sie eine Ganzzahl ein”,date:”Bitte geben Sie ein gültiges Datum ein”,url:”ist keine gültige URL. Prefix muss eingegeben werden ('http://' oder 'https://')”}},view:{caption:”Datensatz anschauen”,bClose:”Schließen”},del:{caption:”Löschen”,msg:”Ausgewählte Datensätze löschen?”,bSubmit:”Löschen”,bCancel:”Abbrechen”},nav:{edittext:” “,edittitle:”Ausgewählten Zeile editieren”,addtext:” “,addtitle:”Neuen Zeile einfügen”,deltext:” “,deltitle:”Ausgewählte Zeile löschen”,searchtext:” “,searchtitle:”Datensatz finden”,refreshtext:”",refreshtitle:”Tabelle neu laden”,alertcap:”Warnung”,alerttext:”Bitte Zeile auswählen”,viewtext:”",viewtitle:”View selected row”},col:{caption:”Spalten anzeigen/verbergen”,bSubmit:”Speichern”,bCancel:”Abbrechen”},errors:{errcap:”Fehler”,nourl:”Keine URL angegeben”,norecords:”Keine Datensätze zum verarbeiten”,model:”colNames und colModel sind unterschiedlich lang!”},formatter:{integer:{thousandsSeparator:” “,defaultValue:”0″},number:{decimalSeparator:”,”,thousandsSeparator:”.”,decimalPlaces:2,defaultValue:”0,00″},currency:{decimalSeparator:”,”,thousandsSeparator:”.”,decimalPlaces:2,prefix:”",suffix:” ”,
defaultValue:”0,00 ”},date:{dayNames:["So","Mo","Di","Mi","Do","Fr","Sa","Sonntag","Montag","Dienstag","Mittwoch","Donnerstag",
"Freitag","Samstag"],monthNames:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez","Januar",
"Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November",
"Dezember"],AmPm:["am","pm","AM","PM"],S:function(b){return b<11||b>13?["st","nd","rd","th"][Math.min((b-1)%10,3)]:”th”},srcformat:”d.m.Y”,newformat:”d.m.Y”,masks:{ISO8601Long:”d.m.Y H:i:s”,ISO8601Short:”d.m.Y”,ShortDate:”j.n.Y”,LongDate:”l, d. F Y”,FullDateTime:”l, d. F Y G:i:s”,MonthDay:”d. F”,ShortTime:”G:i”,LongTime:”G:i:s”,SortableDateTime:”Y-m-d\\\\TH:i:s”,UniversalSortableDateTime:”Y-m-d H:i:sO”,YearMonth:”F Y”},reformatAfterEdit:false},baseLinkUrl:”",showAction:”",target:”",checkbox:{disabled:true},idName:”id”}}})(jQuery);
02/10/2009
09:50
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks. It is bug. Will see why is this.

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/10/2009
10:00
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Found the cause. Will publish the fix after some tests in GitHub

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.

13/10/2009
01:34
Avatar
JimmyOS
Member
Members
Forum Posts: 14
Member Since:
10/09/2009
sp_UserOfflineSmall Offline

Hello Tony,

can you estimate how long it would take to publish the fixed version?

Greetings

JIM

14/10/2009
11:40
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

The fix is in 3.6 branch in GitHub

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.

15/10/2009
07:59
Avatar
JimmyOS
Member
Members
Forum Posts: 14
Member Since:
10/09/2009
sp_UserOfflineSmall Offline

Hi Tony,

I've installed the new version but the behavior is still the same :(

Edit: I forgot to tell that I used another option at grid setup => datatype: "json"
Maybe that's the bug?

For easier diagnostic I uploaded my whole testcode at http://ul.to/kxhhe3

17/10/2009
02:58
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

It seems that you download the code from master branch. Please select jqgrid36 branch and download. Have tested with code from 36 branch and all work OK.

Thanks

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.

19/10/2009
02:45
Avatar
JimmyOS
Member
Members
Forum Posts: 14
Member Since:
10/09/2009
sp_UserOfflineSmall Offline

Hi Tony,

it seams there's a bug at GitHub. Every time I change the branche and click on download I'll get the master branche 🙁 Never the less I downloaded the 3.6 beta from your blog page and now it works 🙂 Thanks a lot!

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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