Radgrid in-place editing scrolls page to top

1 Answer 19 Views
Grid
Karl
Top achievements
Rank 1
Karl asked on 08 Dec 2021, 02:18 PM

Hello!

I want to be able to edit a radgrid cell in place. When doing as the documentation suggests Telerik Web Forms In Place - RadGrid | Telerik UI for ASP.NET AJAX I encounter an issue. When editing a field and your at the bottom of the page it resets and scrolls back to the top of the page.

Is there any way to do this without updating the page or have it stay on the page where you want to edit?

 

Thanks in advance

Karl
Top achievements
Rank 1
commented on 08 Dec 2021, 02:57 PM

I just realised you can't really get away from this.

Possible to edit cell without having to push a button perhaps?

1 Answer, 1 is accepted

Sort by
0
Doncho
Telerik team
answered on 13 Dec 2021, 12:43 PM

Hi Karl,

The InPlace edit mode of RadGrid is a server-side editing mode and it requires a postback to process the Grid commands. Hence all Grid commands trigger a postback, hence reloading the page.

To prevent the full postback of the page and update just the content of the control you can Ajaxify the RadGrid so all of its features are performed via ajax requests. Check out the Ajaxified RadGrid section in our documentation on the matter.

For your convenience, I have attached a sample project demonstrating this approach with the help of RadAjaxManager. Please give it a try and see if the same would for the current case (add the Telerik.Web.UI.dll in the bin folder to run the project). More useful information about Ajaxifying controls you can find in the Understanding AJAX Controls.

As an alternative, you can consider using the entirely client-side BatchEditing mode - Batch Editing demo. Please note that the Batch editing mode is the only client-side mode exposed by the RadGrid and it comes with its specifics and limitations. Check out RadGrid Batch Editing Templates and Specifics.

I hope you will find this information helpful.

Please let me know if any further questions come up.

Kind regards,
Doncho
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Karl
Top achievements
Rank 1
Answers by
Doncho
Telerik team
Share this question
or