How to use both InPlace and PopUp edit mode in same grid?

8 posts, 0 answers
  1. Vijaianand
    Vijaianand avatar
    82 posts
    Member since:
    Jul 2012

    Posted 27 Jul 2012 Link to this post

    Is it possible to have both edit modes from the grid working together? Here is the scenario. I have Radgrid which is opened in inplace editor with limited columns with edit button at the end. If user clicks the edit button, it should popup the edit form with more columns.

    I have 2 radgrids currently doing these things separately in separate pages and I am trying to merge this functionality for users to have one page to edit. I am having trouble doing it. Any work around would be much appreciated? I was thinking of doing radwindow but then I cannot use RadGrid inbuilt insert/edit functionalities. 
  2. Casey
    Casey avatar
    299 posts
    Member since:
    Jul 2009

    Posted 27 Jul 2012 Link to this post

    Hi Vijaianand,

    Have you tried achieving this using the EditForms as the edit mode? You could then specify the layout you desire in the FormTemplate. I'd recommend taking a look at the following demo: Edit Form Types - Form Template

    You could have a hidden panel or div containing the additional fields, and if the user clicks on a link, the additional fields are displayed.

    I hope this helps!
    Casey

    <EditFormSettings EditFormType="Template">
                   <FormTemplate>
                      <asp:Panel ID="pnlMain" runat="server">
                           <table width="100%"
                                
                           </table>
                       </asp:Panel>
                       <asp:Panel ID="pnlAdditional" runat="server" Visible="false">
                           <table>
                            
                           </table>
                        </asp:Panel>
                   </FormTemplate>
               </EditFormSettings>


  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 01 Aug 2012 Link to this post

    Hi Vijaianand,

    Please review the answered provided in the support ticket you have opened on the same matter.
    I hope the provided suggestion help.


    All the best,
    Maria Ilieva
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  5. Vijaianand
    Vijaianand avatar
    82 posts
    Member since:
    Jul 2012

    Posted 01 Aug 2012 Link to this post

    I know that option already but I don't take pain in wiring lot of code to show the popup for edit form. I wanted to use the inbuilt edit form functionality from Radgrid. THanks though.
  6. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 02 Aug 2012 Link to this post

    Hello Vijaianand,

    Unfortunately the required functionality could not be achieved with the inbuilt RadGrid editing mechanism.Currently the provided approach is the only possibility to mix the edit modes in the same RadGrid control.


    All the best,
    Maria Ilieva
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  7. Ganapathy
    Ganapathy avatar
    12 posts
    Member since:
    Aug 2012

    Posted 27 Mar 2013 Link to this post

    Hello,

    How to use both InPlace and PopUp edit mode in same grid?

    Thank you
    Regards
    Ganapathy
  8. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 01 Apr 2013 Link to this post

    Hi Ganapathy,

    The functionality you need to achieve is actually not supported by the RadGrid control out of the box. It would not be possible to have two different edit forms with different items in them. Possible option in your case would be to simply use two ButtonColumn with different command names and in the RadGrid ItemCommand event change the edit mode based on the command name of the columns.

    In case you need to have one mode for the insert form and the another for the update form you could use the following:
    protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
    {
            if (e.CommandName == RadGrid.EditCommandName)
            {
                RadGrid1.MasterTableView.EditMode = GridEditMode.InPlace;
            }
            if (e.CommandName == RadGrid.InitInsertCommandName)
            {
                RadGrid1.MasterTableView.EditMode = GridEditMode.PopUp;
            }
    }

    I hope this helps.

    Regards,
    Maria Ilieva
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  9. Ganapathy
    Ganapathy avatar
    12 posts
    Member since:
    Aug 2012

    Posted 03 Apr 2013 Link to this post

    Hi Maria Ilieva ,

    Thank You :)

    Thank You
    Regards
    Ganapathy
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017