Find Control RadTabstrip Inside Radfilter

3 posts, 1 answers
  1. mohamed
    mohamed avatar
    311 posts
    Member since:
    Mar 2011

    Posted 15 Jun 2012 Link to this post


    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" OnTabClick="RadTabStrip1_TabClick"
                                       AutoPostBack="True" MultiPageID="RadMultiPage1" Orientation="VerticalLeft" SelectedIndex="1">
                                       <Tabs>
                                           <telerik:RadTab Value="Condition" Text="<%$ Code:Resources.View.mnuConditions %>"
                                               Selected="True" />
                                           <telerik:RadTab Value="Preview" Text="<%$ Code:Resources.View.mnuPreview %>" />
                                           <telerik:RadTab Value="Permission" Text="<%$ Code:Resources.View.mnuPermission %>" />
                                       </Tabs>
                                   </telerik:RadTabStrip>
     
    <telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0" title="">
                                       <telerik:RadPageView runat="server" ID="PageView_Condition">
                                           <div class="multipageHeight tblspacer">
                                               <div style="height: 170px; overflow: auto">
                                                   <br />
                                                   <table>
                                                       <%--<tr>
                                                   <td>
                                                       <telerik:RadFilter ID="RadFilter3" runat="server">
                                                       </telerik:RadFilter>
                                                   </td>
                                                   </tr>--%>
                                                       <tr>
                                                           <td>
                                                               <telerik:RadFilter runat="server" ID="RadFilter1" FilterContainerID="" ExpressionPreviewPosition="None"
                                                                   ShowLineImages="true" EnableViewState="true" Localization-GroupOperationAnd="<%$ Code:Resources.View.View_MeetConditions %>"
                                                                   Localization-GroupOperationNotAnd="" Localization-GroupOperationNotOr="" Localization-GroupOperationOr=""
                                                                   Localization-FilterFunctionIsNull="Not Specified" OnPreRender="RadFilter1_PreRender"
                                                                   ShowApplyButton="false" OnFieldEditorCreating="RadFilter1_FieldEditorCreating"
                                                                   Font-Bold="true">
                                                               </telerik:RadFilter>
                                                           </td>
                                                           <td>
                                                               <asp:PlaceHolder ID="pHolder" runat="server"></asp:PlaceHolder>                                                           
                                                           </td>
                                                           <td align="right">
                                                               <br />
                                                               <br />
                                                               <table>
                                                                   <tr>
                                                                       <td>
                                                                           <asp:PlaceHolder ID="Panel1" runat="server"></asp:PlaceHolder>
                                                                       </td>
                                                                   </tr>
                                                               </table>                                                           
                                                           </td>
                                                       </tr>
                                                   </table>
                                               </div>
                                               <div style="height: 160px; overflow: auto">
                                                   <table>
                                                       <tr>
                                                           
                                                       </tr>
                                                   </table>
                                               </div>
                                           </div>
                                        
                                       </telerik:RadPageView>
                                   </telerik:RadMultiPage>


    I want To Find Placeholder ,
    That's Inside Of RadTabStrip inside Radtab , RadMultiPage , RadPageView
    How i find this in button click event
    It's Very Urgent



    Thanks Advance,
    Mohamed.
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 15 Jun 2012 Link to this post

    Hi Mohamed,

    Try the following code snippet to access PlaceHolder in the Button click event.

    C#:
    protected void Button1_Click(object sender, EventArgs e)
      {
        RadPageView PageView = RadMultiPage1.PageViews[0];
        PlaceHolder placeholder = (PlaceHolder)PageView.FindControl("pHolder");
      }

    Hope this helps.

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. mohamed
    mohamed avatar
    311 posts
    Member since:
    Mar 2011

    Posted 15 Jun 2012 Link to this post

    Thanks For Ur Reply Princy

    RadPageView PageView = RadMultiPage1.PageViews[0];                   
    PlaceHolder placeholder = (PlaceHolder)PageView.FindControl("pHolder");
    chk = (CheckBox)placeholder.FindControl("ChkBox" + j.ToString());


    One More Doubt ,
    How i Get Add Expression Date Revived Field Name 

    Please Go Through Image

    Thanks Advance,
    Mohamed.
Back to Top