jQWidgets Forums
Forum Replies Created
-
Author
-
March 25, 2013 at 4:03 pm in reply to: Bug in addForeignKey when server side paging Bug in addForeignKey when server side paging #17972
Thanks, I redownloaded the build and it works now.
March 25, 2013 at 12:56 pm in reply to: Bug in addForeignKey when server side paging Bug in addForeignKey when server side paging #17947Hi,
the code modified in jqWidgets 2.8 isn’t the correct one, you should use my second snippet (you might want to test though, I can’t guarantee it handles every use case correctly).
Regards,
Christophe Opoix
March 22, 2013 at 6:52 pm in reply to: Bug in addForeignKey when server side paging Bug in addForeignKey when server side paging #17803Sorry, I was too quick on this, the code is more something like :
if (k.pageable && k.virtualmode) { start = k.pagenum * k.pagesize; end = ((k.pagenum + 1) * k.pagesize) - 1; if (end > k.totalrecords) { end = k.totalrecords; } } else { start = 0; end = k.records.length; }
March 22, 2013 at 3:54 pm in reply to: Bug in addForeignKey when server side paging Bug in addForeignKey when server side paging #17792jquery 1.8.3
jqwidgets 2.7
chrome PC 20.1446.3 canary
– steps :
– create a grid with server side paging
– a dropdownlist column (as seen in http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/index.htm#demos/jqxgrid/gridkeyvaluescolumnwitharray.htm)When paging, an error occurs in addForeignKey. I corrected the minified code with this (the part about start, end and pageable, virtualmode) :
addForeignValues:function(c){ var k=this; var p=c.datafields?c.datafields.length:0; for(var f=0;f<p;f++){ var e=c.datafields[f]; if(e!=undefined){ if(e.values!=undefined){ if(e.value==undefined){ e.value=e.name } if(e.values.value==undefined){ e.values.value=e.value } var n=new Array(); var start, end; if (k.pageable && k.virtualmode) { start = k.pagenum * k.pageSize + 1; end = (k.pagenum + 1) * k.pageSize + 1; if (end > k.totalrecords) { end = k.totalrecords; } } else { start = 0; end = k.records.length; } for(var g=start;g<end;g++){ var h=k.records[g]; var d=e.name;var o=h[e.value]; if(n[o]!=undefined){ h[d]=n[o] } else { for(var f=0;f<e.values.source.length;f++){ var m=e.values.source[f]; var b=m[e.values.value]; if(b==undefined){ b=m.uid} if(b==o){ var l=m[e.values.name]; h[d]=l; n[o]=l; break } } } } }else{ if(e.value!=undefined){ for(var g=0;g<k.records.length;g++){ var h=k.records[g]; h[e.name]=h[e.value] } } } } }},
March 22, 2013 at 2:17 pm in reply to: dropdownlist integration when '.' in datafields dropdownlist integration when '.' in datafields #17771Hi,
Have you been able to reproduce this bug or found a workaround ?
March 21, 2013 at 9:16 am in reply to: dropdownlist integration when '.' in datafields dropdownlist integration when '.' in datafields #17614Hi,
I don’t have subfields, my json looks like this :
[{“user.name”:”Name”, “user.mail”:”user@mail.com”}, …]
My grid works ok and maps the data correctly, I only have problems with the dropdownlist editor.
The editor works correctly if I remove the ‘.’ in the datafields names.February 15, 2013 at 9:23 am in reply to: showFooter, clearString and todayString problems showFooter, clearString and todayString problems #15290Thanks, I updated to 2.7 then
January 31, 2013 at 11:00 am in reply to: Get edited cell in updaterow with inline edit Get edited cell in updaterow with inline edit #14426Thanks,
I’m sorry, I meant that I needed to know the edited field to only send the field at the update function.
Do I have to store the dataField in cellendedit to get it back in the updaterow function ?January 31, 2013 at 10:41 am in reply to: Filter row and server side filtering temporary focus loss in IE Filter row and server side filtering temporary focus loss in IE #14423Well I guess I’ll have to hack my own fix then…
<style>.hideFocus { opacity : 0; filter : alpha(opacity=0); padding : 0 0 0 0; overflow : hidden; display : inline; width : 0px; height : 0px; background-color : #EFEFEF; border : Opx solid-black;}</style><input type="text" id="jqxgrid_tmpFocus" class="hideFocus" hideFocus="true" /> filter: function () { $('#jqxgrid_tmpFocus').focus(); $("#jqxgrid").jqxGrid('updatebounddata', 'filter'); },
January 31, 2013 at 9:38 am in reply to: Filter row and server side filtering temporary focus loss in IE Filter row and server side filtering temporary focus loss in IE #14413Wasn’t the ‘filter’ parameter added to deal with this problem ?
Couldn’t the fix also include a temporary 0px transparent input to focus to when filtering ?Anyway, I dont’t understand why this “should” be expected by users (of IE) and how this is not something that has to be fixed.
January 30, 2013 at 3:15 pm in reply to: Filter row and server side filtering temporary focus loss in IE Filter row and server side filtering temporary focus loss in IE #14370I am talking about a reload while filtering, not about the initial grid loading.
The reload seems to be triggered after a while since the user stopped typing.
He could still be deleting the filter content, just not that fast. The focus is lost for a millisecond and then goes back to the filter.During that time, hitting backspace sends the user to a previous page.
I don’t think the user expects being sent to the previous page if he doesn’t press backspace fast enough
January 21, 2013 at 2:44 pm in reply to: Filter doesn't update on mouse actions on text Filter doesn't update on mouse actions on text #13994Ok thank you,
In case someone else needs it too :
I had to add the following code in the ready event to make it work as the users expected it to :
$("#row00jqxgrid input").each(function() { $(this).bind("input propertychange", function(e) { $(this).keydown(); });});
Ok. Managed to get something working this way :
var headerTooltipRenderer = function(text) { return function (columnHeaderElement) { return "<div class='renderedColumn' style='margin-left: 5px; margin-top: 5px;' title='" + text + "'>" + columnHeaderElement + "</div>"; }};
And added this code to the ready function :
$("div .renderedColumn").each(function() { this.parentElement.title = this.title;});
There should be something cleaner though.
January 17, 2013 at 1:06 pm in reply to: Localization in grid with json data type Localization in grid with json data type #13800Ok this works.
Thanks.
January 17, 2013 at 11:01 am in reply to: Localization in grid with json data type Localization in grid with json data type #13787Hi,
Thanks for your response. However, the localization sample in 2.6 still uses the bindingcomplete event.
And the message still displays when using :
$("#jqxGrid").ready(localizeString);
Can you provide a sample on how to localize on the ready event ?
-
AuthorPosts