Hi Kendo Team:
If you set createAt:"bottom" in your editing.html sample, you can add rows and they are positioned at the bottom of the grid. But when you add a row that makes kendogrid to add a new page, it doesn't jump to this new page, so you are adding a new row at the end of the penultimate page.
How can I make kendoGrid changes automatically to the next page when adding a new "pageSize +1" row.
Kind regards.
Oscar.
If you set createAt:"bottom" in your editing.html sample, you can add rows and they are positioned at the bottom of the grid. But when you add a row that makes kendogrid to add a new page, it doesn't jump to this new page, so you are adding a new row at the end of the penultimate page.
How can I make kendoGrid changes automatically to the next page when adding a new "pageSize +1" row.
Kind regards.
Oscar.
11 Answers, 1 is accepted
0
Hello Oscar,
Isn't what you described the default behavior of the Grid? The only difference is that not the newest record is moved to the new page but the last record that was there before the record was created.
I do not think that behavior can be changed.
Here it is in action:
http://jsbin.com/ojufoj/3/edit
Kind Regards,
Petur Subev
Telerik
Isn't what you described the default behavior of the Grid? The only difference is that not the newest record is moved to the new page but the last record that was there before the record was created.
I do not think that behavior can be changed.
Here it is in action:
http://jsbin.com/ojufoj/3/edit
Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

Oscar
Top achievements
Rank 1
answered on 29 Jul 2013, 08:31 AM
Hi Petur,
And.. What's the purpose of this behavior?
If you want to place an order, you enter the first line, then second line and so on. When the first page is full, you continue adding rows on the second page. Isn't this a natural behavior? Is there any way to move to a new page and once there keep adding rows?
Thank you very much for your help.
And.. What's the purpose of this behavior?
If you want to place an order, you enter the first line, then second line and so on. When the first page is full, you continue adding rows on the second page. Isn't this a natural behavior? Is there any way to move to a new page and once there keep adding rows?
Thank you very much for your help.
0
Hello again Oscar,
Basically the dataSource always keep the current page,sort,filter,grouping applied no matter if new records are added or removed.
If you want you can use the events of the dataSource to change this behavior. For example with the help of the change event you can use the methods of the dataSource to page to the next page.
Here is an example that should give you the idea:
http://jsbin.com/ojufoj/8/edit
I hope it helps.
Regards,
Petur Subev
Telerik
Basically the dataSource always keep the current page,sort,filter,grouping applied no matter if new records are added or removed.
If you want you can use the events of the dataSource to change this behavior. For example with the help of the change event you can use the methods of the dataSource to page to the next page.
Here is an example that should give you the idea:
http://jsbin.com/ojufoj/8/edit
I hope it helps.
Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

Oscar
Top achievements
Rank 1
answered on 31 Jul 2013, 04:24 PM
Hello Petur
Thanks for providing an example, but I'm afraid it doesn't work as needed.
In this example, http://jsbin.com/eradat/1/edit
the grid has a pageSize=5 and it's preloaded with 9 records.
You can go to the last page and click to add a new record. That works. But when you click again to add another row, the event change() gets an e.index that does not correspond with the real last row added. It pages to the next page, but it's showing a record that is not the real last record added and the row is not in edit mode.
You can check that line ten is twice: one in page 2 and another one more in page 3.
Do you have any workaround?
I would appreciate any help.
Thanks for providing an example, but I'm afraid it doesn't work as needed.
In this example, http://jsbin.com/eradat/1/edit
the grid has a pageSize=5 and it's preloaded with 9 records.
You can go to the last page and click to add a new record. That works. But when you click again to add another row, the event change() gets an e.index that does not correspond with the real last row added. It pages to the next page, but it's showing a record that is not the real last record added and the row is not in edit mode.
You can check that line ten is twice: one in page 2 and another one more in page 3.
Do you have any workaround?
I would appreciate any help.
0
Hello Oscar,
I am afraid I cannot offer you a work-around.
With the sample I just wanted to point out that you can page to the next page after adding new record - not adding the new record to the next page.
Kind Regards,
Petur Subev
Telerik
I am afraid I cannot offer you a work-around.
With the sample I just wanted to point out that you can page to the next page after adding new record - not adding the new record to the next page.
Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

Oscar
Top achievements
Rank 1
answered on 30 Aug 2013, 11:30 AM
Hello Petur,
Is there any method like insertAfter or insertBefore for KendoGrid that makes possible to add rows wherever the user wishes? Kendo TreeView does have these methods. I think these methods could help add rows in the proper position.
Kind regards.
Oscar.
Is there any method like insertAfter or insertBefore for KendoGrid that makes possible to add rows wherever the user wishes? Kendo TreeView does have these methods. I think these methods could help add rows in the proper position.
Kind regards.
Oscar.
0
Hello Oscar,
I do not think there is feasible work-around which you can use for your case.
Anyway to the question - you can add new items to the Grid also with the methods of the dataSource (however keep in mind this wont put the Grid into edit mode).
Kind Regards,
Petur Subev
Telerik
I do not think there is feasible work-around which you can use for your case.
Anyway to the question - you can add new items to the Grid also with the methods of the dataSource (however keep in mind this wont put the Grid into edit mode).
Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

Oscar
Top achievements
Rank 1
answered on 03 Sep 2013, 03:45 PM
Hello Petur,
So... What's the next step? Do you have any date to fix this? Surely, your response will be "Well, this behavior is by design" but I can't say this to my customers. My customers would tell me: "For example, when you are writing a document and it doesn't fit any more lines on a page, the editor shows a new page so that you can keep on adding lines to your document. Isn't it?"
How can I ask for this feaure for the next Q3 2013 release? Anyone else has this problem?
Kind regards,
Oscar.
So... What's the next step? Do you have any date to fix this? Surely, your response will be "Well, this behavior is by design" but I can't say this to my customers. My customers would tell me: "For example, when you are writing a document and it doesn't fit any more lines on a page, the editor shows a new page so that you can keep on adding lines to your document. Isn't it?"
How can I ask for this feaure for the next Q3 2013 release? Anyone else has this problem?
Kind regards,
Oscar.
0
Hello Oscar,
Since there is no feature that you can use and you are the first one who asks for it I can suggest you to share an idea on the official feedback portal where more people can vote for its implementation.
http://feedback.kendoui.com/
Kind Regards,
Petur Subev
Telerik
Since there is no feature that you can use and you are the first one who asks for it I can suggest you to share an idea on the official feedback portal where more people can vote for its implementation.
http://feedback.kendoui.com/
Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

Oscar
Top achievements
Rank 1
answered on 04 Sep 2013, 12:38 PM
Hello Petur:
Thank you very much for your help.
Kind regards.
Oscar
Thank you very much for your help.
Kind regards.
Oscar
0

Raymond
Top achievements
Rank 1
answered on 04 Oct 2013, 06:49 PM
I'd like to add another voice to the need for the capability of the grid to "goto" a newly created row.
I'm using a grid to create a user table, the grid has custom buttons to allow editing of features related to the user. The grid is (locally) sortable & paging.
If I'm on page 1 and add user "Zelda Zimmy" it's added to the bottom of the table correctly, but I'm still looking at "Alan Anderson". It would be nice if there were some way to update the page and/or scroll position to bring new records into view when they've been created
I'm using a grid to create a user table, the grid has custom buttons to allow editing of features related to the user. The grid is (locally) sortable & paging.
If I'm on page 1 and add user "Zelda Zimmy" it's added to the bottom of the table correctly, but I'm still looking at "Alan Anderson". It would be nice if there were some way to update the page and/or scroll position to bring new records into view when they've been created