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

[Solved] WebuserControl Edit form RadGrid

4 Answers 226 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Balamurali Venkatesan
Top achievements
Rank 1
Balamurali Venkatesan asked on 30 Nov 2009, 03:22 PM
Hi,

We are using a webusercontrol as editform by setting the editformsettings as websuercontrol.
The Radgrid is inside a RadAjaxPanel.When i click the edit button the web usercontrol gets opened and after clicking the update command,the ItemCommand on the parent page gets fired and the record gets updated and the web user control closes.

We also do some validations before the actual save operation.The web user control actually hides itself and reshows during validation.So we thought of putting the user control inside a RadJaxmanagerProxy.Thi solved the flickerring issue. but the problem is it is not closing the user control after the update.

Please provide your thoghts on this

Thanks and Regards
V.Balamurali

4 Answers, 1 is accepted

Sort by
0
Balamurali Venkatesan
Top achievements
Rank 1
answered on 02 Dec 2009, 01:04 PM
Can we get any help on this question
0
Princy
Top achievements
Rank 2
answered on 03 Dec 2009, 06:55 AM
Hello Balamurali,

The EditFormUserControl should automatically close after a successful update. I'm not sure, as to what would be preventing this at your end. Check with the AjaxSettings for your RadAjaxManagerProxy. You can also try the following code to explicitly close the EditForm in the UpdateCommand of the grid:
c#:
 protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) 
    { 
        if (e.CommandName == "Update"
        { 
            // after updating to the database 
            RadGrid1.MasterTableView.ClearEditItems(); 
        } 
    } 

Hope this helps..
Princy.
0
Balamurali Venkatesan
Top achievements
Rank 1
answered on 04 Dec 2009, 04:01 PM
Hi,

Thanks for your response. We have already tried all these options. we have set e.cancelled=true,e.items.edit=false..still the usercontrol edit form is not getting closed.If you remove the ajax settings its working fine.
0
Yavor
Telerik team
answered on 10 Dec 2009, 07:54 AM
Hi Balamurali,

 If the suggestions supplied thus far are not sufficient to eliminate the problem, you can open a formal support ticket, and send a small working project, demonstrating the issue at hand, for further review and testing.


Kind regards,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Balamurali Venkatesan
Top achievements
Rank 1
Answers by
Balamurali Venkatesan
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Yavor
Telerik team
Share this question
or