views:

192

answers:

1

I have flexigrid set up to use an ajax post to get results from a server. For the sake of argument, say I have it set to limit 20 rows per page.

Within the "onSuccess" setting I'm calling a function.

How can I tell within that function how many (up to the limit of 20) rows that flexigrid has returned? I can use jQuery to count the rows within the container, sure (and that's what I'm doing as a work-around) But doesn't flexigrid return a quantity somewhere I can just access as a variable (Which would be way faster than using jquery to count the rows!)

Thnx in advance!

A: 

This is the function called onSuccess:

    function onFlexLoad()
    {
        alert(this.total); 
    }

...And if there's an error you can use onError: within the flexigrid setup;

however, if there is no error, and total returned is 0, then neither onSuccess and onError fire. Any ideas on how I can have a call back if the flexigrid is not resulting in an ajax error, but nothing is returned?

FerrousOxide