Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
190
Cell Templates
posted

Hi There,

I'm looking for some cell templating examples for asp.net core mvc helper. I've been through the documentation, blogs etc but cannot find details on this. Specifically what i'm trying to do is that when i hover over a particular column i would like it to display the full contents of a different column in the grid. Right now i'm using an unbound column to render a hyperlink that will show it, but it's not ideal.

Are there any sample projects that have this functionality that i can look at?

Thanks

Parents
No Data
Reply
  • 0
    Offline posted

    To achieve your goal in ASP.NET Core MVC, you can use a combination of server-side configuration and client-side JavaScript. Start by defining a custom cell template in your grid to handle the hover behavior. For example, you can use a ClientTemplate in the grid to render a div with a data-full-text attribute that stores the content of the other column you want to display. Then, use JavaScript to add a hover event to the cell. When the user hovers over the column, the script retrieves the data-full-text value and displays it, such as in a simple tooltip or modal. This approach avoids relying on unbound columns and provides a cleaner, more user-friendly solution for displaying additional content dynamically.

Children