Vijaianand
Top achievements
Rank 1
Vijaianand
asked on 27 Jul 2012, 04:17 PM
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.
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.
7 Answers, 1 is accepted
0
Casey
Top achievements
Rank 1
answered on 27 Jul 2012, 06:27 PM
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
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
>
0
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
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.
0
Vijaianand
Top achievements
Rank 1
answered on 01 Aug 2012, 02:35 PM
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.
0
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
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.
0
Ganapathy
Top achievements
Rank 1
answered on 28 Mar 2013, 04:59 AM
Hello,
How to use both InPlace and PopUp edit mode in same grid?
Thank you
Regards
Ganapathy
How to use both InPlace and PopUp edit mode in same grid?
Thank you
Regards
Ganapathy
0
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:
I hope this helps.
Regards,
Maria Ilieva
the Telerik team
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.
0
Ganapathy
Top achievements
Rank 1
answered on 03 Apr 2013, 04:45 PM
Hi Maria Ilieva ,
Thank You :)
Thank You
Regards
Ganapathy
Thank You :)
Thank You
Regards
Ganapathy