Textarea changing the cols option value doesn't seem to show any discernable difference (no change evident).

0 Answers 18 Views
TextArea
George
Top achievements
Rank 2
Iron
Iron
Iron
George asked on 07 Mar 2024, 04:36 PM

Given this code:

cols - API Reference - Kendo UI TextArea - Kendo UI for jQuery (telerik.com)

If I change the cols from 30 to 3 it doesn't seem to change the width of the textarea? Isn't the width of the textarea supposed to decrease?

<textarea id="description"></textarea>
<script>
    $("#description").kendoTextArea({
        rows:20,
        cols:30,
        resizable: "vertical"
    })
</script>

Is this a bug?

Thanks!

George

George
Top achievements
Rank 2
Iron
Iron
Iron
commented on 07 Mar 2024, 04:53 PM

With a regular HTML 5 textarea adjusting the width does seem to make a difference. Still maybe there is something I am misunderstanding about the cols and rows options.
Neli
Telerik team
commented on 12 Mar 2024, 09:03 AM

Hi George, 

The "cols" property has been removed and is no longer available. Below you will find a link to our repository and the communication behind the decision:

https://github.com/telerik/kendo-themes/pull/1700#issuecomment-664230864

The property will be removed from the API. Please excuse us for the inconvenience. 

To change the width od the TextArea you can simply use CSS:

<style>
      .k-textarea{
        width: 500px;
      }
    </style>

Here you will find the modified example: https://dojo.telerik.com/@NeliK/oZoFiyOH

Regards,

Neli

 

No answers yet. Maybe you can help?

Tags
TextArea
Asked by
George
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or