Issue with UpdatedControls

4 posts, 0 answers
  1. Mak
    Mak avatar
    39 posts
    Member since:
    Oct 2008

    Posted 07 Jan 2013 Link to this post

    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>

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 10 Jan 2013 Link to this post

    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.
  3. Mak
    Mak avatar
    39 posts
    Member since:
    Oct 2008

    Posted 11 Jan 2013 Link to this post

    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.
  4. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 15 Jan 2013 Link to this post

    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.
Back to Top