jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Sortable Issue
Tagged: jquery grid, jqxgrid
This topic contains 4 replies, has 2 voices, and was last updated by Peter Stoev 12 years, 3 months ago.
-
AuthorSortable Issue Posts
-
Hi,
https://www.dropbox.com/s/yv9cgd0s5ugwlza/Issue1.PNG
I used sortable false for the particular column, but still i’m getting the sortable drop down it is unnecessary and it is affecting my functionality also (functional check box is hidden). Can you please drive me to the right path?https://www.dropbox.com/s/buxh78l0txvtvc1/Issue2.PNG
I used custom checkbox to check all the grid rows. whenever i check the header checkbox it is checking all the cloumn’s check box. but whenever i check the all the columns the header one is not checked. I added this code in jqxgrid ready function and if i have not selected the header check box and from the server there is no data that time header check box checked automatically.if (columnCheckBox) {
var selectedRowsCount = $(“#list5”).jqxGrid(‘getselectedrowindexes’).length;
//var rowscount = $(“#list5”).jqxGrid(‘getdatainformation’).rowscount;
var visibleRows = $(‘#list5’).jqxGrid(‘getrows’);
var rowscount= visibleRows.length;updatingCheckState = true;
if (selectedRowsCount == rowscount) {
$(columnCheckBox).jqxCheckBox(‘check’)
}
else {
$(columnCheckBox).jqxCheckBox(‘uncheck’);
}
updatingCheckState = false;Hi kuberasamrat,
For issue #2 – see the Custom Rows selection demo. It works as expected.
For issue #1, please upgrade to jQWidgets 2.7. When “sortable” of a column is false, the Menu will not be displayed for the column. In case you use jQWidgets 2.7 and still reproduce the issue, then provide a sample which demonstrates it.Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter Stoev,
The Custom Rows selection demo. It works as expected.
Accept it, See the checking the checkbox code added in the celledit method, so whenever i move it to the next page checkbox shown as indeterminant format. I have not selected any data in the grid but why it is showing indeterminent format?
Hi,
I used sortable false (we are using JQWidgets 2.7) for the particular column, but still i’m getting the sortable drop down it is unnecessary and it is affecting my functionality also (functional check box is hidden). Can you please drive me to the right path?
$(document).ready(function () { var url = "../sampledata/orders.xml"; // prepare the data var source = { datatype: "xml", datafields: [ { name: 'ShippedDate', map: 'm\\:properties>d\\:ShippedDate', type: 'date' }, { name: 'Freight', map: 'm\\:properties>d\\:Freight', type: 'float' }, { name: 'ShipName', map: 'm\\:properties>d\\:ShipName', type: 'string' }, { name: 'ShipAddress', map: 'm\\:properties>d\\:ShipAddress', type: 'string' }, { name: 'ShipCity', map: 'm\\:properties>d\\:ShipCity', type: 'string' }, { name: 'ShipCountry', map: 'm\\:properties>d\\:ShipCountry', type: 'string' } ], root: "entry", record: "content", id: 'm\\:properties>d\\:OrderID', url: url, sortcolumn: 'ShipName', sortdirection: 'asc' }; var dataAdapter = new $.jqx.dataAdapter(source); // create jqxgrid. $("#jqxgrid").jqxGrid( { width: 670, height: 450, source: dataAdapter, sortable: true, altrows: true, columns: [ { text: 'Ship Name', datafield: 'ShipName', width: 250,sortable:false }, { text: 'Shipped Date', datafield: 'ShippedDate', width: 100, cellsformat: 'yyyy-MM-dd' }, { text: 'Freight', datafield: 'Freight', width: 80, cellsformat: 'F2', cellsalign: 'right' }, { text: 'Ship Address', datafield: 'ShipAddress', width: 350 }, { text: 'Ship City', datafield: 'ShipCity', width: 100 }, { text: 'Ship Country', datafield: 'ShipCountry', width: 101 } ] }); });
Hi kuberasamrat,
The columns menu items are disabled for the first column where sortable is false.
To disable the entire columns menu for a specific column, set “menu: false”, too.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.