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

RadGrid Popup Edit Window

9 Answers 235 Views
Grid
This is a migrated thread and some comments may be shown as answers.
William
Top achievements
Rank 1
William asked on 24 Jun 2011, 03:28 PM
Is it possible to open the RadGrid Popup Edit window manually? I would like to open it when clicking the update button so I can capture additional information from the user. 

9 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 25 Jun 2011, 06:01 AM
HI,

foreach (GridItem item in grdActionMenu.MasterTableView.GetItems(new GridItemType[] { GridItemType.Item, GridItemType.AlternatingItem }))
{
    GridDataItem dataitem = (GridDataItem)item;
    if(dataitem.GetDataKeyValues["ID"] == "1")
    {
        grdActionMenu.MasterTableView.Items[dataitem.ItemIndex].Edit = true;
    }
     
}
grdActionMenu.MasterTableView.Rebind();


If this is not your case, please elaborate the scenario.

Thanks,
Jayesh Goyani
0
William
Top achievements
Rank 1
answered on 28 Jun 2011, 04:04 PM
This just puts the item back into edit mode for me. What I need is to popup a window where the user can input additional information this is not in the original Grid. 


-- For example -- 

Let's say the user chose that they were female from a dropdown in the RadGrid, and then clicked the "update" button. A popup window would then appear where they could enter a list of stores they shopped at. In that window there would be a submit button so they could submit the additional information they added. Then all of that information including the information from the grid would be updated in the database. 
0
Tsvetina
Telerik team
answered on 01 Jul 2011, 01:13 PM
Hi William,

The RadGrid control builds its edit forms (including popup) only when it enters edit mode. In other words - the edit forms do not exist out of edit mode. You could consider opening a customized RadWindow to gather the information and then perform the update on the datasource manually without going through the grid command events.

Greetings,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
William
Top achievements
Rank 1
answered on 01 Jul 2011, 04:14 PM
Is it possible to write my own "Update" link for the RadGrid, like you can do with the "Edit" link?
0
Jayesh Goyani
Top achievements
Rank 2
answered on 02 Jul 2011, 05:05 PM
hi,

Please explain in detail.

Thanks,
Jayesh Goyani
0
Tsvetina
Telerik team
answered on 05 Jul 2011, 12:42 PM
Hello William,

I am also not sure what exactly you have in mind, so some clarification would help us give you a more specific answer. Where do you want the button to be situated and what do you want to happen when it is clicked?

Kind regards,
Tsvetina
the Telerik team
Register for the Q2 2011 What’s New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
0
William
Top achievements
Rank 1
answered on 05 Jul 2011, 01:57 PM
I am attaching images. I hope this makes it a bit more clear. I would like to use the existing update link on the RadGrid if possible.

Image 1 shows one row of the RadGrid. Image 2 shows what that row looks like after the "Edit" link is clicked. Image 3 shows a mock-up of what I would like to happen after the "Update" link is clicked. This popup would allow the user to add additional information to the update if they choose. This popup would only show if the status is set to "Transferred" at the time the "Update" link was clicked. 

I hope this makes more sense.
0
Tsvetina
Telerik team
answered on 08 Jul 2011, 12:23 PM
Hi William ,

You cannot modify the behavior of the autogenerated inplace editors. You could create a FormTemplate (which you can arrange in any way you want), add an Update button and open a RadWindow, similarly to the demo linked in my previous post. Is there anything that you have difficulty in implementing with such approach?

All the best,
Tsvetina
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
William
Top achievements
Rank 1
answered on 08 Jul 2011, 03:47 PM
I believe this form template will work for what I want. If I run into issues I'll create a more specific thread. Thank you for your help.
Tags
Grid
Asked by
William
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
William
Top achievements
Rank 1
Tsvetina
Telerik team
Share this question
or