vikramlearning / blazorbootstrap

An Enterprise-class Blazor Bootstrap Component library built on the Blazor and Bootstrap CSS frameworks.
https://docs.blazorbootstrap.com/
Apache License 2.0
670 stars 32 forks source link

Grid: Pre-select a row via code #298

Open Pratico76 opened 1 year ago

Pratico76 commented 1 year ago

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

gvreddy04 commented 1 year ago

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

Pratico76 commented 1 year ago

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); } }