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

Clear RadComoBox when using EnableLoadOnDemand

1 Answer 39 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ravi Kumar
Top achievements
Rank 1
Ravi Kumar asked on 04 Aug 2010, 03:20 PM

Hi,
i,m using radcomobox with EnableLoadOnDemand="true".

<pdi:PDIWebComboBox ID="cboMEStatus" runat="server" Width="100px" Height="110px"
                                                        MarkFirstMatch="true" OnClientDropDownOpening="GetItems"
                                                        EnableLoadOnDemand="true" EmptyMessage="Select" HighlightTemplatedItems="True"
                                                        OnItemsRequested="cboMEStatus_OnItemsRequested" DropDownWidth="220px">
                                                        <HeaderTemplate>
                                                            <table style="width: 200px" cellspacing="0" cellpadding="0">
                                                                <tr>
                                                                    <td style="width: 100px;">
                                                                        Status Description
                                                                    </td>
                                                                    <td style="width: 80px;">
                                                                        Status ID
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <table border="0" style="width: 200px" cellspacing="0" cellpadding="0">
                                                                <tr>
                                                                    <td style="width: 100px;">
                                                                        <%# DataBinder.Eval(Container, "Text")%>
                                                                    </td>
                                                                    <td style="width: 80px;">
                                                                        <%# DataBinder.Eval(Container, "Attributes['Employee_Status_ID']")%>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </ItemTemplate>
                                                    </pdi:PDIWebComboBox>

now i,m binding radcombobox with some id coming from database and showing selected text of that id.its working fine. but my problem is "HOW TO CLEAR RADCOMOBOX"

regards
-Ravi

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 05 Aug 2010, 11:52 AM
Hello Ravi Kumar,

You can clear the Items of the RadComboBox on the client side with the following code:
comboBox.get_items().clear();

You can see how to find the client-side RadComboBox object here.

All the best,
Simon
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
Tags
ComboBox
Asked by
Ravi Kumar
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or