This is a migrated thread and some comments may be shown as answers.

PHP Wrappers - DataSourceResult::Read

1 Answer 188 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paweł Kasztelan
Top achievements
Rank 2
Paweł Kasztelan asked on 18 Mar 2013, 12:52 PM
I found another problem while playing the table. Precisely as a function of the read data from the table DataSourceResult::Read();

Specifications:
PHP Version 5.3.14

Post:
{"take":20,"skip":0,"page":1,"pageSize":20,"group":[]}
Answer:
{"total":42350,"data":[]}
PHP:
if (isset($request->skip) && isset($request->take)) {
    $statement->bindValue(':skip', (int) $request->skip);
    $statement->bindValue(':take', (int) $request->take);
}

Post:
{"take":20,"skip":0,"page":1,"pageSize":20,"group":[]}
Answer:
{"total":42533,"data":[{"adr_Id":"1","adr_IdObiektu":"1","adr_TypAdresu":"8"},{"adr_Id":"2","adr_IdObiektu":"1","adr_TypAdresu":"7"},{"adr_Id":"3","adr_IdObiektu":"1","adr_TypAdresu":"15"},{"adr_Id":"4","adr_IdObiektu":"3","adr_TypAdresu":"15"},{"adr_Id":"5","adr_IdObiektu":"4","adr_TypAdresu":"15"},{"adr_Id":"6","adr_IdObiektu":"5","adr_TypAdresu":"15"},{"adr_Id":"7","adr_IdObiektu":"6","adr_TypAdresu":"15"},{"adr_Id":"8","adr_IdObiektu":"1","adr_TypAdresu":"1"},{"adr_Id":"9","adr_IdObiektu":"1","adr_TypAdresu":"2"},{"adr_Id":"10","adr_IdObiektu":"1","adr_TypAdresu":"11"},{"adr_Id":"11","adr_IdObiektu":"1","adr_TypAdresu":"12"},{"adr_Id":"12","adr_IdObiektu":"1","adr_TypAdresu":"13"},{"adr_Id":"13","adr_IdObiektu":"1","adr_TypAdresu":"14"},{"adr_Id":"14","adr_IdObiektu":"2","adr_TypAdresu":"1"},{"adr_Id":"15","adr_IdObiektu":"2","adr_TypAdresu":"2"},{"adr_Id":"16","adr_IdObiektu":"2","adr_TypAdresu":"11"},{"adr_Id":"17","adr_IdObiektu":"2","adr_TypAdresu":"12"},{"adr_Id":"18","adr_IdObiektu":"3","adr_TypAdresu":"1"},{"adr_Id":"19","adr_IdObiektu":"3","adr_TypAdresu":"2"},{"adr_Id":"20","adr_IdObiektu":"3","adr_TypAdresu":"11"}]}
PHP:
if (isset($request->skip) && isset($request->take)) {
    $statement->bindValue(':skip', (int) $request->skip, PDO::PARAM_INT);
    $statement->bindValue(':take', (int) $request->take, PDO::PARAM_INT);
}

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 20 Mar 2013, 08:54 AM
Hello Marek,


It seems this is required when other databases are used. We will update our code. Thank you for your involvement.

Kind Regards,
Vladimir Iliev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Paweł Kasztelan
Top achievements
Rank 2
Answers by
Vladimir Iliev
Telerik team
Share this question
or