jQWidgets Forums
Forum Replies Created
-
Author
-
Hi Dimitar,
I does not seems to be working there too. Please try adding the object values to the console and check.
console.log(scrolling.horizontal);
It always return false.Hi Dimitar,
It is scrolling. Actually I am getting the object asscrolling = Object {vertical: false, horizontal: false}
. The horizontal value is suppose to be true when we scroll horizontally and vice versa. Can you please check that? In the above example, it shows false always.Hi Dimitar,
I tried the code you have posted. In my case in mousemove itself it is showing false for both vertical and horizontal options. Can you please any other options we have. I tried the below code in the ready event.$("body").mousemove(function () { var scrolling = $("#jqxgrid").jqxGrid("scrolling"); if (scrolling.vertical == true) { $("#log").append("scrolling <br />"); }; });
Thanks in advance.
November 5, 2015 at 11:52 am in reply to: Problem With updatefilterpanel in Grid Problem With updatefilterpanel in Grid #77797Sorry for that, please reply here http://www.jqwidgets.com/community/topic/order-jqx-grid-jqwidget-filter-conditions/
November 5, 2015 at 11:52 am in reply to: Order jqx grid jqwidget filter conditions Order jqx grid jqwidget filter conditions #77796Suppose I have a grid as follows,
`$(“#jqxgrid”).jqxGrid(
{
source: data,
columns: [{ “text”: “Area Code”, “dataField”: “AreaCode”, “cellsalign”: “left”, “cellsformat”: “d” }, { “text”: “Revenue”, “dataField”: “Revenue”, “cellsalign”: “right”, “cellsformat”: “c2” }],
pageable: true,
filterable: true,
sortable: true,
rendered: function () {
var localizationobj = {};
filterstringcomparisonoperators = [‘equal’, ’empty’, ‘not empty’, ‘contains’, ‘does not contain’, ‘starts with’, ‘ends with’, ‘null’];
filternumericcomparisonoperators = [‘equal’, ‘not equal’, ‘less than’, ‘less than or equal’, ‘greater than’, ‘greater than or equal’, ‘null’, ‘not null’];
filterdatecomparisonoperators = [‘equal’, ‘not equal’, ‘less than’, ‘less than or equal’, ‘greater than’, ‘greater than or equal’, ‘null’, ‘not null’];
filterbooleancomparisonoperators = [‘equal’, ‘not equal’];localizationobj.filterstringcomparisonoperators = filterstringcomparisonoperators;
localizationobj.filternumericcomparisonoperators = filternumericcomparisonoperators;
localizationobj.filterdatecomparisonoperators = filterdatecomparisonoperators;
localizationobj.filterbooleancomparisonoperators = filterbooleancomparisonoperators;// apply localization.
$(“#jqxgrid”).jqxGrid(‘localizestrings’, localizationobj);
},
updatefilterconditions: function (type, defaultconditions) {
var stringcomparisonoperators = [‘EQUAL’, ‘EMPTY’, ‘NOT_EMPTY’, ‘CONTAINS’, ‘DOES_NOT_CONTAIN’, ‘STARTS_WITH’, ‘ENDS_WITH’, ‘NULL’];
var numericcomparisonoperators = [‘EQUAL’, ‘NOT_EQUAL’, ‘LESS_THAN’, ‘LESS_THAN_OR_EQUAL’, ‘GREATER_THAN’, ‘GREATER_THAN_OR_EQUAL’, ‘NULL’, ‘NOT_NULL’];
var datecomparisonoperators = [‘EQUAL’, ‘NOT_EQUAL’, ‘LESS_THAN’, ‘LESS_THAN_OR_EQUAL’, ‘GREATER_THAN’, ‘GREATER_THAN_OR_EQUAL’, ‘NULL’, ‘NOT_NULL’];
var booleancomparisonoperators = [‘EQUAL’, ‘NOT_EQUAL’];
switch (type) {
case ‘stringfilter’:
return stringcomparisonoperators;
case ‘numericfilter’:
return numericcomparisonoperators;
case ‘datefilter’:
return datecomparisonoperators;
case ‘booleanfilter’:
return booleancomparisonoperators;
}
},
updatefilterpanel: function (filtertypedropdown1, filtertypedropdown2, filteroperatordropdown, filterinputfield1, filterinputfield2, filterbutton, clearbutton,
columnfilter, filtertype, filterconditions) {
var index1 = 0;
var index2 = 0;
filtertypedropdown1.jqxDropDownList({ autoDropDownHeight: true, selectedIndex: index1 });
filtertypedropdown2.jqxDropDownList({ autoDropDownHeight: true, selectedIndex: index2 });
}
});`My requirement was showing equal as the default condition in filter, So I used updatefilterpanel. But now I have selected filter ‘Contains’ and apply filter. When I click on the applied filter and check, the condition is showing ‘Equal’ Instead of ‘Contains’ . I wanted the Equal conditions to be showed if there is no filters applied to that column. Any suggestions? Thanks in advance.
Kindest Regards
Sibeesh VenuNovember 3, 2015 at 11:18 am in reply to: Server Side With Saved Sorting and Filtering Info Server Side With Saved Sorting and Filtering Info #77694Hi Peter Stoev,
Thanks for your reply. I am getting this problem when I change async to false only. If I change it to true, the refresh button is coming perfectly. Please check.
Kindest Regards
Sibeesh VenuNovember 3, 2015 at 9:57 am in reply to: Server Side With Saved Sorting and Filtering Info Server Side With Saved Sorting and Filtering Info #77691Hi,
Any updates? Thanks in advanceHi Peter Stoev,
Thanks for your reply. I will check as you said.Kindest Regards
Sibeesh VenuHi Peter,
Thanks for your reply. I have tried that already, but when I customize the font-size and other CSS styles, I am experiencing an another issue. When ever I click on any rows or cells, the selection goes to other rows. Any help is appreciated.Kindest Regards
Sibeesh VenuOctober 27, 2015 at 9:08 am in reply to: Server Side With Saved Sorting and Filtering Info Server Side With Saved Sorting and Filtering Info #77369Thanks for your reply, when I change async to true, the loading image is showing. Like I said, the issue exists only if async is false in source object. Please check and help me.
October 27, 2015 at 6:58 am in reply to: Server Side With Saved Sorting and Filtering Info Server Side With Saved Sorting and Filtering Info #77357Hi Peter,
Since I have changed async:false , it seems the normal grid refreshing icons are not showing even when I clicked on sorting , filtering , page events. Can you please provide me any solution regarding this? Thanks in advance.Kindest Regards
Sibeesh VenuOctober 26, 2015 at 5:48 am in reply to: Limit in formatData parameter collection Limit in formatData parameter collection #77293It seems I solved the issue. I added
type: 'POST',
in my source object. Thank youOctober 26, 2015 at 5:14 am in reply to: Limit in formatData parameter collection Limit in formatData parameter collection #77292I am just extending the data in the formatdata function as follows.
formatData: function (data) { $.extend(data, { selectedColumn: selectedColumn, selectedRow: selectedRow, selectedMeasures: selectedMeasures, serverName: serverName, databaseName: databaseName, cubeName: cubeName, queryTemplate: QueryTemplate, chartMode: ChartMode, chartType: chartType, filterContent: filterContent, FilterSelectedValue: FilterSelectedValue, rollingTimePeriod: rollingTimePeriod, calculatedmeasureVal: calculatedmeasureVal }); return data; }
When I do that I am getting error. But when I pass less data in the variable FilterSelectedValue, it is working fine. Please advice me any fix. Thanks in advance.
Kindest Regards
Sibeesh VenuOctober 20, 2015 at 9:25 am in reply to: Order jqx grid jqwidget filter conditions Order jqx grid jqwidget filter conditions #77127I have done it by adding
updatefilterpanel: function (filtertypedropdown1, filtertypedropdown2, filteroperatordropdown, filterinputfield1, filterinputfield2, filterbutton, clearbutton, columnfilter, filtertype, filterconditions) { var index1 = 0; var index2 = 0; filtertypedropdown1.jqxDropDownList({ autoDropDownHeight: true, selectedIndex: index1 }); filtertypedropdown2.jqxDropDownList({ autoDropDownHeight: true, selectedIndex: index2 }); }
Thanks a lot for your help.
October 20, 2015 at 9:25 am in reply to: Default Filter Condition in Grid Filter Dropdown Default Filter Condition in Grid Filter Dropdown #77126I have done it by adding
updatefilterpanel: function (filtertypedropdown1, filtertypedropdown2, filteroperatordropdown, filterinputfield1, filterinputfield2, filterbutton, clearbutton, columnfilter, filtertype, filterconditions) { var index1 = 0; var index2 = 0; filtertypedropdown1.jqxDropDownList({ autoDropDownHeight: true, selectedIndex: index1 }); filtertypedropdown2.jqxDropDownList({ autoDropDownHeight: true, selectedIndex: index2 }); }
Thanks a lot for your help.
-
AuthorPosts