blazorbootstrap icon indicating copy to clipboard operation
blazorbootstrap copied to clipboard

Grid: Pre-select a row via code

Open Pratico76 opened this issue 2 years ago • 2 comments

it's not possible to select a grid element via code for example on Row click event.

Is not really a bug but maybe a new implementation

Pratico76 avatar Jul 20 '23 13:07 Pratico76

@Pratico76 Could you please provide us with more context regarding the purpose of use?

gvreddy04 avatar Jul 30 '23 15:07 gvreddy04

I suggest implementing the selection of one or more items/rows via code. An example would be the follow:

@code { //standard declaration BlazorBootstrap.Grid grid1 = default!; //an example of code void onGenericEvent() { grid1.SelectedRows(list of ID); } }

Pratico76 avatar Jul 31 '23 08:07 Pratico76