Forum


10:33

12/02/2009

Hi there
I have another question, is it possible to remove a checkbox from a line?
Because for the time beeing I tried to do something like this
loadComplete: function(){
var rowIds = jQuery("#list-profiles").getDataIDs();
for(var i=0; i < rowIds.length; i++)
{
var rowData = $('#list-profiles').getRowData(rowIds[i]);
if(rowData.removeCheck == 'true')
{
$('#jqg_'+rowIds[i]).remove();
}
}
With a hidden row removeCheck, and the checkobx disapear but when I click on the checkbox (check all :: the one next to the titles of the columns), the Id of the line NOT containing the checkbox is returned with all the others.. even if the checkbox is no more present...
Any clues?
Thanks
10:28

Moderators
30/10/2007

Hello,
From the code this is expected behavior - when select all - all the rows are selected instead of that there is no check box. Will see what I can do, but no promise. One possible solution - strore the id that should be not selected in sepate array and exlude it when you do something when you select all.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
03:22

12/02/2009

Thanks for the reply Tony.
Yes in fact that's what I did, but it seems to me that the behavior is somewhat wrong, when you check select all the script should go an parse the checkboxes of the grid and look which exist and check them.
But it's my view of the problem 😉
Either way... it's a really powerfull datagrid! Thanks again for all your work
Best,
David
03:57

Moderators
30/10/2007

Hello,
Thanks. No problem. If I look into the code right now - you are absolutley right. I will add this in next release. Also I see a lot of improvements here.
Thank you.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
37 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66