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

[Solved] Radgrid inside radpanel

1 Answer 197 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ayesha
Top achievements
Rank 1
Ayesha asked on 14 Aug 2009, 01:41 PM

Hi,

I've a  a radgrid inside a radpanelItem

     <telerik:RadPanelItem Value="RadPanelRecipientGroup" runat="server">
                                              
                                       <ItemTemplate>
                                      
                                          <telerik:RadGrid ID="m_radRecipientGroupGrid" runat="server"
                                                BorderStyle="Solid"
                                                BorderWidth="1px"
                                                CellPadding="0"  
                                                AllowMultiRowSelection="True"
                                                HorizontalAlign="Left"
                                                GridLines="Horizontal">
                               
                               <MasterTableView AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true"
                                   PagerStyle-Mode="NextPrevNumericAndAdvanced" PageSize="10">
                            
                   
                                <Columns>
                                  <telerik:GridClientSelectColumn Reorderable="False"     UniqueName="ClientRecipGroupColumn">
                                           <HeaderStyle Width="20px">
                                           </HeaderStyle>
                                          
                                  </telerik:GridClientSelectColumn>
                               
                                </Columns>
                         
                               </MasterTableView>
                                 <ClientSettings>
                                    <Scrolling  AllowScroll="True"
                                                UseStaticHeaders="True" />
                                    <Selecting  AllowRowSelect="true"/>
                                
                                 </ClientSettings>
                                         </telerik:RadGrid>
                                       </ItemTemplate>
                                    </telerik:RadPanelItem>

 

How do I invok the radgrid's needdatasource property since I'm not getting this radgrid's name in Properties window.
Pls do help with code.

thanks,
ZR

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 17 Aug 2009, 04:25 AM
Hi Zaheka,

I guess you are not able to view the RadGrid which is placed inside the PanelBarItem as ItemTemplate in order to attach OnNeedDataSource eent in design view.

The Template Design Surface lets you design/configure templates for the items that appear in the panel bar. There are two ways to display the Template Design Surface:

  • Choose Edit Templates from the RadPanelBar Smart Tag
  • Choose Edit Template from the RadPanelBar context menu and select the type of template you want to edit.

Go through the following links which will get you better idea about how to accomplish this.
Template Design Surface
Adding Templates

Thanks,
Princy.

Tags
Grid
Asked by
Ayesha
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or