selectedvalue sometimes empty with automaticloadondemand

6 posts, 0 answers
  1. EJ
    EJ avatar
    39 posts
    Member since:
    Jun 2012

    Posted 11 Jun 2010 Link to this post

    i have a combobox that is using automaticalloadondemand. sometimes the value of selectedvalue is present and sometimes it is absent - there does not seem to be a rhyme or reason to it - but when it is absent the text value has what is in the combobox but any of the "Selected" values such as selectedindex and selectedvalue act like nothing is selected. is this a bug? if or if it is not a bug how do I work around this? I have many comboboxes with this on a page and need to only load them if the user clicks in them but I want to reliably get the value.

    I am using the latest 2010 version of telerik with the combobox within an updatepanel inside a user control which is loaded on a page that has a masterpage

    <telerik:RadComboBox ID="MyRadComboBox" runat="server" Width="200px" Height="100px" 
                    MarkFirstMatch="True" DataSourceID="MyObjectDataSource" EnableAutomaticLoadOnDemand="true" 
                    EmptyMessage="Select Something If You Want To" DataTextField="name" DataValueField="id"
                </telerik:RadComboBox> 
  2. Kyle Butler
    Kyle Butler avatar
    26 posts
    Member since:
    Jun 2008

    Posted 11 Jun 2010 Link to this post

    I may be having the same issue, except i'm not using load on demand. Stricly databinding the combobox and then trying to get the selectedValue, or value of whatever is in the combobox. The functionality USED to work with the 2007 RadComboBox, now with this new control, it keep having nothing returned after databinding. I've looked everywhere for support, help, backwards compatibility for this issue, but nothing is available. It seems like altho i'm not using any load on demand features at all OR any ajax with this combobox, the control is recieving my data well after the server-side does the databinding.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kyle Butler
    Kyle Butler avatar
    26 posts
    Member since:
    Jun 2008

    Posted 11 Jun 2010 Link to this post

    Try removing MarkFirstMatch or set it to false. I believe the control has a bug in it. I hope Telerik informs us when a fix is available.
  5. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 14 Jun 2010 Link to this post

    Hi Kyle Butler,

    Once we gather enough information about the issue and we resolve it I will write in this forum thread to let you know.

    Best wishes,
    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. Sheryl
    Sheryl avatar
    7 posts
    Member since:
    Feb 2008

    Posted 03 Aug 2010 Link to this post

    Hey guys, I've seen this happen in this scenario.

    I've got a combo box tied to a SQL datasource, a label and a button on my form.  No Ajax set up on the form.
    I have MarkFirstMatch set to True for the combo box.
    The only code-behind is a Click event for the button, which shows the selected value of the combo box in the label.
    If I select an item and click the button, the label shows what I'm expecting - the corresponding selected value.
    If I then open the combo box BUT don't select anything - like click somewhere outside the combo box - and click the button, the label shows nothing.  The combo box still displays my previously selected text.

    If I set MarkFirstMatch to False, and follow the same steps, I get my selected value after both button clicks.

    Just thought I'd add my .02.

    Sheryl
  7. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 05 Aug 2010 Link to this post

    Hi Sheryl,

    Thank you for your input.

    I tried reproducing this as you described without success as you can see in the attached page.

    Please let me know if I am missing something.

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