Kendo Grid Foreign Key Column with large dataset - kendo-ui

We are using in our App Kendo Grid with a Foreign Key column like this example
http://demos.telerik.com/kendo-ui/grid/foreignkeycolumn
Our dataset is very large so we are using ServerPaging and ServerFiltering in order to do LazyLoading.
Our problem is the data for the ForeignKey Column.
In all the examples in the Telerik Website the ForeignKey column data is preloaded when the page loads.
This is ok for a few number of records, but it's a very big problem if the FK column has thousands of records and you also want to support editing.
Any ideas?

Related

how to insert items in database from two regions in single form in oracle apex application

I have created a form with two textbox items and one editable datagrid in oracle apex form. Now i want to store those two items data along with this grid's records in single database table as we can do in invoice form. My items are in form region and grid is in its sub region. How to write the insert query. I have written a query but its storing only form items data but not grid's data.
my query as follow :
insert into FOREIGN_SAMPLE (REF_NO,PARTY_NAME,PRODUCT_NAME)
values (:P22_REF_NO,:P22_PARTY_NAME,:PRODUCT_NAME);
Here, PRODUCT_NAME is field of grid view and other 2 are form items.
Here's how:
interactive grid should contain those two columns (ref_no, party_name)
as their source, use form items (:P22_REF_NO and :P22_PARTY_NAME)
once you enter values into the product_name column in the interactive grid and save changes, ref_no and party_name will be saved along with product_name
In other words: don't write your own INSERT statement.

BIRT 4.4.2 Table in a Grid xls

I have a BIRT report containing a grid. In the first column first row, there is a chart. In the first column second row, there is a table which has multiple columns. When exporting to Excel using the spudsoft emitter, the columns of the table are merged together so that the entire table only occupies one column in excel.
How do I have my table properly occupy a corresponding number of excel columns? For example can I have my chart span multiple merged columns in a row?
To overcome this problem I usually use the same amount of columns in a Grid I have in my table.
You can merge multiple cells in the second row of the grid and place the table there.

How to achieve kendoui combobox auto-complete reverse look-up when editing?

Here is the scenario:
I have a kendo combobox and it is working as it should for adding records. It will look up records from it's data source as the user types, and assign the ID of the selected record to the FK field in the record being edited. I have paging in the datasource set to 30 records and this works nicely.
Now when I edit a record, the FK ID is bound to the combobox and it then looks up the record so it can display the text for it. Perfect. However if the record bound to the combobox has an ID that is not in the first page of data returned by the comboboxs auto-complete datasource, it just shows the FK ID instead of the text for the record in the combobox widget UI.
How can I get the combobox to look up the record by ID to display the text for it on, when loading an edit form?
Or is there a better solution? Can I somehow bind the text to the combobox for records being edited if I include it in the load record data?
Thank you for your time,
Regards,
Scott

SlickGrid deleting a column does not delete its data

I am adding a new column to SlickGrid using of course grid.setColumns(newColumnDef);
I allow the user to then enter values into this new column
If they so choose they can remove this column and add another column which they can select from a dropdown list.
This all works fine, the column gets removed and the grid appears without the removed column. However when I call dataView.getItems() to grab the data from the grid the columns I'vd previously removed are still there. Looks like setColumns with a new column definition and dataView.refresh does not delete the columns data, just the column is removed. I need to remove the columns data when the column is removed... Any suggestions would be most helpful.
Changing the presentation of the data does not change the data itself.
Use deleteItem method of dataview as follows,
dataView.deleteItem(id);\\where id is your unique id
dataView.refresh();`

Want to fix some columns

I want to fix some columns so that user cannot drag and drop these columns and cannot reorder these columns also.Is it doable how can i do it.
There is code inside grid.jqueryui.js that uses the jQuery UI Sortable Interaction to enable drag-and-drop columns.
The following selector determines which columns can be dragged-and-dropped:
"items": '>th:not(:has(#jqgh_'+tid+'_cb'+',#jqgh_'+tid+'_rn'+',#jqgh_'+tid+'_subgrid),:hidden)',
So basically the selector will choose any column header that is not hidden and does not satisfy one of the following criteria:
#jqgh_'+tid+'_cb' - A checkbox column (for multi-select)
#jqgh_'+tid+'_rn' - A row number column (for primary key?)
#jqgh_'+tid+'_subgrid - A subgrid column
To satisfy your request, jqGrid would have to be modified to populate the items selector with blacklisted columns. Maybe the blacklisted columns could be flagged using a new colmodel option. This is all do-able, but requires changes to jqGrid itself...

Resources