jQWidgets Forums
Forum Replies Created
-
Author
-
Hi Peter,
filterGroups will come as empty array if we clear the filter text. So i am not able get the datafield name for which i cleared the filter text.
Regards,
SSPJuly 15, 2014 at 10:27 am in reply to: Clear value of combo box in gid Clear value of combo box in gid #57220Hi
Is there a way to clear the value of one combo box on change of other combo box ??
example : i have A and B column in grid, and both are of type combo box. on change of A i’m doing ajax call to get B values ,
Now i want to clear B combo box when i change A.PS : All action should happen inside grid.
Regards,
ChaitraJune 10, 2014 at 10:37 am in reply to: Menu text text color change Menu text text color change #55631Thanks a lot.. its working
Hi Dimitar!!
Thank you very much for your response and it helped me in solving my issue!!
I had missed var oldvalue = args.oldvalue; in my code,,,,
Thanks & Regards,
sspHi,
Awaiting ur reply!!!
May 30, 2014 at 7:07 am in reply to: How to make the datetimeinput in the grid column as complete readonly How to make the datetimeinput in the grid column as complete readonly #55116Hi Dimitar,
The link you have mentioned above, worked when datetimeinput is used as normal textfield,
but when I implement the same in the grid as
{text : ‘Valid From’,datafield : ‘validFrom’,columntype:datetimeinput’, readonly: true,allowKeyboardDelete: false,
cellsformat : ‘d’, align : ‘left’, width : 140, cellsalign : ‘left’},neither readonly nor allowKeyboardDelete properties work in the grid column!!?
May 30, 2014 at 7:00 am in reply to: How to make the datetimeinput complete readonly How to make the datetimeinput complete readonly #55115Hi Dimitar,
Thank you very much, the given properties worked as needed!!
Hi Dimitar,
I have popup window (i.e i have used jqxwindow) in the jqxwindow i have grid , i that grid i have a button when i click on that button it should do a ajax call. but it is not happening..
Here is the code :
$(“#jqxResLocation”).jqxGrid({
width : 480,
autoheight : true,
source : resourceLocdataAdapter,
theme : ‘energyblue’,
altrows : true,
pageable: true,
editable: true,
pagermode: ‘simple’,
selectionmode : ‘multiplecellsextended’,
columns : [{
text : ‘Host Location’,
columntype : ‘dropdownlist’,
datafield : ‘hostLocation’,
width : 120,
align: ‘right’,
cellsalign : ‘right’
},, {
text : ‘Current Location’,
columntype : ‘dropdownlist’,
datafield : ‘currentLocation’,
width : 120,
align: ‘right’,
cellsalign : ‘right’
},{
text : ‘Valid From’,
datafield : ‘validFrom’,
columntype : ‘datetimeinput’,
cellsformat : ‘d’,
align: ‘right’,
width : 120,
cellsalign : ‘right’
},{
text : ‘Valid To’,
datafield : ‘validTo’,
width : 120,
columntype : ‘datetimeinput’,
cellsalign : ‘right’,
cellsformat : ‘d’,
align: ‘right’,
},{
text : ‘id’,
datafield : ‘id’,
width : 120,
columntype : ‘datetimeinput’,
cellsalign : ‘right’,
cellsformat : ‘d’,
align: ‘right’,
hidden: true
},{
text : ‘globalID’,
datafield : ‘globalID’,
width : 120,
columntype : ‘datetimeinput’,
cellsalign : ‘right’,
cellsformat : ‘d’,
align: ‘right’,
hidden: true
},{
text : ‘Update’,
datafield : ‘update’,
columntype : ‘button’,
width : 72,
autoheight: true,
cellsrenderer : function() {
return “Update”;
},
buttonclick : function(
row) {var dataRecord = $(
“#jqxResLocation”)
.jqxGrid(
‘getrowdata’,
row);
$.ajax({
cache : false,
type : “POST”,
contentType:’application/json;charset=utf-8′,
async : false,url :”test.htm?globalId=” + dataRecord.globalID + “&id=” + dataRecord.id
+ “&hostLocation=” + dataRecord.hostLocation + “¤tLocation=”
+ dataRecord.currentLocation + “&validTo=” + dataRecord.validTo + “&validFrom=”
+ dataRecord.validFrom,
success : function(response) {alert(“updated”);
},
error : function(e) {
alert(“update fail”);
}
});}
}]
});});
});
});`
Please do the needful.
Regards,
SSPApril 15, 2014 at 6:07 am in reply to: issue with go to page in jqxgrid pagination issue with go to page in jqxgrid pagination #53082I have gone through the above two options,
but they are missing with Show rows dropdown option, which is very much required!!April 15, 2014 at 6:03 am in reply to: Implementation using aggregates Implementation using aggregates #53081Hi Dimitar,
This was happening bcz in the initial loading of the grid, the empty cells were initialized to null,
this issue is solved when empty cells are loaded with empty string (“”)Thanks & Regards,
sspApril 15, 2014 at 5:28 am in reply to: issue with go to page in jqxgrid pagination issue with go to page in jqxgrid pagination #53078Hello,
I am using the paging feature of the jqxrid,
but as per my requirement I have to remove the Go to page feature from the pagination bar!!Plz let me is this possible and how can I do it?
Thanks & Regards,
sspApril 10, 2014 at 12:54 pm in reply to: Implementation using aggregates Implementation using aggregates #52875Dimitar,
I am using version 3.2.1 of jQWidgets throughout my application,
And for empty grid, I do get the msg “No data to display”
I am not referring to the empty grid here, rather when few columns of the grid have data and few columns are empty!?var wklyData =ColGridDataField; // prepare the data var wklysrc = { datatype: "json", datafields:dataFieldColumns, localdata: wklyData, addrow: function (rowid, rowdata, position, commit) { commit(true); } }; var dataAdapter2 = new $.jqx.dataAdapter(wklysrc, { downloadComplete: function (wklyData, status, xhr) { }, loadComplete: function (wklyData) { }, loadError: function (xhr, status, error) { } }); $("#jqxgridWeekly").jqxGrid( { width: 1015, source: dataAdapter2, ...
…
aggregates: [{ 'D': function (aggregatedValue, currentValue,column,record) { if(record['LPN'] != null && record['LPN'] != "") { // aggregatedValue=aggregatedValue+aggregatedValue; //alert("aggr:"+aggregatedValue+"curr:"+currentValue); if(currentValue == ""){ currentValue =0; } return aggregatedValue+currentValue; } // alert("ret:"+aggregatedValue); return aggregatedValue; } }, { 'T': function (aggregatedValue, currentValue,column,record) { // if( record['LPN'] == "") // { if(currentValue == ""){ currentValue =0; } return aggregatedValue + currentValue; // } return aggregatedValue; } } ],
….
April 10, 2014 at 12:15 pm in reply to: Implementation using aggregates Implementation using aggregates #52865Hello Dimitar,
Exactly! I meant when the cells of the columns are empty…I get [object Object]:0,
but for the columns with data in any cell, it is properly displayed
also once I enter data in the empty column, it displays properly as
| Direct:40
| Indirect:10But for empty column this issue is occuring,
plz let me know!!Thanks & Regards,
sspApril 8, 2014 at 8:37 am in reply to: Multiple rows of agrgates in jqxgrid Multiple rows of agrgates in jqxgrid #52692Peter,
Thanx, I am referring to the same demo, but in the demo the aggregate is merged in a single row, I wanted to check whether is it possible to split the ‘count’ and ‘Cappuccino ‘ in different rows!
April 4, 2014 at 10:32 am in reply to: Implementation using aggregates Implementation using aggregates #52566Hi Dimitar,
I am able to do the implementation using your given demo,
but on initial loading of empty columns, the aggregate is displayed as [object Object]:0,
only once I enter any values in the cells of the grid, I am able to get the output in proper format like:
| Direct:50
| Indirect:10How will I get the proper format for empty columns on initial page load like:
| Direct:0.0
| Indirect:0.0Do I have to use aggregatesrenderer? If yes, plz let me know how can I achieve this??
Thanks & Regards,
ssp -
AuthorPosts