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

use of RadDropDownTree in Filter

2 Answers 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dennis
Top achievements
Rank 1
Dennis asked on 02 Dec 2015, 08:07 AM

HI Community 

 

does anyone have an example of using a RadDropDownTree in a Filter ? 

 i searched in the forum without a result :-( 

 

what i have so far :-) 

 

 <telerik:GridBoundColumn DataField="Problem_FK" DataType="System.Int32" FilterControlAltText="Filter Problem_FK column" HeaderText="Problem_FK" SortExpression="Problem_FK" UniqueName="Problem_FK" Display="true">
                            <FilterTemplate>
                                    <telerik:RadDropDownTree ID="ddtProb" runat="server" DataFieldID="prob_ID" DataFieldParentID="prob_ParentID" OnClientEntryAdded="ExpectedIndexChanged" DataSourceID="dsProblemTree" DataTextField="prob_Name" DataValueField="prob_ID" Height="16px" Width="361px">
                                    </telerik:RadDropDownTree>
                                <telerik:RadScriptBlock ID="rsbExpected" runat="server">
                                    <script type="text/javascript">
                                        function ExpectedIndexChanged(sender, args) {
                                            var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                            tableView.filter("Problem_FK", args.get_item().get_value(), "EqualTo");
                                        }
                                    </script>
                                </telerik:RadScriptBlock>
                            </FilterTemplate>
                    </telerik:GridBoundColumn>

 

thanks a lot

best regards 

Dennis 

2 Answers, 1 is accepted

Sort by
0
Dennis
Top achievements
Rank 1
answered on 02 Dec 2015, 02:31 PM

i mean i try to code it by myself but for some reason its not working .... that's the reason why i'm asking if somebody has an example.

 

i'm running version 2015.3.930.40

 

thanks a lot 

Dennis 

0
Eyup
Telerik team
answered on 07 Dec 2015, 07:49 AM
Hello Dennis,

Could you test your sample by changing the args.get_item().get_value() part to a hardcoded value: for example, tableView.filter("Problem_FK", "Problem1", "EqualTo");.

Looking forward to your reply.

Regards,
Eyup
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Dennis
Top achievements
Rank 1
Answers by
Dennis
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or