Somebody can help me?
I've been reading in detail and it seems that i might use this two events:
beforeSubmitCell
serializeCellData
would it mind if someone paste an example?
Thank you
var ids = jQuery(“#GridName”).getDataIDs();
/* for each row loaded */
for (var i = 0; i < ids.length; i++)
{
var objRowData = jQuery((“#GridName”).getRowData(ids);
}
//Strike objRowData has all the information you need. So to access for example the column with the index Name, you do
// objRowData.Name or objRowData.Id.
Hope it helps
Well i think that the problem is that SQL Server saves decimal values with a comma, and the parse float uses a dot as decimal separator.
Sql database: 25,30
Parse float (25,30) -> 25
Parse float (25.30) -> 25.30
the NaN i'm getting is not from the jqgrid, is from the parsefloat.
Thanks
Thank you, but setting the scrollOffset didn't worked out.
Any way, I set the paging so it actually fit the page.
Thank you again.
Mark thank you very much! The thing was that i had version 3.4 on my server, I upgraded to 3.5 and the option
jQuery(NOMBRE_GRID).setGridParam({ multiboxonly: true }).hideCol('cb');
is actually working.
Thank you again 😉
Topic closed!!! jeje
PS. Sorry for all the inconvenient
Tony thank for your reply, i really appreciate you guys on trying to help me.
I did read what mark said, multiboxonly seems to be the right path to give the effect but when I click a row it don't seems to be selected (it's kind of obvious because you need to click the check-box in order to select the row), so when i try to retrieve the selected row, there won't be any selected row. I tried this before got here in the forum.
What I really want to know is why the information is moved one cell to the left? Like in the picture in the first post. Why is this happening when i do jQuery(NOMBRE_GRID).setGridParam({ multiselect: false }).hideCol('cb') in jQuery(document).ready ?
I don't know if i need to clarify again. I wrote down an event when a button is clicked on the page and i set this instruction
jQuery(NOMBRE_GRID).setGridParam({ multiselect: false }).hideCol('cb')
and is perfectly working.
Code:
Thank you mark I thought same too about the multibox only and i tested. It seems to work fine until i tried to retrieve the information of the row selected: no row was selected 😛
Well i'm giving up, jeje, thank you all guys, really.
But i really think it's a jqgrid bug, i don't understand why the information is moved one cell to the left.
Thank you again!
PS. This is the code when the information is moved to the left:.
Updated to JqGrid 3.5 and same thing is happening. Problem is not solved :(, information is moved one cell to the left.
Does anyone have you tried transform a multiselect grid to uniselect grid in loading phase?
Thank you, any comment will be appreciated .
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top