dentify all records

Questionsdentify all records
josep asked 10 years ago

Working with PHP grid loading data from an array with 1200 records.
I have defined the property
$ grid ["rowNum"] = 5000;

Once loaded I use
var ids = jQuery ('# datosagendaprov') jqGrid ('getDataIDs.');
pra identify all rows, but it occurs to me only identifies one hand and need to identify them all.

How do I do it?

Apart from the above
How do I can know the height or width of a row?

1 Answers
Abu Ghufran answered 10 years ago

You can iterate thru the ids variable like below.

var ids = jQuery('#list1').jqGrid('getDataIDs');
for (i = 0; i < ids.length; i++) {

// do row operation like selection
jQuery('#list1').jqGrid('setSelection', ids[i], true);

}

For height / width, you may need to play with jquery, Not supported with api.
Inspect using firebug to know the ID of the row and then use jquery method for dimensions.

Your Answer

1 + 12 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?