RadComboBox SelectedValue

2 posts, 0 answers
  1. Rayne
    Rayne avatar
    261 posts
    Member since:
    Sep 2010

    Posted 27 Feb 2018 Link to this post

    I have the following ComboBox on my page but although the Text value is persisted, the selected value is not. Therefore my grid loads all items regardless of what is in the ComboBox when the page loads. What do I need to change?

    <telerik:RadComboBox runat="server" DataSourceID="AllWaterSystems" DataTextField="displayName" DataValueField="pwsid" EmptyMessage="Water System" Filter="Contains" Width="350" ID="SelectedWaterSystem" EnableItemCaching="True" OnClientDropDownOpening="RefreshHeight">
                <li class="col1">PWSID</li>
                <li class="col2">Name</li>
                <li class="col1"><%# DataBinder.Eval(Container.DataItem, "PWSID") %></li>
                <li class="col2"><%# DataBinder.Eval(Container.DataItem, "Name") %></li>


  2. Vessy
    Vessy avatar
    2334 posts

    Posted 02 Mar 2018 Link to this post

    Hi Rayne,

    The Selected values are not persisted by default, but you can handle that manually, keeping the selected values in a datafield which values will be used on load. This issue is discussed in details in the following thread where you can also see a sample configuraton of the suggested approach:

    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top