PHP Wrappers - DataSourceResult::Read

2 posts, 0 answers
  1. Paweł Kasztelan
    Paweł Kasztelan avatar
    17 posts
    Member since:
    Aug 2012

    Posted 18 Mar 2013 Link to this post

    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);
    }
  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 20 Mar 2013 Link to this post

    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!
  3. UI for ASP.NET AJAX banner
Back to Top