RadSliderItem from Datatable, from FilterTemplate

2 posts, 0 answers
  1. Nick Keefe
    Nick Keefe avatar
    6 posts
    Member since:
    Oct 2008

    Posted 15 Mar 2010 Link to this post


    I'm attempting to follow the process from:

    However, my radslider appears in a FilterTemplate and not as a normal control.  How can I mimick what this KB article describes but for a radslider that appears as a FilterTemplate.  I can't seem to reference my radslider in the C# code, as it can't find the control.

    Basically, I want my FilterTemplate's Radsliders min and max values to not be static, but something I can query into a dataset and pulled from there instead.  I'm sure it's a simple thing to do, however I'm sure how to find the control in the C# code.


  2. Tsvetie
    Tsvetie avatar
    1517 posts

    Posted 16 Mar 2010 Link to this post

    Hello Nick Keefe,
    In case you are using RadGrid, you can access the slider control, defined in the FilterTemplate the following way:
    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="AccessDataSource1" AllowFilteringByColumn="True"
        GridLines="None" ondatabound="RadGrid1_DataBound">

    protected void RadGrid1_DataBound(object sender, EventArgs e)
        foreach (GridFilteringItem filterItem in RadGrid1.MasterTableView.GetItems(GridItemType.FilteringItem))
            RadSlider slider = (RadSlider)filterItem.FindControl("RadSlider1");
            slider.MaximumValue = 20;

    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top