Cannot Find RadGrid when in a RadPanelBar

3 posts, 1 answers
  1. IT
    IT avatar
    5 posts
    Member since:
    May 2008

    Posted 15 Sep Link to this post

    I am having difficulty with the Persistence Framework.  My application has a master page and the RadGrid is in a content page.  When the RadGrid is at the root of the page (i.e. just under asp:Content), I can save/load the grid settings with no issue whatsoever.  But that's not where I want my RadGrid.  I want it in a RadPanelBar.  And when I have it there, the Persistence Framework says it cannot find the control. 

    Here is some simplified code.  This first part works:

    <telerik:RadPersistenceManagerProxy
            ID="m_PersistenceManagerProxy"
            UniqueKey="ClaimswebFinancialsPayables"
            runat="server">       
            <PersistenceSettings>
                <telerik:PersistenceSetting ControlID="m_rgPayables" />
            </PersistenceSettings>
        </telerik:RadPersistenceManagerProxy>

     <telerik:RadGrid
                ID="m_rgPayables"
                runat="server"

    ... et cetera.  But when I put the RadGrid in a RadPanelBar, the Persistence Manager says that it cannot find the control.  Specifically if I put the RadGrid inside the ContentTemplate of a RadPanelItem. 

    Any ideas?  I feel like I'm so close.

     

     

  2. Answer
    Eyup
    Admin
    Eyup avatar
    3331 posts

    Posted 20 Sep Link to this post

    Hi,

    The grid and the persistence framework manager should be in the same NamingContainer. You can use these following options to resolve this issue:

    1. Place the persistence manager in the same template as the grid.

    2. Or set the ControlID of the manager to be the UniqueID of the grid, not its direct ID.

    I hope this will prove helpful.

    Regards,
    Eyup
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. IT
    IT avatar
    5 posts
    Member since:
    May 2008

    Posted 22 Sep in reply to Eyup Link to this post

    Thank you very much.  Putting the persistence manager in the content template did the trick! 
Back to Top