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

Issue with UpdatedControls

3 Answers 71 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Mak
Top achievements
Rank 1
Mak asked on 07 Jan 2013, 10:11 AM
Hi there,

In a section of our page, we have three radGrids, each of which control the visibility of a asp:button (for example if rows.count > 0). Now that we are rolling out AJAXified grids across our application, we have reached this page and noticed that there are a number of issues introduced once we apply AJAX on these grids.

We have a function that is called in pageLoad and ItemCreated (for the affected grids) which determines the visibility of the above button. However we have noticed that once the grid is AJAXified, and the button is added as an UpdatedControl of the grid, the visibility of the button is not affected by this function, even if we removed all items in the grid.

However, if I were to reload the page after removing all items in the grid, the button would be hidden as the above visibility function would return a False, but ideally we would like this to be done during the AJAX request of the grid.

Is there something that we are missing here??

Hope you can help

Regards

A.

<telerik:AjaxSetting AjaxControlID="radFScore">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="radFScore" LoadingPanelID="RadAjaxLoadingPanel1" />
    </UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="radFScore">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="btnPreview"/>
    </UpdatedControls>
</telerik:AjaxSetting>

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 10 Jan 2013, 01:58 PM
Hello Ahmed,

Note that adding invisible controls into the RadAjaxManager Ajax settings is not a supported scenario and may cause various issues on the page. Therefore I would suggest you to wrap the controls which visibility needs to be modified into always visible containers (asp panels for example) and add those containers to the RadAjaxSettings. Give this a try and let me know if it works for you.

This approach is described in the help topic below:
http://www.telerik.com/help/aspnet-ajax/ajax-tips-and-tricks.html

Kind regards,
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.
0
Mak
Top achievements
Rank 1
answered on 11 Jan 2013, 11:42 AM
Hello,

that was really helpful as it's taken us forward in respect of the visibility of the buttons but now the inline functionality of the grids gives us the attached errors in the Telerik.web.ui assembly (which then goes on to hide the grid)

Hope you can advise?

A.
0
Maria Ilieva
Telerik team
answered on 15 Jan 2013, 11:16 AM
Hello Ahmed,

The provided error's screenshot does not give enough information to locally isolate the root cause of the issue. Therefore it will be best if you could post your page markup as well as the related code behind so we could further investigate the issue on our side and do our best to provide proper solution..

Regards,
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
Ajax
Asked by
Mak
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Mak
Top achievements
Rank 1
Share this question
or