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

[Solved] RadGrid - Web User Control Postbacks

1 Answer 138 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Atlas
Top achievements
Rank 1
Atlas asked on 24 Apr 2013, 02:58 PM
Hello all,

I have a radgrid with an edit form type of web user control. My user control has two combo boxes and a listbox. These combo box selections filter the items within the listbox. I have a RadAjaxManagerProxy within the user control as follows:

<telerik:RadAjaxManagerProxy ID="ctrlAjaxManager" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="cbLocations">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lbAvailableEmployees" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="cbOccupations">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lbAvailableEmployees" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
</telerik:RadAjaxManagerProxy>

These postbacks (selecting different combo box items; OnItemChecked) are causing the parent Grid (which resides in the web form) to refresh and fire the Grid's events: ItemCreated and PreRender. Is there any way to avoid having this occur, as it negatively affects performance in a significant way. Any help is greatly appreciated

1 Answer, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 29 Apr 2013, 07:31 AM
Hi Dean,

If I correctly understand your scenario the UserControl, you have provided markup is used as edit form for a RadGrid control. If this is the case the presented behavior is expected. In case update is performed in the UserControl the whole RadGrid control will also update and this could not be avoid.

All the best,
Maria Ilieva
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
Atlas
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or