Impossible to type into my SearchBox

4 posts, 0 answers
  1. jeremy
    jeremy avatar
    3 posts
    Member since:
    Aug 2015

    Posted 07 Jan Link to this post

    Hi, i have a problem with a RadSearchBox in IE11. 

    My SearchBox works when i launch the page for the first time, but in my page i use a modal window, wich is simply a Div. When this modal window is open, i put the Div which contains the SearchBox (and other elements) in "visibility: hidden;". 

    And when i close my modal window, i put it back to "visibility: visible", and from that moment it is impossible to write in the SearchBox.

    I tried to add javascript to solve the problem, but nothing worked. Does someone have an idea?

    1.var input = $j("#<%=SearchBox.ClientID%> input[type=text]");
    2.input.focus(function () {
    3.    this.value = "";
    4.    this.contenteditable = true;
    5.})

  2. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 12 Jan Link to this post

    Hi Jeremy,

    Please setup a runnable sample and send it back to us for a local test. 

    Regards,
    Peter Filipov
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. moegal
    moegal avatar
    273 posts
    Member since:
    Jul 2007

    Posted 21 Apr Link to this post

    I am seeing the same thing. Seems the input is getting created with the following style="width: 5px;"

    <input class="rsbInput radPreventDecorate rsbEmptyMessage" type="text" value="Search Products" name="ctl00_rsbSearch" id="ctl00_rsbSearch_Input" autocomplete="off" style="width: 5px;">

    I am using bootstrap skin.

    my width is 300.

    I added the following css as a temp fix:

     .RadSearchBox_Bootstrap .rsbInner .rsbInput {
                width:248px !important;
            }

  5. Ivan Danchev
    Admin
    Ivan Danchev avatar
    837 posts

    Posted 26 Apr Link to this post

    Hello,

    Could you please post a sample page, which demonstrates this SearchBox behavior and specify your controls version?

    Regards,
    Ivan Danchev
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top