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

Cannot Find RadGrid when in a RadPanelBar

2 Answers 61 Views
Persistence Framework
This is a migrated thread and some comments may be shown as answers.
IT
Top achievements
Rank 1
IT asked on 15 Sep 2017, 05:25 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 20 Sep 2017, 07:00 AM
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.
0
IT
Top achievements
Rank 1
answered on 22 Sep 2017, 03:13 PM
Thank you very much.  Putting the persistence manager in the content template did the trick! 
Tags
Persistence Framework
Asked by
IT
Top achievements
Rank 1
Answers by
Eyup
Telerik team
IT
Top achievements
Rank 1
Share this question
or