I am just wondering how I could take advantage of the data-* attribute when using the mdl table.
data-mdl-data-table-selectable-name="materials[]" data-mdl-data-table-selectable-value="acrylic"
how could I listen for the select event and retrieve the selected rows?
Related
I'm used to using boolean bindings with IBM buttons to track if a button is clicked. The button in Brazos UI can be bound to any variable type but doesn't make automatic updates to booleans. How do I use bindings with Brazos UI buttons to track which was last-clicked?
The binding of a button is really only useful in tables. The acceptance of ANY variable type for the binding of a button stems from the use of determining the index of a selected row or obtaining the entire row object:
If you bind and integer to the button in a table, the binding will update with the index of the row when the button is clicked.
If you bind a variable of the same (singular) type as the table's binding, then clicking the button will update the binding with that row's data.
Both of those are handy interactions with the table control but don't work for tracking which button is clicked when used elsewhere on a coach. For that, you want to utilize the 'Button Control ID' configuration option. The most direct method is to bind the same string variable to all of the buttons you need to track. When clicked, a button will update that shared variable to match its own control ID. You can then use that unique ID in various scripting checks to take button-specific actions.
See the BP3 Help Center article for greater detail about this, including some examples: https://support.bp-3.com/hc/en-us/articles/217985767-Using-Button-Binding-with-Brazos-UI
I have a grid with ASPxCheckBox in Data Item Template. How to get KeyFieldValue of all rows whose checkbox is checked. I am trying to do this using client-side code and do it for whole grid not on visible index. Is it possible?
Note: I cannot use simple row selection command column as I am using it for some other purpose.
if you dontuse client-side code, you should use detailrow in aspxgridview. And you must use beforeperformdataselect event. if you really need checkbox, you can add checkbox a new field in asapxgridview.
Is there any way to allow the user to do a multiple row selection just by clicking and dragging along cells within the actual grid? I.e. Without using the indicator column?
You can do that by cell using just properties by setting the following properties located in Gridview.Options
Multiselect = True
MultiSelectMode = CellSelect
UseIndicatorForSelection = False
If you need to do it by entire rows, you are stuck writing that functionality yourself using GridView.CalcHitInfo and various events.
To achieve this behavior, you need to handle the MouseDown and
MouseMove events and select rows programmatically. You also need to
enable the multi-selection feature and switch the multi-selection
mode to "CellSelect" to be able to select individual cells.
download the attached sample from this link and customize it to implement your functionality...
MultiSelect Rows & Cells simultaneously
check the following thread, which using indicator but you can customize it hiding indicator and setting select option to cellselect etc...
"mulitiselect without CTRL key" on Devexpress..
search result that help you implement that you are looking for...
I've a problem with Drupal Views. My requirement is to add a custom select box in exposed filters.This select box contains some field names (the names of the fields in the views sort criteria), and when i select a value in this list, I must get the result in sorted order based on the selected value in the select box.
How can I do this?
Thanks in advance for your help
I think the easiest way is to set the view style to table. Then for the table style options you can specify which columns (fields) can be used for sorting and you can define a default sorting field. As a bonus you can set AJAX to yes, so the sorting of the table doesn't trigger the page reload.
I have a databse table with some columns of data (area inside green), I want to retrieve table data in such layout with paging support, how can I create this layout? (there is no problem for retrieving data from DB) does GridView support such layout?
Check the following article I gues this is exactly what you need: The asp:ListView control (Part 1 - Building a Product Listing Page with Clean CSS UI)