Dear Telerik Team,
we would like to get a custom filter control in the code behind. Here is the scenario:
ASPX:
<telerik:GridBoundColumn DataField="PropertyCaption" HeaderText="Property Caption"
AllowFiltering="true">
<HeaderStyle Width="25%" />
<FilterTemplate>
<telerik:RadComboBox ID="rcbPropertyCaptionFilter" runat="server" DataValueField="PropertyCaption"
DataTextField="PropertyCaption" EmptyMessage="All Types" AllowCustomText="true"
CheckBoxes="true" EnableCheckAllItemsCheckBox="true" Width="240px" />
<telerik:RadButton ID="btnPropertyCaptionFilter" text="Filter" runat="server" OnClick="btnPropertyCaptionFilter_Click"/>
</FilterTemplate>
</telerik:GridBoundColumn>
CS:
protected void btnPropertyCaptionFilter_Click(object sender, EventArgs e)
{
// Here I need to find control rcbPropertyCaptionFilter
// This access doesn't work
object example1 = RadGridDataPoints.MasterTableView.FindControl("rcbPropertyCaptionFilter");
object example2 = RadGridDataPoints.FindControl("rcbPropertyCaptionFilter");
}
Could you tell us please, how to access the „rcbPropertyCaptionFilter” control?
Thank you in advance.
SCT