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

EditFormType Template - Show Details, then put into edit mode

9 Answers 195 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 12 May 2008, 09:32 PM
I am wondering if there is a way to click on an icon to show the details of a grid row in read only mode much like it would when you click the edit icon to edit a row when EditMode = "EditForms" when the info is displayed below the grid row.  Then, once the details are displayed (read-only) I want to hit an Edit button and put the form in edit mode to edit the information.

The reason being, I want to show a few coulmns in the grid row, hit a details button in the grid row and display all the detail information in a form below the grid row (read-only).  Then from the details form (read-only), put it in an edit mode by pressing a button if the user decides the info needs to be updated.

Thanks,
S~

9 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 13 May 2008, 08:35 AM
Hi Steve,

I have created for you small example to illustrate you how to achieve this. Please find attached project and don't hesitate to contact us if you have other questions.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Steve
Top achievements
Rank 1
answered on 13 May 2008, 02:40 PM
I would like to have the details below the grid row that is being edited, not at the bottom of the grid itself.  I'm not clear why you have 2 grids, can this be done in 1 grid? 

Thx
0
Vlad
Telerik team
answered on 13 May 2008, 02:44 PM
Hello Steve,

Sorry it seems I misunderstood your request - actually you can use the same approach with a single grid.

Regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Steve
Top achievements
Rank 1
answered on 13 May 2008, 03:07 PM
Thanks for the response, I am currently working on this.

I understand the panels in the template, I am having difficulty with which event to capture to hide/show the approprate panel for the appropriate row.  I am trying to put an icon in the row that will display the details, then in the details hit an edit button to show the other panel.

Thanks
0
Steve
Top achievements
Rank 1
answered on 13 May 2008, 03:45 PM
Can you use UserControlName property in the EditFormSettings to identify the appropriate edit form for the grid?  I have several edit forms and I am trying to hide show the appropriate panel in the ItemCreated event but am getting a null error. 

Thanks
0
Steve
Top achievements
Rank 1
answered on 13 May 2008, 07:56 PM
I somewhat got this working today, but the form is having issues with the Add.  I would like to get this to work in Edit, Add, Display Details mode.  I would like the edit form to appear below the row item, the add to be below the link.   I have problems with the edit form not going away when the add link is clicked causing issues.

Is there a way to get the Add form to not display when you hit Edit?  It is really the same form, so I'm not sure how this can happen.

Thanks

0
Shinu
Top achievements
Rank 2
answered on 14 May 2008, 05:50 AM
Hi Steve,

Try the following code snippet to prevent the opening of the Insert form when the Grid is in edit mode.

CS:
 protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) 
     { 
         if ((e.Item is GridEditableItem) && (e.Item.IsInEditMode)) 
         { 
             RadGrid1.MasterTableView.IsItemInserted = false
         } 
 
    } 


Thanks
Shinu.
0
Jane
Top achievements
Rank 1
answered on 08 Sep 2008, 04:14 PM
Hi Steve,
I was hoping to find out if you eventually got the results you were looking for. We have the exact same design goal and have been struggling a bit to get there.
Thank you,
Jane
0
Gregg
Top achievements
Rank 1
answered on 04 Mar 2009, 10:28 PM
Can Telerik create a web demo that illustrates Steve's need? I have the same requirement. Telerik has 4 demos

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/extractvalues/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/multicolumneditform/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/templateformupdate/defaultcs.aspx

all of which show/hide details only when the user clicks Edit

It would be great if we could all refer to a demo which gives user the option to show/hide details in read-only mode OR choose edit mode and see the details too. 
Tags
Grid
Asked by
Steve
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Steve
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Jane
Top achievements
Rank 1
Gregg
Top achievements
Rank 1
Share this question
or