question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi, Is there any other options for adding rows without using a modal ? actually im using the table on a modal where i have already a form to add rows on it , but i would like to keep using the ‘insertRow’ prop also to add a custom default rows only ? … And for : <TableHeaderColumn width='100' dataField='target' editable={ { type: 'select', options: { values: targets } } }>Target</TableHeaderColumn> <TableHeaderColumn width='100' dataField='condition' editable={ { type: 'select', options: { values: conditions } } }>Condition</TableHeaderColumn> I m looking for a conditional select , if i select a target[x] i had to select only conditions for this current target selected ? because now i can show all these conditions and not only conditions for target[x] selected for example …

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
janpauldahlkecommented, Aug 29, 2017

hi Allen, and thanks for replying. I decided to go the way with some ‘fake’ element right below your table. Iam just copying the css and applying changes to state. collect state -> action to props -> rerender shows the item in your table.

<BootstrapTable
  data={//usual foo_}
  cellEdit={this.cellEditProp as any}
>
  <TableHeaderColumn dataField="id" isKey>ID</TableHeaderColumn>
  <TableHeaderColumn dataField="description">Beschreibung</TableHeaderColumn>
  <TableHeaderColumn dataField="quantity">Menge</TableHeaderColumn>
  <TableHeaderColumn dataField="price">Preis</TableHeaderColumn>
  <TableHeaderColumn dataField="discountValue">DiscountValue</TableHeaderColumn>
  <TableHeaderColumn dataField="action" dataFormat={this.removeItemRow} width="80" editable={false}>action</TableHeaderColumn>
</BootstrapTable>

<AddRowElement counter={counter} handleClick={this.getDropDownValue.bind(this)} itemDesc={this.state.itemDescription} />

Have fun coding the table2 and best wishes 😉

0reactions
mferilightcommented, Apr 13, 2020

Hi @AllenFang @zeusbangayan
is the function already available to insert the row without modal in react-bootstrap-table2. If so please let met know what the function is

Read more comments on GitHub >

github_iconTop Results From Across the Web

javax.swing.table.DefaultTableModel.insertRow java code ...
Fill JTable from database ; // Code DefaultTableModel model = (DefaultTableModel) jTable1.getModel(); ; while(rs.next()) { ; n = rs.getString("Full_Name"); e= rs.
Read more >
HTMLTableElement.insertRow() - Web APIs | MDN
The HTMLTableElement.insertRow() method inserts a new row ( ) in a given , and returns a reference to the new row.
Read more >
how to add a qpushbutton using model.insertrow pyqt5
You have to use the setIndexWidget method passing the proper QModelIndex: column = tableview.model().columnCount() - 1 for row in ...
Read more >
DefaultTableModel: insertRow(int row, Object[] rowData)
addColumn("Col2"); // Create the first row model.insertRow(0, new Object[] { "r1" }); // Append a row model.insertRow(model.getRowCount(), new Object[] ...
Read more >
HTML | DOM Table insertRow( ) Method - GeeksforGeeks
How to remove all rows from a table in JavaScript ? ... How to create a responsive Modal Sign-Up form for a Website?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found