Add / Update / Hightlight an Item from the Datagrid (
Wiki docs).
- Note: this demo is only on the datagrid (client) side, you still need to deal with the backend yourself
- Adding an item, will always be showing as the 1st item in the grid because that is the best visual place to add it
- Add/Update an item requires a valid Slickgrid Selection Model, you have 2 choices to deal with this:
- You can enable "enableCheckboxSelector" or "enableSelection" to True
- Click on any of the buttons below to test this out
-
You can change the highlighted color & animation by changing the
SASS Variables
- "$row-highlight-background-color" or "$row-highlight-fade-animation"
- You can also add CSS class(es) on the fly (or on page load) on rows with certain criteria, (e.g. click on last button)
-
-
Example, click on button "Highlight Rows with Duration over 40" to see row styling changing.
Wiki doc
{/if}