You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
If a user opens a page that contains a textarea with existing content, they must manually resize the textarea to view the entirety of the content.
Describe the solution you'd like
The textarea automatically resizes on render:
Add a boolean parameter to RadzenTextArea called AutoResize.
If this parameter is true, in the OnAfterRenderAsync method use JavaScript to resize the textarea.
The JS method:
textareaResize: function(id) {
var el = document.getElementById(id);
if (el.scrollHeight > el.clientHeight) {
el.style.height = "";
el.style.height = el.scrollHeight + "px";
}
},
This could be taken even further by calling this JS method when the onchange event is fired, but I believe resizing on render would help the most.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
If a user opens a page that contains a textarea with existing content, they must manually resize the textarea to view the entirety of the content.
Describe the solution you'd like
The textarea automatically resizes on render:
Add a boolean parameter to RadzenTextArea called AutoResize.
If this parameter is true, in the OnAfterRenderAsync method use JavaScript to resize the textarea.
The JS method:
This could be taken even further by calling this JS method when the onchange event is fired, but I believe resizing on render would help the most.
The text was updated successfully, but these errors were encountered: