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

ComboBox within Radgrid

1 Answer 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jesse
Top achievements
Rank 1
Jesse asked on 13 Oct 2014, 05:22 PM
My problem is that when I try to filter a table based on a value in RadComboBox, no event is fired. In order to even click on the combo box, its necessary to set the RenderMode of the combo box to native or else you cannot click the combo box. Any suggestions?                 

      <FilterTemplate>
                                <telerik:RadComboBox ID="radComboBoxLastName" DataSourceID="TeacherLastNameDDL" DataTextField="TeacherLastName" DataValueField="TeacherLastName"
                                    AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("TeacherLastName").CurrentFilterValue %>'
                                    runat="server" MaxHeight="200px" RenderMode="Native" OnClientSelectedIndexChanged="TeacherLastNameChanged" AutoPostBack="true">
                                    <Items>
                                        <telerik:RadComboBoxItem Text="All" Selected="true" />
                                    </Items>
                                </telerik:RadComboBox>
                                <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
                                    <script type="text/javascript">
                                        function TeacherLastNameChanged(sender, args) {
                                            var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                            tableView.filter("TeacherLastName", args.get_item().get_value(), "EqualTo");
                                        }
                                    </script>
                                </telerik:RadScriptBlock>
                            </FilterTemplate>



1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 16 Oct 2014, 07:44 PM
Hi Jesse,

Could you let us know what is the grid render mode? What happens if the RenderMode property of both grid and combo are not set?

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Jesse
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or