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

SHow nestedView template in radgrid wrapped in user control

1 Answer 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tanya
Top achievements
Rank 1
Tanya asked on 17 Jun 2014, 06:45 PM
I've got radgrid control which is inside a user ascx file. I'm doing this because I should use radgrid in mvc(so there is no other way - is should wrap it in user control)3

So can someone help me - is it possible to show the nesteditemtemplate because when I click the button infront of each row nothing happens



<%@ Control Language="C#" AutoEventWireup="true" Inherits="MvcBeaWeb.ProductsShowTile" CodeFile="ProductsShowTile.ascx.cs" %>
<%@ Import Namespace="MvcBeaWeb" %>
<%@ Register Assembly="Telerik.Web.UI" TagPrefix="telerik" Namespace="Telerik.Web.UI" %>
<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>


<form id="form_TilesShow" runat="server">

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" >
</telerik:RadScriptManager>
  
     <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanelTilesShow" LoadingPanelID="RadAjaxLoadingPanelTilesShow"
         HorizontalAlign="Center"   Width="472px" >
         <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="radGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
         <div class="mainHolder">
                 <div class="qsf-ib tileListHolder">        
                      <telerik:RadGrid runat="server" OnPreRender="RadGrid1_PreRender" OnItemCommand="RadGrid1_ItemCommand" OnNeedDataSource="RadGrid1_NeedDataSource" ID="RadGrid1" AutoGenerateColumns="false" AllowCustomPaging="true" AllowPaging="true" PageSize="3" OnPageIndexChanged="RadGrid1_PageIndexChanged1">                        <PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom"  PageSizeControlType="RadComboBox" ></PagerStyle>
                             <MasterTableView>
                                <Columns>
                                      <telerik:GridBoundColumn DataField="ArticlegroupID"  UniqueName="101">                           
                                      </telerik:GridBoundColumn>
                                 
                                       <telerik:GridBoundColumn DataField="SpecialWord" HeaderText="ProductDescription" UniqueName="200" >
                                       </telerik:GridBoundColumn>  
                                       <telerik:GridImageColumn DataType="System.String" DataImageUrlFields="ImageFile"  UniqueName="500"
                                            AlternateText="Customer image" 
                                            ImageAlign="Middle" ImageHeight="100px" ImageWidth="82px" HeaderText="Image Column">
                                       </telerik:GridImageColumn>   
                                </Columns>
                               

                            <NestedViewTemplate>

                        <div class="carBackground">

                            <div style="float: left; padding-left: 40px">

                                <asp:Image ID="CarImage" runat="server" AlternateText="Car Image" ImageUrl='Images/logoIcon.jpg' />

                            </div>

                            <div style="float: right; width: 50%">

                                <div class="carTitle">

                                   

                                </div>

                              </NestedViewTemplate>
                             </MasterTableView>
                       
                          

                      </telerik:RadGrid>    
                                                                   
                 </div>
         </div>
     </telerik:RadAjaxPanel> 
    
</form>

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 18 Jun 2014, 05:16 AM
Hi Tanya,

I am not sure about your requirement. Please take a look into the following suggestions.

           Please note that using RadAjaxManager simultaneously with RadAjaxPanel or UpdatePanel ( or implementing multiple wrapped RadAjaxPanels) is not a supported scenario and we highly recommend to avoid such implementation. Please either use just the manager to update your controls replacing the RadAjaxPanel with a regular asp:Panel, or use the RadAjaxPanel alone to wrap your page.


Furthermore, if you are using a complex scenario like WebUserControls or Master/ContentPages, we recommend you to place RadAjaxManager instance on the main/master page and add a proxy control to the user control/content page as described in the following help topic:

RadAjax and MasterPage


Thanks,
Princy.
Tags
Grid
Asked by
Tanya
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or