Is there any Jquery function to check if the grid has loaded the data

QuestionsIs there any Jquery function to check if the grid has loaded the data
Ram asked 8 years ago

I am trying to find the number of records in the grid after it has loaded using the below code.

var grid = $("#list1");
data = grid.jqGrid('getRowData');
alert(data.length);

Is there a Jquery callback function that we can use to check if the grid has completely loaded.

1 Answers
Abu Ghufran answered 8 years ago

You can use loadComplete event.

$opt["loadComplete"] = "function(){ …. }";
$g->set_options($opt);

Working example in demos/editing/custom-events.php

Your Answer

14 + 5 =

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?