jQWidgets Forums
Forum Replies Created
-
Author
-
June 6, 2016 at 8:54 am in reply to: Not able to load data for level 1 Not able to load data for level 1 #84927
Hi Peter,
Can you please tell the example name from demos, so we can refer.
Thanks,
NitinJune 6, 2016 at 6:21 am in reply to: Not able to load data for level 1 Not able to load data for level 1 #84915Hi Peter,
The example which you have shown doesn’t make ajax call on demand instead of it loads data initially. Please check the console On demand example.
We need a feature which will make ajax call level wise and load ajax content on demand.Thanks,
NitinMay 25, 2016 at 8:36 am in reply to: Once server side filters are removed, rowdetails doesn't close Once server side filters are removed, rowdetails doesn't close #84645Hi Ivailo,
Did you make use of server side filtering and the example which i have suggested?
Thanks,
NitinMay 25, 2016 at 6:10 am in reply to: Virtual lazyloading feature to treeGrid Virtual lazyloading feature to treeGrid #84640Hi Peter,
Yes, but i want pagination on scroll and not with respect to page number. Is it possible to achieve it?
Thanks,
NitinMay 24, 2016 at 8:42 am in reply to: Once server side filters are removed, rowdetails doesn't close Once server side filters are removed, rowdetails doesn't close #84601Hi Ivailo,
Sorry, i don’t have server where i can show you the demo but can you please use phpdemos ‘server_side_grid__with_nested_grids’ example and enable filter row with ‘showfilterrow’ set as true, than try to filter a record and open the rowdetails of first row. Now close the rowdetails of filtered row and go to next page. Again come back to the same page and you will find rowdetails in expand state for first row.
This issue encountered in above v3.8.2. Please suggest a fix for it.
May 24, 2016 at 7:04 am in reply to: Not able to load data for level 1 Not able to load data for level 1 #84594Hi Peter,
I tried the option which you have told, Please check below snippet:
$(document).ready(function () {
// prepare the data
var source =
{
dataType: “json”,
dataFields: [
{ name: “id”, type: “string” },
{ name: “name”, type: “string” },
{ name: “duration”, type: “number” },
{ name: “task”, type: “number” }
],
timeout: 10000,
type:’POST’,
hierarchy:
{
keyDataField: { name: ‘id’ },
parentDataField: { name: ‘name’ }
},
id: ‘id’,
root: ‘Rows’,
url: “getTaskDetails.php”
};// create Tree Grid
$(“#treeGrid”).jqxTreeGrid(
{
width:800,
virtualModeCreateRecords: function (expandedRecord, done) {
var dataAdapter = new $.jqx.dataAdapter(source,
{
formatData: function (data) {
if (expandedRecord == null) {
data.$filter = “(ReportsTo eq null)”
}
else {
data.expandedRecord = expandedRecord;
}
return data;
},
loadComplete: function()
{
done(dataAdapter.records);
},
loadError: function (xhr, status, error) {
done(false);
throw new Error(“http://services.odata.org: ” + error.toString());
}
}
);
dataAdapter.dataBind();
},
virtualModeRecordCreating: function (record) {
// record is creating.
},
columns: [
{ text: ‘FirstName’, columnGroup: ‘name’, dataField: ‘firstname’, width: 150 },
{ text: ‘LastName’, columnGroup: ‘name’, dataField: ‘lastname’, width: 150 },
{ text: ‘Duration’, dataField: ‘duration’, width: 200 },
{ text: ‘Task’, dataField: ‘task’}
]
});
});PHP script:
<?php
header(‘Content-Type: application/json’);
if(!empty($_POST[‘expandedRecord’])){
if($_POST[‘expandedRecord’][‘level’] == 0){
echo ‘{“id”: “123689”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}’;
}else if($_POST[‘expandedRecord’][‘level’] == 1){
echo ‘{“id”: “123856”, “duration”: “8”, “firstname”:”Andrew”, “lastname”: “Fuller”, “name”: “Andrew Fuller”, “task”: “Kitchen supplies”}’;
}
}else{
echo ‘[{“id”: “123456”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}, {“id”: “123457”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}, {“id”: “123458”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}, {“id”: “123459”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}, {“id”: “123460”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}, {“id”: “123461”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}, {“id”: “123462”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}, {“id”: “123463”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}, {“id”: “123464”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}, {“id”: “123465”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}, {“id”: “123466”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}, {“id”: “123467”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}, {“id”: “123468”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}, {“id”: “123469”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}, {“id”: “123470”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}, {“id”: “123471”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}, {“id”: “123472”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}, {“id”: “123473”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}, {“id”: “123474”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}, {“id”: “123475”, “duration”: “7”, “firstname”:”Guylene”, “lastname”: “Murphy”, “name”: “Guylene Murphy”, “task”: “Housewares”}]’;
}
exit;
?>Still i get the same issue ‘too much recursion’, when i click on level 1 children.
May 24, 2016 at 5:27 am in reply to: Not able to load data for level 1 Not able to load data for level 1 #84582Hi Peter,
Actually i have checked virtual mode demos and same example i had used to build tree grid children. But wehn i make ajax call in generateTasks function to fetch data from server gets ‘too much recursion’ error.
can you pelase provide ajax call working example, so the level 1 data loads for children.
Thanks,
Nitin
May 17, 2016 at 8:43 am in reply to: Dropdown value selection issue in grid Dropdown value selection issue in grid #84422Hi Ivailo,
Can you refer below fiddle and try to select value from products dropdownlist.
Dropdown issueIf i click inside the grid values are shown instantly, otherwise i have to click twice inorder to show selected values from dropdownlist. Please suggest a fix.
Thanks,
NitinMay 11, 2016 at 9:37 am in reply to: Once server side filters are removed, rowdetails doesn't close Once server side filters are removed, rowdetails doesn't close #84256Hi Ivailo,
I have updated to the latest version (4.1.2) but issue still persist. Can you please check at your end.
Thanks,
NitinHi Peter,
Actually i have posted it into right grid forum. Still will create a separate post for it.
Thanks,
NitinMarch 10, 2016 at 12:47 pm in reply to: jqxtabs inside jqxgrid copy paste problem jqxtabs inside jqxgrid copy paste problem #82323Hi Dimitar,
I am facing same issue but not able to resolve by setting enablebrowserselection property to true. Also tried clipboard: true, still it doesn’t work.
Please suggest a solution.Thanks,
Nitin AyirJanuary 13, 2016 at 8:58 am in reply to: filter fails when rowdetails added to grid filter fails when rowdetails added to grid #80351Hi Ivailo,
Can you please tell us, when is the next jqwidgets release date?
Thanks,
NitinDecember 30, 2015 at 4:28 am in reply to: Class not accesible horizontal scroll. Class not accesible horizontal scroll. #79907Hi Peter,
I understand that we cannot add custom classes. Can you help us with a way wherein we can add some style to a particular cell which would stay even on scroll, or any other event?Regards,
Nitin AyirDecember 29, 2015 at 9:41 am in reply to: Display x-axis datafield name with different color Display x-axis datafield name with different color #79861Hi Ivailo,
Thanks for quick reply, but i am not sure about the position of that particular element. Consider an example in which i have to plot a bar graph based on dates and show color code for current date. Is that possible? any workaround will be appreciated.
Thanks,
Nitin AyirDecember 18, 2015 at 12:52 pm in reply to: Class not accesible horizontal scroll. Class not accesible horizontal scroll. #79516Hi Peter,
There is some issue when we scroll the grid, whatever columns fits within specified grid width only those column’s html is shown. For your reference, please check below html:
onload “row0jqxgrid” html:
<div id=”row2jqxgrid” style=”position: relative; height:25px;” role=”row”><div class=”jqx-grid-cell jqx-grid-cell-energyblue jqx-item jqx-item-energyblue” style=”left: 460px; z-index: 773; width:90px;” role=”gridcell”><div style=”margin-top: 4px;” class=”jqx-grid-cell-right-align”>$5.00</div></div><div class=”jqx-grid-cell jqx-grid-cell-energyblue jqx-item jqx-item-energyblue” style=”left: 100px; z-index: 776; width:100px;” role=”gridcell”><div style=”margin-top: 4px;” class=”jqx-grid-cell-left-align”>Devling</div></div><div class=”jqx-grid-cell jqx-grid-cell-energyblue jqx-item jqx-item-energyblue” style=”left: 200px; z-index: 775; width:180px;” role=”gridcell”><div style=”margin-top: 4px;” class=”jqx-grid-cell-left-align”>Cappuccino</div></div><div class=”jqx-grid-cell jqx-grid-cell-energyblue jqx-item jqx-item-energyblue” style=”left: 380px; z-index: 774; width:80px;” role=”gridcell”><div style=”margin-top: 4px;” class=”jqx-grid-cell-right-align”>5</div></div><div class=”jqx-grid-cell jqx-grid-cell-energyblue jqx-item jqx-item-energyblue” style=”left: 0px; z-index: 777; width:100px;” role=”gridcell”><div style=”overflow: hidden; text-overflow: ellipsis; padding-bottom: 2px; text-align: left; margin-right: 2px; margin-left: 4px; margin-top: 4px;”>Nancy</div></div></div>After horizontal scroll:
<div id=”row2jqxgrid” style=”position: relative; height:25px;” role=”row”><div class=”jqx-grid-cell jqx-grid-cell-energyblue jqx-item jqx-item-energyblue” style=”left: 460px; z-index: 773; width:90px;” role=”gridcell”><div style=”margin-top: 4px;” class=”jqx-grid-cell-right-align”>$5.00</div></div><div class=”jqx-grid-cell jqx-grid-cell-energyblue jqx-item jqx-item-energyblue” style=”left: 100px; z-index: 776; width:100px;” role=”gridcell”><div style=”margin-top: 4px;” class=”jqx-grid-cell-left-align”>Devling</div></div><div class=”jqx-grid-cell jqx-grid-cell-energyblue jqx-item jqx-item-energyblue” style=”left: 200px; z-index: 775; width:180px;” role=”gridcell”><div style=”margin-top: 4px;” class=”jqx-grid-cell-left-align”>Cappuccino</div></div><div class=”jqx-grid-cell jqx-grid-cell-energyblue jqx-item jqx-item-energyblue” style=”left: 380px; z-index: 774; width:80px;” role=”gridcell”><div style=”margin-top: 4px;” class=”jqx-grid-cell-right-align”>5</div></div><div class=”jqx-grid-cell jqx-grid-cell-energyblue jqx-item jqx-item-energyblue” style=”left: 0px; z-index: 777; width:100px;” role=”gridcell”><div style=”overflow: hidden; text-overflow: ellipsis; padding-bottom: 2px; text-align: left; margin-right: 2px; margin-left: 4px; margin-top: 4px;”>Nancy</div></div><div class=”jqx-grid-cell jqx-grid-cell-energyblue jqx-item jqx-item-energyblue” style=”left: 550px; z-index: 772; width:100px;” role=”gridcell”><div style=”margin-top: 4px;” class=”jqx-grid-cell-right-align”>$25.00</div></div></div>Somehow this below div is removed:
<div class=”jqx-grid-cell jqx-grid-cell-energyblue jqx-item jqx-item-energyblue” style=”left: 0px; z-index: 777; width:100px;” role=”gridcell”><div style=”overflow: hidden; text-overflow: ellipsis; padding-bottom: 2px; text-align: left; margin-right: 2px; margin-left: 4px; margin-top: 4px;”>Nancy</div>Please let us know what is the concept your using to build row0jqxgrid, row1jqxgrid, row2jqxgrid, etc., this div’s are dynamically created whenever we do some action on grid. We are using right approach by specifying class to cell using cellrender property of columns grid api. If you guys fix this bug, it would be of great help to us.
regards,
Nitin Ayir -
AuthorPosts