EmptyMessage Problem

2 posts, 0 answers
  1. Syed
    Syed avatar
    36 posts
    Member since:
    Nov 2013

    Posted 27 Nov 2013 Link to this post

    Hi There

    I have a RadComboBox

    And definition look like this

    <telerik:RadComboBox Filter="Contains" runat="server" ID="cmbTechnicalServicePerson" Width="420px"

            MarkFirstMatch="true" DataSourceID="DSGetTechnicalServicePerson"

            HighlightTemplatedItems="true" OnClientItemsRequested="UpdateItemCountField"

            OnDataBound="cmbTechnicalServicePerson_DataBound" OnItemDataBound="cmbTechnicalServicePerson_ItemDataBound"

            LabelWidth="100" Label="Technical Service Name:" Skin="Office2010Black" Style="position: absolute; top: 310px; left: 21px; z-index: 6500; height: 16px;" EmptyMessage="Select  a Value" TabIndex="3">



                    <li class="col1">Name</li>

                    <li class="col2">Position</li>

                    <li class="col2">Unit</li>





                    <li class="col1">

                        <%# DataBinder.Eval(Container.DataItem, "[FULLNAME]")%></li>

                    <li class="col2">

                        <%# DataBinder.Eval(Container.DataItem, "Position")%></li>

                    <li class="col3">

                        <%# DataBinder.Eval(Container.DataItem, "[Department]")%></li>




                A total of

                        <asp:Literal runat="server" ID="RadComboItemsTCount" />





    Some time user would like to un select the selected value but this setting  does not allow them. Initial the EmptyMessage="Select  a Value" appear but as soon as they select something they will not be able to unselect to the empty value

    Can someone please give some suggestion?

    Many thanks


  2. Nencho
    Nencho avatar
    1446 posts

    Posted 02 Dec 2013 Link to this post

    Hello Syed,

    I would suggest you to use the OnClientBlur client-side event of the RadComboBox and clear the selection of the control, if the text is an empty string. Please consider the following implementation:

    function OnClientBlur(sender) {
              if (sender.get_text() == "") {

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top