Paging in Grid

5 posts, 0 answers
  1. Sameer
    Sameer avatar
    14 posts
    Member since:
    Mar 2012

    Posted 08 Oct 2012 Link to this post

    Hi,

    I am using kendo grid with paging.In my grid i have checkbox for selecting the grid row.
    when i am using paging when I select a row in page 1 and after if go to page 3 and select a row and save the data to database.
    The problem is when I select the page 3 row the page 1 row which is selected is not saved.
    Even if I change the grid page to 1 the selected row is deselected automatically.
    Is there any solution to solve the problem.

    please help...

    Regards,
    Sam.
  2. OnaBai
    OnaBai avatar
    55 posts
    Member since:
    Aug 2012

    Posted 08 Oct 2012 Link to this post

    Most likely you are not saving the selection and therefore loosing the value when you navigate between results.
    I explain some tips and tricks about checkboxes in my blog entry (http://wp.me/p2cl1j-eb) and specifically problems related to click checkboxes while not in editing mode. I hope this help otherwise let me know.
  3. Kendo UI is VS 2017 Ready
  4. Sameer
    Sameer avatar
    14 posts
    Member since:
    Mar 2012

    Posted 09 Oct 2012 Link to this post

    Hi,

    Thanks for your reply.

    I had gone through the blog.Actually my problem is just i am having checkboxes i.e not maintained in the database.
    The best example which i need is given in this link(http://jsfiddle.net/jkTU4/109/)

    I have tried it out but it is not working in my local system. I need after selecting data in different pages I am having a save button and i have to save the data in the database for the rows which are checked.
    The check box is used only for selection but not saving data.
    I need to save the selection in the grid. Please help me

    Regards,
    Sam.
  5. OnaBai
    OnaBai avatar
    55 posts
    Member since:
    Aug 2012

    Posted 09 Oct 2012 Link to this post

    Hi Sam,

    Are you saving the selected boxes?
    In the fiddle that you mention there is code to detect clicks on the checkbox and then save not loosing during pagination. Do you have something similar? The question is that the checkbox is not part of your model and then you need to bound events (click, change, dataBound,...) to manage it.
  6. Sameer
    Sameer avatar
    14 posts
    Member since:
    Mar 2012

    Posted 09 Oct 2012 Link to this post

    HI,

    Thanks for your help.

    I am not saving the selected check boxes. I have attached an example in which the functionality is written as of in the fiddle example but i am not able to get the pagination.

    Please go through the example and help me to save the data which is selected in different pages when clicked on SAVE button.
    regards,
    Sam.
Back to Top
Kendo UI is VS 2017 Ready