This is a migrated thread and some comments may be shown as answers.

Kendo UI jquery Form - every component size

3 Answers 75 Views
Form
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 01 Mar 2021, 09:05 AM

Hi,

Does anyone know how to customize the size of every components in Kendo Form using JQuery at the beginning of form component initialization stage?

Thanks.

 

Eric

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Petar
Telerik team
answered on 03 Mar 2021, 12:35 PM

Hi Eric,

You can pre-define the widths of the different elements in the Form component using its items.attributes configuration

Here is a Dojo example demonstrating how the attributes configuration can be used. You will see that the first two widgets in the Form have a width of 100 pixels. This configuration is achieved using the code in yellow.

            items: [
              {
                field: "TextBox",
                label: "TextBox:",
                validation: { required: true },
                attributes: { style: "width: 100px"}
              },
              {
                field: "NumericTextBox",
                editor: "NumericTextBox",
                label: "NumericTextBox:",
                validation: { required: true },                      	
                attributes: { style: "width: 100px"}
              },
................................

Check the linked Dojo example and let me know if it helps you implement what you need in your application. 

Regards,
Petar
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/.

0
Eric
Top achievements
Rank 1
answered on 04 Mar 2021, 02:10 AM
Thanks for your help.
0
Petar
Telerik team
answered on 05 Mar 2021, 10:14 AM

Hi Eric,

You are welcome! I will close the thread. If you need furhter assistance, you can reopen it and continue the communication.

Regards,
Petar
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/.

Tags
Form
Asked by
Eric
Top achievements
Rank 1
Answers by
Petar
Telerik team
Eric
Top achievements
Rank 1
Share this question
or