This is a migrated thread and some comments may be shown as answers.

InPlace mode complains

1 Answer 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
pirobox
Top achievements
Rank 1
pirobox asked on 16 Jul 2010, 04:09 PM
Hi,
    I was wondering whether there is a true InPlace editing in the RadGrid.
I explain: I've looked at your documentation and I've tried to set the EditMode="InPlace" and nothing happened.
Then I digged more on the subject and I found out that I should manage the double click event of the grid.
I copied the example I found in the documentation and it worked, but, sadly, I noticed it is performing a partial update of the page (don't like).
Then I looked in your online examples and found this:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/clienteditbatchupdates/defaultcs.aspx
Perfect: it is not performing partial updates, but then I look at the page code and I see two hundred lines of javascript codes where you on the basis of the column name extract the info necessary to update the UI.

The question is: is all of this necessary? Is there not any built in way (without writing tons of JS or performing postbacks) to perform in place editing?

Best regards, Andrea Pirola

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 21 Jul 2010, 02:51 PM
Hello andrea,

Indeed, you can use the InPlace editing with full postbacks and codelessly. For that purpose you need to set the EditMode property of the MasterTableView to InPlace and to use the auto-generated edit form of the grid, e.g. without defining FormTemplate or using WebUserControl for the edit form of the grid.
Then you can choose either to bing the grid to a DataSource control and configure it for automatic CRUD operations. Or handle the database updates in code-behind.

I suggest that you check out this online demo for more information. At top of the demo you need to select the "In-line editing mode" radio button. You can look at its code and see that the gird there uses automatic CRUD operations and there is no code in the cs/vb files of the demo.

Best wishes,
Iana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
pirobox
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or