Clear RadComoBox when using EnableLoadOnDemand

2 posts, 0 answers
  1. Ravi Kumar
    Ravi Kumar avatar
    37 posts
    Member since:
    May 2010

    Posted 04 Aug 2010 Link to this post


    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
  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 05 Aug 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top