Can we change "rowSelection" dynamically in Ag-grid angular? - ag-grid-angular

I am displaying data using Ag-grid in angular 8 with checkbox in first column. I need to set rowSelection:"single" to allow single data edit at a time and need to switch it to "multiple" for allowing download multiple selected data. Lets say I have two buttons "Edit" and "Download".
How can I switch this attribute "single" to "multiple" and vice-versa dynamically on clicking these two buttons? Or what would be another way to handle this situation.
Any suggestion or solution would be appreciated. Thanks
Example:

Related

add and get selected checkbox in modal

Hi everyone I'm working with Angular, and Bootstrap 4.
1.- I have the following modal and I would like to add the information dynamically, add some already selected checkboxes and others not, depending on the configuration, for now I am filling it with an array of objects, but I would like to know what I would have to do to fill it with some selected check and others not.
Modal
2.- In the Modal I can select or deselect the checkboxes and when I give Save changes I get the id of the checkboxes that were modified, both selected and deselected.
My ckecbox already have a value to identify them, I just don't know how to get all the modified checks
Value of checkbox
I share the project to support me to guide me how I could solve these problems that I have:
https://codesandbox.io/checkbox
Thank you for your support.

Saving selected items in Listbox combined with radio button into new field

I am trying to combine multiple selection criteria into one new field. This can be a text box or listbox, whatever is handy to work with.
I do not know how to attach a zip file with my access database so I will send a pictures to show my access form.Access Form
At the top you are able to filter the database on various criteria and the results will show up in the ListBox beneath.
Then you are able to choose one of the calculation options or select an item in the Listbox or create your own value. By choosing one of the radio buttons above I clicking the save button I would like the following to happen.
Columns 0 to 4 from the selected item in the ListBox should be saved in a box underneath.
The value of the selected option from the radio button should be saved next to it (as column 5)
Columns 6 to 9 from the selected item in the ListBox should be saved next to it.
If the user did not select an item in the ListBox there should be a popup that he should select an item.
The user should be able to perform multiple searches and save all the selected items for each search, so at the end the user has an overview of all the items he has saved.
I hope my question is clear, otherwise just let me know!
Thanks in advance,
Vinesh
I was able to make a work around by using an append query.
Now it is possible to save the selected item in the listbox combined with the selected option of the radio buttons.
Sadly every time you hit the button you are asked if you agree on making a change in the table and that the rows will be updated.
Is it possible to either turn these two messages off, or to find a direct way of saving the data into the table?

Access Form - how do I only display fields and cell values if the cell has data?

Could someone please help me with configuring my access database? I would like to use a combo-box at the top of the form where the user selects from the available work forms (Column 1 in Table) and then it displays who is involved in the form. Currently it displays every field and to reduce to the information displayed I would like it to only display information if the cell has a value in it.
Am I using the wrong tool? Should I be using a Report instead? How's my table data, too much?
Many Thanks
My current form
My wanted result
The way I normally hide empty fields is to change the label for a field to a control and set the control source to the following:
=IIf([FieldName]<>'', "My label:", Null)
Then I set the CanShrink property on both the "label" and the field to Yes.
Finally I make sure the section it's in (typically the detail but you may have reason to use something other) also has CanShrink set to Yes.
When you stack the controls on top of each other in this manner you should get the result as you posted.
Note: this only works for reports or if you print the results of a form. If you do not intend to allow entry of data into the form it would be better served as a report.

How input boxes save previous entries

Quick question here. I am creating a web app using MVC. I've noticed when I add input boxes to pages, they save previous entries in a dropdown fashion, like so:
While this IS handy, I'd like to know a couple things:
How/Where are these previous entries being saved? Is this my browser or an MVC thing?
If need be, how can I override this default behavior?
Thanks!
I'm not sure what's in your specific project, but it could be one of three things:
Some browsers, if you submit a form, remember the submitted values and automatically make inputs autocomplete. The autocomplete HTML attribute on forms and inputs can help to control that.
HTML 5 has a datalist element which lets you associate a list of options with an input, so autocomplete can be implemented manually.
There may be some JavaScript, potentially paired with AJAX doing this autocomplete.

Is there any way to focus on a cell of a DataGrid without setting it to editable?

I am currently working on making my Flex application accessible.
I have an mx DataGrid that I am using for showing complex data. Each row contains information about a person and one of the columns contains a button to "submit" that person's information.
Currently if I tab to the DataGrid, it has focus on the whole thing, but I cannot tab to individual cells. For accessibility purposes, I need the user to be able to tab to each of these cells to read the information. Everywhere I've looked I've found that it seems the only way to focus on an individual cell is to set the editable property to true. However, I do not want to make the field editable, as that information should not be changed.
At the very least I would like to be able to tab to the cell that has the button ItemRendender for each person. I could set the rest of the information in the accessibilityName of that.
Is there any way to accomplish this? Or am I going to have to find a more "creative" solution?
In case anyone is wondering how to get around this, the only way I could find is to switch over to an AdvancedDataGrid. If you set the ADG's selectable property to true, you can use the arrow keys to select a whole row at a time, and the screen reader will read the whole row of information.
Then to get the effect of clicking the row's button, I set a keyboard event watcher that performs the function of the button using the target(ADG)'s selected item when you press space.