Combobox resets to un-selected on lost focus when bound to Objectdatasource

6 posts, 0 answers
  1. Mike
    Mike avatar
    26 posts
    Member since:
    Dec 2006

    Posted 25 Mar 2009 Link to this post

    I have a combobox bound to an objectdatasource, when I select an item and move to a new control the combo box resets to unlected. I created a form with 3 comboboxes, 1 manually populated, 1 bound to na objectdatasource and 1 bound to a sqldatasource, only the object bound combobox exhibits this behaviour.
    below is my aspx code, there is no code behind

    <%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/master_default.Master" CodeBehind="Testing.aspx.vb" Inherits="LearningDepot.Testing" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">  
     
        <telerik:RadComboBox ID="RadComboBox1" runat="server" DataSourceID="ODSLookup"
            DataTextField="LookupKey" DataValueField="ID">
    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
        </telerik:RadComboBox>
           
        <telerik:RadComboBox ID="RadComboBox2" runat="server">
            <Items>
                <telerik:RadComboBoxItem runat="server" Text="Cell" Value="1" />
                <telerik:RadComboBoxItem runat="server" Text="Home" Value="2" />
                <telerik:RadComboBoxItem runat="server" Text="Office" Value="3" />
                <telerik:RadComboBoxItem runat="server" Text="Fax" Value="4" />
            </Items>
    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
        </telerik:RadComboBox>
       
        <telerik:RadComboBox ID="RadComboBox3" runat="server" DataSourceID="SDSLookup"
            DataTextField="LookupKey" DataValueField="LookupId">
    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
        </telerik:RadComboBox>

        <telerik:RadTextBox ID="RadTextBox2" runat="server">
        </telerik:RadTextBox>

        <asp:ObjectDataSource ID="ODSLookup" runat="server"
            SelectMethod="DataList" TypeName="LearningDepotAPI.Lookups">
            <SelectParameters>
                <asp:Parameter DefaultValue="PhoneType" Name="lookupGroup" Type="String" />
                <asp:Parameter DefaultValue="1" Name="recordStatus" Type="Object" />
                <asp:Parameter DefaultValue="1" Name="SortBy" Type="Object" />
            </SelectParameters>
        </asp:ObjectDataSource>

        <asp:SqlDataSource ID="SDSLookup" runat="server"
            ConnectionString="<%$ ConnectionStrings:pmbLD_DB %>"
            SelectCommand="pmbLDsp_COLL_Lookup_ByKey" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:Parameter DefaultValue="PhoneType" Name="LookupGroup" Type="String" />
                <asp:Parameter DefaultValue="1" Name="StatusFlag" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </asp:Content>

    <asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    </asp:Content>

  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 30 Mar 2009 Link to this post

    Hi Mike,

    I was unable to reproduce the issue in our live demo.

    Could you please open a support ticket and send us a runnable project where we can observe the issue and investigate it?

    Regards,
    Simon
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. Swadesh Brojolall
    Swadesh Brojolall avatar
    7 posts
    Member since:
    Apr 2010

    Posted 04 Jun 2010 Link to this post

    Hi, I am having the same problem. What the solution to this problem?
  4. Mike
    Mike avatar
    14 posts
    Member since:
    Mar 2010

    Posted 27 Sep 2010 Link to this post

    I am also experiencing this same issue.  Has a resolution been discovered?
  5. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 29 Sep 2010 Link to this post

    Hi,

    Could anyone of you guys open a support ticket and send us a sample runnable project that shows the issue there so that we can debug it? We will be glad to debug this issue and fix it.
     
    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
  6. Mike
    Mike avatar
    26 posts
    Member since:
    Dec 2006

    Posted 29 Sep 2010 Link to this post

    It has been a long time since I first posted this. It ended up being something I didn't do right. I think it was something as simple as I was populating the drop down on postback everytime. I wasn't checking for 'IsPostback', so I was stomping on my own feet. I know it wasn't a problem with the control or the fact that it was an objectdatasource, that was just a coincidence.

    Hope that helps
       Mike
Back to Top