Blazor Grid issues

I am trying to get a blazor to be single select with a checkbox. Is that possible?

Also, I would like the alternating rows to be a different color. It does not seem to be responding to any CSS I provide.

Finally, I cannot find an example to enable in line editing of columns in a grid. 


Thank you

1 Reply

RS Renjith Singh Rajendran Syncfusion Team May 20, 2020 09:09 AM UTC

Hi Jim, 

Greetings from Syncfusion support. 

Based on your requirement, we suggest you to bind the RowSelecting event of Grid. And in this event handler, call the ClearRowSelection method of Grid to achieve this requirement.  
 
Please refer the code below, 

 
<SfGrid @ref="GridInstance" DataSource="@Orders" AllowSelection="true"> 
    <GridEvents RowSelecting="RowSelecting" TValue="Order"></GridEvents> 
    ... 
</SfGrid> 
 
@code{ 
    public List<Order> Orders { getset; } 
    SfGrid<Order> GridInstance; 
    ... 
    public async Task RowSelecting(RowSelectingEventArgs<Order> args) 
    { 
        await GridInstance.ClearRowSelection(); 
    } 
    ... 
} 


Please get back to us if you need further assistance. 

Regards, 
Renjith Singh Rajendran 


Loader.
Up arrow icon