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

Open a grid in edit mode from radscheduler

2 Answers 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
chris
Top achievements
Rank 2
chris asked on 28 Aug 2009, 04:04 PM
Sirs,

I currently have a splitter with a sliding zone with one pane for instructions, a second pane (id = RadPane3)with a rad scheduler looking at a sql table named diary. I have a need to not only show but edit the contact details for the visiting part. I use a grid in a third pane (id=RadPane4) for this - the datasource uses the appointment attribute client ref to retrieve data from the database.

The show part is easy enough by declaring custom attributes linked to the select query of the datasource.
As the contact details are held in a different table to the diary I have diabled the "start editing in advance form" option and tied the onappointmentupdated command as follows

Protected Sub Radscheduler1.AppointmentUpdate (ByVal sender As Object, ByVal e as Telerik.Web,UI.AppointmentUpdateEventArgs) Handles Radschedule1AppointymentUpdate

HiddenField.Value = e.appointment.Attributes("ClientRef")
Radgrid1.Databind
RadPane3.Collapsed=True
RadPane3.Visible=False
RadPane 4.Collapsed=False
RadPane4.Visible=True

end sub

Is there a way that I can insert into here a command that will automatically open RadGrid1 in edit mode without the user having to click the edit button ?

many thanks in advanced

Padster

2 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 31 Aug 2009, 02:11 PM
Hello chris,

If you need to put grid items in edit mode without additionally rebinding the grid you may use EditIndexes collection before grid is bound. Later, when the grid is bound it will take into account the entries in this collection and will create them in edit mode. More information about this is available below:

http://www.telerik.com/help/aspnet-ajax/grdputallitemsineditmodenoadditionalrebind.html

Best wishes,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
BRK
Top achievements
Rank 1
answered on 24 Feb 2011, 08:51 AM
Hi Chris,

Thanks for your link to open the grid in Edit state. But it is opening in vertical state like Datagrid I need all the fields editable in a Radgrid in horizontal way. Can you please help me on achieving this. Also attached the Screen shot please check.

Thanking You,
BRK
Tags
Grid
Asked by
chris
Top achievements
Rank 2
Answers by
Svetlina Anati
Telerik team
BRK
Top achievements
Rank 1
Share this question
or