Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
59 views

I have a searchbox in a radwindows. Id like to focus my searchbox on opening the radwindows in javascript. Is it possible?

 

 

Rumen
Telerik team
 answered on 25 Jan 2023
1 answer
89 views

Radsearchbox is working fine when user input is by typing or copy-paste but when the input is from  barcode reader radsearchbox not fire Search event.

¿Can i use an alternative event?

Doncho
Telerik team
 answered on 30 May 2022
1 answer
72 views

Hi,

 

How could one get the selected value from a radsearchbox client template back to the server code?

Is there any other method than sending it in a url querystring?

 

Thanks, Marc

 

Attila Antal
Telerik team
 answered on 28 Jun 2021
8 answers
120 views
Good afternoon,

I'm working on a search box that filters the information from an EntityDataSource.
I am looking for a solution that gets you the "final" DataSource, I mean the data collection that you can read after putting some letters in the search box.

Is there any way to get it?

Thank you for your attention



Vessy
Telerik team
 answered on 26 Jan 2021
3 answers
139 views

It is possible resize icon added in searchboxbutton?. I'have a bootstrap page that changes font size

<telerik:RadSearchBox ID="rsbGenero" runat="server" Skin="Bootstrap" RenderMode="Lightweight" Width="100%"
    MaxResultCount="10" DataValueField="ID" DataTextField="NOM"
    DataKeyNames="ID, NOM"
    DataSourceID="SqlDataSource"
    OnDataSourceSelect="rsbGenero_DataSourceSelect"
    OnSearch="radsearchbox_Search"
    OnButtonCommand="radserchbox_ButtonCommand"
    OnClientSearch="OnClientSearch"
    OnClientButtonCommand="OnClientButtonCommand">
    <DropDownSettings Height="300">
    </DropDownSettings>
    <Buttons>
        <telerik:SearchBoxButton CommandName="AddGenero" Position="Left" AlternateText="<%$ Resources:appGlobales,Alta %>" ImageUrl="../../imagenes/Telerik/Add-icon.png" />
    </Buttons>
</telerik:RadSearchBox>

 

I've tried it by CSS (cssclass on the button) but I can't do it. I also add another button dynamically (on search):

SearchBoxButton btnClean = new SearchBoxButton();
btnClean.ImageUrl = "~/imagenes/Telerik/close-icon.png";
btnClean.Position = SearchBoxButtonPosition.Right;
btnClean.CommandName = "Clean";
searchBox.Buttons.Add(btnClean);

 

Thank you in advance

Rumen
Telerik team
 answered on 10 Jun 2020
1 answer
55 views

hi team,

 

neen your urgent help for my code.

i need a java script funtion after entering text in the search context and press tab out, i want to fire onsearch event 
i have some logic in this which populate another textbox in the onsearch event in code behind
please help

Doncho
Telerik team
 answered on 05 Jun 2020
3 answers
104 views
Hello,

Is it possible to highlight the matches in the results of RadSearchBox?

Many thanks,
Martin
Peter Milchev
Telerik team
 answered on 20 Feb 2020
1 answer
69 views

Hi , 
  I am try to bind value from server side, for that , i page load i get values in datatable and bind in searchbox, and in DataSourceSelect i filter the values when key in inside search box, but when i key in i get error "Datasoruce not set ", how to bind datasource from server side instead of code behind ?

This is my code
Code Behind
<telerik:RadSearchBox EnableAutoComplete="true" DataValueField="userid"
            DataTextField="con" ID="radsearachUsers"  runat="server"></telerik:RadSearchBox>
--------------------------------

Page_Load
 Dim sqlDA As New SqlDataAdapter("Select con,userid from users", objConnection)
            Dim objDT As New DataTable
            sqlDA.Fill(objDT)

            radsearachUsers.DataSource = objDT
            radsearachUsers.DataValueField = "userid"
            radsearachUsers.DataTextField = "con"
            radsearachUsers.DataBind()

__________________________________

 Protected Sub radsearachUsers_DataSourceSelect(sender As Object, e As SearchBoxDataSourceSelectEventArgs) Handles radsearachUsers.DataSourceSelect
        Dim objConnection As New SqlConnection
        objConnection = New SqlConnection(getconnectionstring())
        objConnection.Open()

        Dim sqlDA As New SqlDataAdapter(" Select * from users where con like '%" & e.FilterString & "%' ", objConnection)
        Dim objDT As New DataTable
        sqlDA.Fill(objDT)
     

        radsearachUsers.DataSource = objDT
        radsearachUsers.DataSourceID = getconnectionstring()
        radsearachUsers.DataTextField = objDT.Rows(0)("Con")
        radsearachUsers.DataValueField = objDT.Rows(0)("userid")
        radsearachUsers.DataBind()
    End Sub

Pls reply asap

Thanks

M Kumar
Top achievements
Rank 1
Iron
Veteran
 answered on 13 Jan 2020
0 answers
53 views
I have to provide the estimate to one our client for the migration of Telerik UI component upgrade from 2014.1.403 to latest.
When application is upgrade with 2019.1.215(trail) and tried to Build the application its raise the build errors for RadSearchBox.

Error
CS1061
'RadSearchBox' does not contain a definition for 'OnClientValueChanged' and no extension method 'OnClientValueChanged' accepting a first argument of type 'RadSearchBox' could be found (are you missing a using directive or an assembly reference?)

Error
CS1061
'RadSearchBox' does not contain a definition for 'OnClientDataRequested' and no extension method 'OnClientDataRequested' accepting a first argument of type 'RadSearchBox' could be found (are you missing a using directive or an assembly reference?)


Now, These methods mention above are no more exists with SearchBox then “What is the alternate approach/method we have for these method?”
Hemant
Top achievements
Rank 1
 asked on 09 Apr 2019
2 answers
73 views
Hello,

I've sound some other discussions in the forum on not posting back with a client search, but, I'd like it to leave the drop down open. This happens if the client search function throws an error, so I feel like there should be a way to tell it to cancel and not close the results box. Here's what I have right now:

function txtAutoSearch_Search(sender, args) {
    if (args.get_value() == null) {
        sender._element.control._postBackOnSearch = false;
    } else {
        sender._element.control._postBackOnSearch = true;
    }
}

This actually works very nicely as a way to make it so that, if they haven't selected a result, it won't post back. But, when people hit "enter", the results still close, and that confuses some folks. Is there a way to safely cancel the post and leave the box open? Basically, some line I could add after the "_postBackOnSearch = false;" bit?

Thanks,

Mike

Kasim
Top achievements
Rank 2
 answered on 12 Mar 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?