I am using CGridView to generate a table whose data is received by a call to a stored procedure. To supply the data provider I am using the CArrayDataProvider like this
As I only get the current page data in $rawdata, how can I specify that this is the only data available. I have tired using ‘currentPage’ in ‘pagination’ but that doesn’t work.
Lets take for example I have data only for the 4th page. Now CArrayDataProvider expects the rawdata to be the entire set. So to work around it I had to prefill the first three pages data with null. I felt it would have been easier if the CArrayDataProvider had a paramter using which I can specify that only one pages data is available and the page number.