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

RadFilter+RadTreeList+OADS

2 Answers 39 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 2
Veteran
Steve asked on 06 Jul 2011, 10:34 PM
How do I get RadFilter to work with RadTreeList and an OpenAccess DataSource?

...this seems to do nothing

<telerik:RadFilter runat="server" FilterContainerID="locationTreeList"
    ID="ctl00" CssClass="RadFilter RadFilter_Default " Skin="Transparent">
    <FieldEditors>
        <telerik:RadFilterTextFieldEditor TextBoxWidth="120" FieldName="LocationName" />
    </FieldEditors>
</telerik:RadFilter>
<telerik:RadTreeList ID="locationTreeList" runat="server" AllowPaging="false" AutoGenerateColumns="false"
    DataSourceID="locationDS" AllowSorting="True" DataKeyNames="LocationID"
    ParentDataKeyNames="ParentID">
    <Columns>
        <telerik:TreeListBoundColumn DataField="LocationID" HeaderText="Location ID" />
        <telerik:TreeListBoundColumn DataField="LocationName" HeaderText="Name" />
        <telerik:TreeListBoundColumn DataField="ShortCode" HeaderText="Short Code" />
        <telerik:TreeListCheckBoxColumn DataField="IsTest" HeaderText="Test Location" />
        <telerik:TreeListBoundColumn DataField="AddressID" HeaderText="Address ID" />
    </Columns>
</telerik:RadTreeList>
<telerik:OpenAccessDataSource ID="locationDS" runat="server"
    EnableDelete="False" ObjectContextProvider="AuthDB.Model.Context, AuthDB"
    OrderBy="LocationName, ParentLocation.LocationName"
    TypeName="AuthDB.Model.CommonLocation" />

2 Answers, 1 is accepted

Sort by
0
Steve
Top achievements
Rank 2
Veteran
answered on 06 Jul 2011, 11:12 PM
**EDIT**

Figured it out

DataSourceControlID="locationDS"
0
Priyanka
Top achievements
Rank 1
answered on 06 Aug 2012, 11:45 AM
Hi Steve,
Are u able to perform search/filter on records.
I am using Sql Server and want to perform search on Child items only.
Did u use different query to search through RadFilter or same query whch u are using for displaying records.
Please help, I really need to have search in my RadTeeList.

Tags
Filter
Asked by
Steve
Top achievements
Rank 2
Veteran
Answers by
Steve
Top achievements
Rank 2
Veteran
Priyanka
Top achievements
Rank 1
Share this question
or