jQWidgets Forums
Forum Replies Created
-
Author
-
December 24, 2014 at 6:28 pm in reply to: jqxDropDownList lazy load jqxDropDownList lazy load #64680
•filteritems – sets the items displayed in the list filter – when the “showfilterrow” property value is true and the filter’s type is “list” or “checkedlist”. The expected value is Array or jqxDataAdapter instance.
I’m talking about the url of the jqxDataAdapter instance.
December 23, 2014 at 7:14 pm in reply to: jqxDropDownList lazy load jqxDropDownList lazy load #64622Here is a small code that i think is working but render bad the dropdownlist
Problem: My source bring arround 50 rows, the dropdownlist show only 5, without scrollbar.
var source = { cache: false, datatype: "xml",//<rows><row mycolumn="Value" />...</rows> datafields: [ { name: 'Label', map: function (obj) { return $(obj).attr("MyColumn"); }, } ], root: "Rows", id: "ID", record: "Row", processData: function (data) { //Set which column i need to populate the unique values in the dropdownlist return data; }, url: "../GetFilters.ashx" }; var dataAdapter = new $.jqx.dataAdapter(source, { async: false }); createfilterwidget : function (column, columnElement, widget) { widget.jqxDropDownList({ displayMember: "Label", valueMember: "Label", width: '100%', checkboxes: true, dropDownWidth: 300, animationType : 'none' }); widget.on('open', function (event) { widget.jqxDropDownList({ source: dataAdapter}); }); }
December 23, 2014 at 6:55 pm in reply to: jqxDropDownList lazy load jqxDropDownList lazy load #64620The problem using filteritems property is that the url is being hitted twice per column!
And what i want is a “LAZY LOAD” or a “LATE LOAD”, that the dropdownlist get populated! only if the user open the filter!
Imagine that I have a JQXGrid with thousand of rows, and 10 columns! its not good that the server is beeing hit 20 times! specialy
if their are not going to filter any column!Thanks.
-
AuthorPosts