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

Updated a grid after closing a radWindow and context menu not detecting my grid

2 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 25 May 2011, 08:50 PM
Hi

1-       I have a page that contains a grid bound with a sql DB. For adding row in the DB, I open a new radWindow (with radopen) that contains the form for adding a new row. The problem is, when I add the row, the sql DB is updated but not the grid. So, I tried to update my grid by doing a rebind when the radWindow is close, but I don't know how to detect when a radWindows is closed.
May someone help me ?

2- Like in this example, I use a context menu to add/edit/delete data from my grid. However, I add another context menu that appears when I clicked inside a radGrid, but not on a item. To do that, I set the target of the second context menu to the ID of the radGrid. When the page is first load, everything is fine. However, when I delete an item, the second context menu (the one that target the radGrid) doesn't appears. I make some test and it seem like the second context menu it doesn't call at all, like if it doesn't target the radGrid anymore.
Anyone have any ideas why it is doing such a strange thing ?   

Thank you
David

2 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 30 May 2011, 09:35 AM
Hello David,

Regarding your first question:
Please check out the following online example which demonstrates the desired functionality:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=grid

Regarding your second question:
Based on the supplied information, it is hard to determine what is causing the unwanted behavior at your end. Could you please post your aspx markup code with the related code behind.
Thus we will be able to gather more details about your scenario and provide you with more to-the-point answer.

Looking forward for your reply.

Greetings,
Radoslav
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
David
Top achievements
Rank 1
answered on 30 May 2011, 09:38 PM
Thank you for your answer.

Unfortunately, I currently working on another project, so I won't be able to check it out for a while. 
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
David
Top achievements
Rank 1
Share this question
or