All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
How can I resize the SearchBox from javascript ?
I want to resize the SearchBox based on some available width between a min and max value I provide.
I tried the following but nothing changed
searchBox._dropDownWidth =
"100px"
;
searchBox._element.clientWidth =
// Find the RadSearchBox DOM element as a jQuery object
var
searchBox = $telerik.$(
'#searchBox'
);
input = $telerik.$(searchBox.find(
'.rsbInput'
));
// Make the input wider
input.css(
'width'
,
'423px'
// Make the whole RadSearchBox wider
searchBox.css(
'500px'
Works perfectly.
Thank you very much :)