Is it possible to change cursor for SfGrid?

I am presenting data in an SfGrid. The data is read only and I would like to show something other than the edit cursor, when hovering over a row.

Is this possible?

5 Replies 1 reply marked as answer

RS Renjith Singh Rajendran Syncfusion Team September 14, 2020 08:46 AM UTC

Hi Jim, 

Greetings from Syncfusion support. 

You can customize the default Grid’s display by overriding the default styles for the corresponding classes in Grid based on your requirement. Please refer the below documentation for more details,  

Please add the below styles to customize the cursor display in Grid, 

<style> 
    .e-grid .e-rowcell{ 
        cursor:no-drop; 
    } 
</style> 


Please get back to us if you need further assistance. 

Regards, 
Renjith Singh Rajendran 


Marked as answer

KC Kenny Carneal September 26, 2024 06:46 PM UTC

I realize this is an old post, but when I use this approach on a page and then open a dialog over top this same style is applying to the second grid inside of the dialog. Is there a way to specify that this only applies to the current grid and not to the dialog opened over top of it?



PS Prathap Senthil Syncfusion Team September 27, 2024 01:09 PM UTC

Hi Kenny,

Greetings from Syncfusion,

Based on your requirements, we suggest customizing the CSS using the Grid ID to achieve your desired outcome for applying CSS customization to a specific grid. Kindly refer to the code snippet and sample below for your reference.

<style>

    #Grid.e-grid .e-rowcell {

        cursor: no-drop;

    }

</style>



https://blazorplayground.syncfusion.com/embed/hDBpDurwgbKCplgJ?appbar=true&editor=true&result=true&errorlist=true&theme=bootstrap5


Regards,
Prathap Senthil



KC Kenny Carneal replied to Prathap Senthil October 1, 2024 06:48 PM UTC

Thank you so much that works perfectly! You and the whole support team are wonderful :)



NP Naveen Palanivel Syncfusion Team October 2, 2024 05:10 AM UTC

Hi Kenny,

Welcome,


We are glad to hear that the reported issue resolved at your end.

Kindly get back to us if you have further queries.


Regards,

Naveen


Loader.
Up arrow icon