Open a grid in edit mode from radscheduler

3 posts, 0 answers
  1. chris
    chris avatar
    11 posts
    Member since:
    Sep 2007

    Posted 28 Aug 2009 Link to this post


    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")
    RadPane 4.Collapsed=False

    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

  2. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 31 Aug 2009 Link to this post

    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:

    Best wishes,
    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.
  3. BRK
    BRK avatar
    35 posts
    Member since:
    Jun 2012

    Posted 24 Feb 2011 Link to this post

    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,
Back to Top