Ползвайки Kendo mobile се опитвам да направя форма с данни за потребител, която да съхранява информацията в локална база данни на устройството.
Тъй като от съвсем скоро се занимавам с това, документацията не ми е достатъчна. Успях да създам базичката и някак добавих нещо като форма за въвеждане, редактиране и изтриване, но с помощта на kendo web, и когато добавя скрипта за mobile всичко гърми. Знам, че двете са отделно съответно с различен съпорт. Има ли начин в който да мога да мога да редактирам и въвеждам данни с KendoMobileListView?
5 Answers, 1 is accepted
The mobile listview widget does not have a built-in feature for CRUD operations, currently - it is up to the developer to implement those parts of the application according to the specific project requirements.
You may look through this CRUD example as a starting point and a CRUD reference implementation.
On a side note, I would like to ask you to use English when posting forum threads - in this way, there is a better chance to be understood from the rest of the community.
the Telerik team
I have used your CRUD example and i made it work with HTML5 and SQLite Database for my goals.The problem is the data do not go into my base and i can not understand why?
You can see example here :http://jsbin.com/izetez/1/edit.
Could you please check it out? I hope you can tell me if i do something the wrong way?
The provided information is not sufficient enough for me to understand the problem you refer to. Is it possible for you to provide a step by step description on how to reproduce it on our side (including browser/version/OS if relevant)?
On a side note, I would like to notice that if you need project specific implementation assistance and training, which extends beyond our products functionality and includes general web development/programming concepts, you may consider contacting our premium services.
the Telerik team
Actually I have found a solution of my problem. The mistake was that I have added ID to the created function, which was not necessary. So now I have data, which is in my base, and I can insert, edit, delete - all is fine :)
But now I have another challenge. I have observable object with datasource and defined CRUD operations, model with fields from database and some functions, which I am using. If I would like to create more than one table and make query, which can use the data from these tables at the same time, is this mean that I must have the same count observable object like my tables? Is there an easier way to do it?
I would like to make a note, that during my research about the theme, I have found and another people with same or similar problem. So I am sure that your concrete explanation will be useful not only for me but for the community at all.
The DataSource component does not interact (nor is aware of) the database structure, queries or fields - its only purpose is to provide abstraction over web services via various protocols (REST, oData, etc.). It is up to the developer to implement the web services and the persistence layer logic.
For detailed information regarding the DataSource component, please refer to our documentation site and demos.
If the problem discussed in the first post is resolved, you may consider opening separate threads/tickets should you have any further questions.
the Telerik team