With a standard multiline textbox I can add
onFocus='this.style.height=300px'
onBlur='this.style.height=100px'
How do I acomplish this with the RadTextBox?
I setup a shared javascript function to handle the resizing of the RTB by passing a paramater, but I can't seem to pass parameters to it.
If I do something like this, I get JavaScript errors because I'm trying to pass parameters to the function
I need one function to handle a whole set of dynamically created RadTextBoxes, so I need the function to be reusable. Could someone guide or point me to what I'm doing wrong here?
onFocus='this.style.height=300px'
onBlur='this.style.height=100px'
How do I acomplish this with the RadTextBox?
I setup a shared javascript function to handle the resizing of the RTB by passing a paramater, but I can't seem to pass parameters to it.
function resizeRTB(obj, height, width){ obj._originalTextBoxCssText = "width:" + width + "px;height:" + height + "px;"; obj.updateCssClass(); }If I do something like this, I get JavaScript errors because I'm trying to pass parameters to the function
<telerik:RadTextBox ID="rtbExample" runat="server" TextMode="MultiLine" Width="550px" Height="150px" EmptyMessage="Example text..." ClientEvents-OnFocus='resizeRTB(this,300,550);' ClientEvents-OnBlur='resizeRTB(this,150,550);' />I need one function to handle a whole set of dynamically created RadTextBoxes, so I need the function to be reusable. Could someone guide or point me to what I'm doing wrong here?