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

How to implement Ajax in RadGrid's EditForm?

1 Answer 68 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Hong
Top achievements
Rank 1
Hong asked on 19 Jan 2009, 09:06 AM
Hi Telerik,
I have a RadGrid with EditFormType="WebUserControl" .
In the webusercontrol, there is a button clicking which will update a textbox's text.

The problem is that when I click the button in the editform, it will reload the entire grid each time.
But the only important behavior I want is to make it no reloading the entire grid when clicking the button.
To reach the goad, I tried to add an AjaxManagerProxy into the web user control.
The code is as below:

<%

--There is code fragment in web user control EditForm.ascx--%>
<

telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">  

    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="btnSubmit">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="textCompanyName" /> 
                <telerik:AjaxUpdatedControl ControlID="textProjectName" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 

However, the RadAjaxManagerProxy seems not to work... When I click the button, it still reload the whold grid.

What should I do in this case?

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 22 Jan 2009, 07:18 AM
Hello Hong,

One possible approach in this case would be to add the ajax settings to the control dynamically. This would allow you to specify the controls which you need to have updated.
I hope this helps.

Best wishes,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Hong
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or