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

RadGrid with RadAjaxManager

3 Answers 725 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pams
Top achievements
Rank 1
Pams asked on 24 Oct 2011, 09:46 PM
Hello,
We are using RadGrid for inserting/updating/deleting the employee address details.
When we select insert button, edit button, Insert/cancel/update buttons, the whole page is refreshing.
We tried to put Radgrid inside RadAjaxmanger. Then Insert/Cancel/Update buttons inside edit form are not working .
Could you please tell how to put Radgrid inside RadAjaxManager.


Thanks,
AV

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 Oct 2011, 04:57 AM
Hello Pams,

You can make sure that the AjaxControlID of RadAjaxManager is set as ID of RadGrid. You can take a look into the following demo.
Grid / Automatic Operations

Thanks,
Princy.
0
Pams
Top achievements
Rank 1
answered on 08 Nov 2011, 10:40 PM
Hi,
Thank you for your reply.
I have one more question.
 AllowAutomaticInserts=true and AllowAutomaticUpdates=true and AllowAutomaticDeletes=true
If we put these, will the page refresh problem is solved. (I think I read some where)
We are using Item COmmand event to save , update or delete record. 
Can u explain which way is good to do partial refresh in Radgrid


Thanks,
AV
0
Tsvetina
Telerik team
answered on 11 Nov 2011, 03:42 PM
Hello Pams,

The way you ajaxify the grid would rather depend on its interaction with other controls instead of its own features. So, if the grid is not going to be updated by other controls in the page, you can put it inside a RadAjaxPanel.
If other controls would also refresh RadGrid with partial updates, a RadAjaxManager with the respective settings would be a better choice. If you go with a RadAjaxManager, in your scenario you need an AjaxSetting where RadGrid is both an initiator and updated control:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGrid1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>


Best wishes,
Tsvetina
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
Tags
Grid
Asked by
Pams
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Pams
Top achievements
Rank 1
Tsvetina
Telerik team
Share this question
or