Bind the pivot grid at client side

4 posts, 0 answers
  1. Mohan
    Mohan avatar
    9 posts
    Member since:
    Aug 2018

    Posted 16 Aug 2018 Link to this post

    Hello Team,

    Like a rad grid has feature of client side data binding. How do we achieve same feature in rad pivot grid.

      var gridView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
      gridView.set_dataSource(result);
      gridView.dataBind();

    My expectation is, user clicks a button, call gets redirected to JS file, which in turn save some data to database. now newly saved records to be displayed on pivot grid without making any server side call. 

    we can have client side code which calls the API, pulls the data and bind it to pivot grid at client side like rad grid does.

     

    Thanks,

    Mohan Pal

     

     

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4711 posts

    Posted 16 Aug 2018 Link to this post

    Hello Mohan,

    You can use the Kendo UI PivotGrid widget for binding to data client-side: https://demos.telerik.com/kendo-ui/pivotgrid/index.


    Regards,
    Marin Bratanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Mohan
    Mohan avatar
    9 posts
    Member since:
    Aug 2018

    Posted 17 Aug 2018 in reply to Marin Bratanov Link to this post

    Hello Marin,

    Thanks for update.

    Couple of questions:

    1. does that mean we don't have set_dataSource property for rad pivot grid like we have for rad grid ?

    2. Link shared by you is the only option we have for binding rad pivot grid using client side?

     

    Thanks,

    Mohan Pal

     

  4. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4711 posts

    Posted 17 Aug 2018 Link to this post

    Hello Mohan,

    You are correct on both counts. RadPivotGrid does not have a set_dataSource() method and binding a pivot grid to client-side data is only possible with the Kendo PivotGrid.


    Regards,
    Marin Bratanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top