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

KendoUI Correct Practice

1 Answer 83 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 22 Mar 2013, 03:18 PM
Are there style guides to write codes the "KendoUI way"? I'm new to KendoUI and I'm trying to find out how to write mobile apps the correct way KendoUI designed it for.

For example:
- What is the KendoUI way to populate a list view? Is the correct way to use JQuery and append html?
- What is the "KendoUI" way to pass data from a list view to another view.
- When using buttons, are you supposed to extend the button class to change the way it behaves, or manage that in the HTML?
- If not, what is the main reason you will use inheritance when using KendoUI?
- What is recommended, multiple views in one file? Or views in separate files.
- Which file is the layout supposed to reside in?

I'm having difficulty finding the answers to these questions since I can't find much documentation on it, and KendoUI being so new there is no tutorials for any of it. 

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 26 Mar 2013, 01:29 PM
Hi Ryan,

The standard support services - the ones included in the support package that goes with the controls, cover only the built-in functionality of the corresponding products. In case you need consultancy or best-practices advice I would suggest to check our Professional Services.

Regarding the questions you asked:

What is the KendoUI way to populate a list view? Is the correct way to use JQuery and append html?
The recommended way is to bind it to a DataSource. Please check this demo.

What is the "KendoUI" way to pass data from a list view to another view.
ListView's data is stored in a DataSource. T access or modify the data please use DataSource's API methods.

When using buttons, are you supposed to extend the button class to change the way it behaves, or manage that in the HTML?
Each widget offers a number of build-in features and methods which are listed in the corresponding API reference topic. In case you need need further customization you can extend existing or create custom widgets. Please check this tutorial.

What is recommended, multiple views in one file? Or views in separate files.
It depends on the requirements of your project. KendoUI Mobile supports both local and remote Views.

Which file is the layout supposed to reside in?
Main layout should be located in the index page of your project.

Regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Ryan
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or