Delete data in table row? - google-app-maker

How can I add trash icon next to data row to delete that (row) value from datasource?
I have data rows: #datasource.item.Type #datasource.item.Color and #datasource.item.Item
There are some drop down values for those items, e.g. blue, red etc.
No allowNull value is available in the drop down, but I would like to be able to delete data in that row.

Related

How to design a gridview or table with datasource having blank first row in which we can search table column in asp.net?

I want to design a grid view or table that gets data from database then i want leave first row blank. when user click in the cells of first row and type in, it shows every data that matches.
You can use textBoxes to query your requested data in gridView and use onTextBoxChanged to update the gridView. Instead of increasing the code you also can do it using Table let's say you have 5 columns on the gridView you make table with 5 columns and 2 rows, the first row you put 1 textBox in each cell, in the second column you use colspan property and set it to 5. Then use the event onTextBoxChanged call the SQL command and query the data on textBox then update the gridView.

Data grid Rows selection count Incorrect

I have selected few rows from data grid (say the selected count becomes 5)and then refreshed the page, the count of selected rows still remains the same.

How to drag and drop a particular cell between columns?

I have two grids with DHTMLX. I want to pick one row from first and drag it to the other table. When I drop the row, the information stays in a particular cell.
If I have, for example, 3 columns like ID, TEXT, and NUMBER, I would like to stay in the second table in a particular cell and this say for example ID-TEXT-NUMBER.
I can move rows between tables, but not one cell only.
Any idea?
Unfortunately the cell dragging is not supported in the dhtmlxGrid.

Java FX 8 Tablecell data to Listview selected data

I have a Java FX TableView with a column. This column is pre-populated with values from a database. When I click a cell on the table a listview is shown, I can update the table cell and the DB by selecting the values from the list.
Before the listview shows up, I set the selected value of the list to match the existing table cell's value by the following
listView.getSelectionModel().select(this.getItem());
when the list view opens the selected item corresponds to the cell value of the table.
I have a onchangelistener attached to the listview's selectedItemProperty.
From this list view if I choose a new value, When the selection changes the DB gets updated and the table cell gets updated with the new value.
If there is a problem with the database update, the listview's selected ItemProperty still retains the newly selected value.
I have tried resetting it using
listView.getSelectionModel().select(this.getItem());
but this doesn't reset the selectedItemProperty value.
Hence if you click the same cell once again, the list is having the previously selected value highlighted (i.e the value which was not updated due to a DB failure) the table cell and the selected value in the listview are different.
How do I overcome this ?

How to count Number of Rows devexpress xtragrid

I am using Devexpress XtraGrid Control, Here I can count the number of rows in footer of grid. but for this I need to set count property of SummeryItem in grid for at least one column. I dont want to do like this.
I want count number of rows in xtraGrid without referring any one column in grid. I just want to show number of rows count. when user will filter that rows, at that time count also need to be changed.
Is there any option to show this number in Group header panel?
I'd use BaseView.RowCount to get the row count and draw it within CustomDrawGroupPanel event.
You can use the customsummarycalculate event to count the number of rows currently shown in the filtered collection and display it in the summary area (generally, I put that text in the summary area of the ID field for the collection I'm using - as I never have a need to put anything else there).
I don't know if this is an update but:
int i = view.SelectedRowsCount;

Resources