Updating local data in treeview datasource with load on demand - kendo-ui

I'm having a tree with a lot of data (many 1000 entries). That's why I use "loadOnDemand" to prevent rendering issues.
The data are loaded at once and given to the tree as an array (local datasource).
Now I have the problem that it can happen that some properties of a node have to be changed. And it can be that this node was not expanded before.
Because of "loadOnDemand", it can be that the not expanded subnodes are not loaded to the datasource, so I can not change the "observable" object in the datasource.
Is there a way to update the items of a given array in case they are missing in the datasource?
Somewhere the datasource must store the items that are used to generate the "observable" objects for the datasource...

Decided to do it the complexe way:
I'm using the transport mechanism to access the local datastorage (array). So I can update the already converted objects in the datasource and also objects in the array before they are converted.
There are examples for doing this in the Kendo UI documentation. But if someone need sample Code please tell me.

Related

Kafka Connect Jdbc Source Data Schema

Does the connector generate a generic Schema such as record with the map of column->value in it, or each table get its own schema that would map to a different class trough binding. That is in the first scenario, trough binding all record across all table would bind to a record class, that contain a map.
I implemented some similar functionality in the past, and what I did was creating a generic record class containing a map with the field and value, which is consistent with what the underlying JDBC API returns.
Although this seems to defy the purpose of schema, hence i wonder how it works.
If anyone could give me some hint and documentation to investigate that, that would be much appreciated

Generic Entity in Spring Data for Couchbase Documents

One advantage of Document DBs like Couchbase is schemaless entities. It gives me freedom to add new attributes within the document without any schema change.
Using Couchbase JsonObject and JsonDocument my code remains generic to perform CRUD operations without any need to modify it whenever new attribute is added to the document. Refer this example where no Entities are created.
However if I follow the usual Spring Data approach of creating Entity classes, I do not take full advantage of this flexibility. I will end up in code change whenever I add new attribute into my document.
Is there a approach to have generic entity using Spring Data? Or Spring Data is not really suitable for schemaless DBs? Or is my understanding is incorrect?
I would argue the opposite is true.
One way or another if you introduce a new field you have to handle the existing data that doesn't have that field.
Either you update all your documents to include that field. That is what schema based stores basically force you to do.
Or you leave your store as it is and let your application handle that issue. With Spring Data you have some nice and obvious ways to handle that in a consistent fashion, e.g. by having a default value in the entity or handling that in a listener.

jqGrid: Best practice for doing upsert like operations

I'm setting up a jqGrid (in a Google Chrome Extension) which will handle local JSON data.
My concern is performance due to my unique use case. I have thousands of records getting dynamically generated on the client side over a few minutes and I can't wait for the data to be generated so currently I add this data to the grid row by row using 'addRowData'.
But the problem is, when I'm adding data to the grid I have to check if that data already exists and if it does I need to update the existing record. I'm just having trouble understanding the best way to accomplish this, is the only way I can search the grid by calling 'getCol' and then searching the array. My concern with calling getCol is I presume this searches the DOM? But I could be wrong, I have scroll: 1 set and I'm starting to think this might mean its pulling data directly from an array?
Or maybe I should be implementing this a totally different way? It would of been so much easier if I could of just inserted all of this data into an array and then loaded the grid but due to the time taken to generate the data the user needs to see it ASAP.

Problem in rendering chart in BIRT when adding dynamic series with scripted data source

I am creating a BIRT report which will contain chart which has been bound to a Scripted Data Source. I need to add series to this Bar chart on user request and hence I started following the below example.
http://birtworld.blogspot.com/2008/10/dynamically-adding-series-to-birt-chart.html
First I tried to run the exact same report(in the above page) in my deployment environment and it ran perfectly. Then I kept the main logic intact and replaced the Sample database with a custom Data Source. When I try to run this report in the same way, all I end up having is a blank page with no chart rendered.
I tried to put in logs at the appropriate places and found out that my datasource has been called and the collection has been initialized and is being returned to the BIRT report. But the part where the chart should have (in my opinion) filled the DataSet (which is connected to the chart) was not called.
Can anybody please point out as to where am I going wrong.
For the related attachments, Please have a look at http://www.birt-exchange.org/org/forum/index.php/topic/21486-problem-in-rendering-chart-when-adding-dynamic-series-with-scripted-data-source/
I'm sorry I can't have access to the links you're refferring to.
However, the lack of results in your reports is generally caused by the lack of data to use.
Since you changed the data source, are you sure that the datasets are still fetching the same information? (are the output columns the same as with the example for each dataset?)
If it's not the case, you will have to either modify the aliases of your output columns in order to match the ones used in the example.
Or, you'll have to adapt every rendered object (remove every entry and refresh the data binding of every object, and update the values you're using as well).
Hoping this will help.

Can Core Data content be edited directly?

I've been using Core Data for about a week now, and really loving it, but one minor issue is that setting default values requires going through and setting up a temp interface to load the data, which I then do away with once I have the data seeded. Is there any way to edit values in a table, like how you can use phpMyAdmin to manipulate values in a MySQL database? Alternately, is there a way to write a function to import seed values from something like a Numbers spreadsheet if it doesn't detect the storedata XML file?
For your first question, you could edit the file directly but it's highly recommended you don't. How to edit it depends entirely on the store type you selected.
Regarding importing or setting up pre-generated data, of course: you can write code to manually insert entity instances into your Managed Object Context. There's a dedicated section on this very topic in the documentation. Further, if you have a lot of data to import, there's even a section on how to do this efficiently.
Is there any way to edit values in a
table, like how you can use phpMyAdmin
to manipulate values in a MySQL
database?
Xcode has a means of creating a quick and dirty interface for a data model. You just drag the data model file into a window in interface builder and it autogenerates an interface for you. This lets you view the data without having to have your entire app up and running.

Resources