<style>/* re-enable pointer events for the inputs so selection can work. Note - can cause some side effects with appearance of hover and focus states */.k-input.k-state-disabled,
input.k-textbox[disabled] {
pointer-events: initial;
}
/* visual highlight for the plain textbox user selection */input.k-textbox[disabled]::selection {
color: #ffffff;
background-color: #ff6358;
}
</style><TelerikTextBox @bind-Value="@tbText"Enabled="false" /><TelerikTextArea @bind-Value="@taText"Enabled="false" />
@code{
string tbText { get; set; } = "lorem ipsum";
string taText { get; set; } = "lorem ipsum\ndolor sit amet";
}
Regards,
Marin Bratanov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.