TextBox readonly but Pasting enabled

Hi Guys,

I need a readonly TexBox so no key presses allowed but the ability to paste in Text.

Is this possible? 

Thank you

1 Reply

VS Vignesh Srinivasan Syncfusion Team January 7, 2021 10:07 AM UTC

Hi Stefan, 
 
We can able to make the textbox component as readonly by using the property Readonly, but the paste is also prevented. To prevent the typing alone in the textbox, we have to customize in the OnKeyDown event handler. Currently we didn’t have the support for PreventDefault actions in Blazor Textbox events. We have logged as a feature request for your reported query “Support for PreventDefault actions” in our end. The feature will be included in any of the upcoming release. You can track the status of the reported issue in the below feedback link.     
   
 
To make it count, please cast your vote. We will prioritize the features based on the demands of each release If you have more specifications / suggestions on the request for the feature, you can add it to the portal as a comment.           
 
Regards, 
 
Vignesh Srinivasan. 


Loader.
Up arrow icon