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

Find Control RadTabstrip Inside Radfilter

2 Answers 71 Views
Filter
This is a migrated thread and some comments may be shown as answers.
mohamed
Top achievements
Rank 1
mohamed asked on 15 Jun 2012, 05:35 AM

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

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 15 Jun 2012, 07:11 AM
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.
0
mohamed
Top achievements
Rank 1
answered on 15 Jun 2012, 10:32 AM
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.
Tags
Filter
Asked by
mohamed
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
mohamed
Top achievements
Rank 1
Share this question
or