How to create a dropdown in a table with subsequent rows? - bootstrap-table

How can I create a table with dropdowns that looks like this:
I have tried using hidden rows but cannot figure out how to hide a row by index, additionally, detail view does not allow me to put a row in the detail view. Please advise, thanks!

Related

Show values in grid according to a combobox selected value

I have a combobox, on which I have to choose one option. That option determines which values should be shown on the comboboxes of a grid. The values to show on the grid's comboboxes are on a table. Right now, I'm showing all of them, but I need to filter it down.
The user must choose a value on combobox #1, and the comboboxes inside the grid (#2) should only show the related values. So far, I haven't been able to accomplish this.
Thanks in advance!
Refresh your drop down list as follows:
&l_field.ClearDropDownList();
/* select values required by sql */
&l_sql = CreateSql("...");
While &l_sql.Fetch(&l_key, &l_descr)
&l_field.AddDropDownItem(&l_key, &l_descr);
End-While;

I want to use Gridview as input fields, with no data to begin with. Is there an easy way to do this?

Thank you in advance.
Using .NET and VB I am looking to use Gridview as an input form grid with checkboxes. I would like each person who fills out the form to have a unique entry in the DB so the data source would be empty. Is there any way to display the checkboxes and have the gridview show up without any source data? We are trying to stay away from dummy data.
You could define your columns in the EmptyDataTemplate
http://forums.asp.net/p/1436652/3240106.aspx
http://geekswithblogs.net/casualjim/archive/2006/05/04/77151.aspx
please refer to below articles that would explain how to show a grid header when there is no data. then you can simply hide/unhide footer row where you can enter data and save the data.
http://technico.qnownow.com/2012/06/11/how-to-add-footerrow-to-gridview-which-has-no-value-initially/
http://technico.qnownow.com/2012/06/07/show-grid-header-when-there-are-no-rows-in-gridview-control/

Hide selected columns in datagrid vb6

I have a datagrid object and the users requested to be able to select any columns and hide them.
I guess I have to loop through the columns and check if they are selected(?) but I can't find a way to do this.
Could someone give me a tip in this?
I feel like creating excel in vb6, so if it's possible to make excel to use oracle datatable as it's source, I'm up for that too :)
Thanks in advance.
The DataGrid has a HeadClick event you could easily use for this. It provides the colindex of the clicked column.
You could combine this with a CheckBox having its Style = vbButtonGraphical to make a "hide clicked columns" push-on-push-off button or something if you want a clicked column heading to have multiple meanings.

How to display only those columns in the gridview according to which dropdownlist the user selects

For example i have three dropdownlists and the the user selects Say Name and PIN dropdownlist i want results that match the two to be displayed not any other what should I do?
Please help! :/
EDIT:
What i want to do is based on what dropdown list the user makes the selection from i want to display only those columns in the gridview on the next page and two fields name and pin corresponding to those rows will always be displayed ... if i try permutaion combinations i would have to make 81 sql queries. What should I do?
Each column has a Visible attribute; one approach could be to bind the entire list of columns, and show/hide only the columns you want to show. Alternatively, you could dynamically add the BoundField columns dependant on the selection.
HTH.

How to Split datagrid Rows Extjs

I want to split my dataGrid Rows , like we do in Html by using ...
this picture illustrate what i'm asking for
view the screenShot
I tried with the gridView and Xtemplate , i need help
If you do not want each row of the split rows to work as individual rows of a GRID, then you can simply use renderer() function to show simple HTML template in your PHONE and EMAIL column. Have a look at this paging grid example - the way the used String.format to show custom template.

Resources