We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Custom Cell Buttons

Thread ID:

Created:

Updated:

Platform:

Replies:

74682 Jun 24,2008 12:49 PM Aug 13,2008 10:32 AM Windows Forms 3
loading
Tags: GridControl
Dave Daniels
Asked On June 24, 2008 12:49 PM

Hello,

Right now I am working on a grid that has 4 different buttons. These buttons are distinctly different images with a normal state image and a mousedown image. I have looked at the various samples and it looks like if I want to use and image for a button, I have to create a renderer. Is there a simpler way of doing this? The way I am interpreting this is I have to create separate renderers for each of the 4 buttons. The way the renderer is currently created is not conducive to a factory pattern.

Any help I can get is greatly appreciated.

Thanks,
DVD


Administrator [Syncfusion]
Replied On June 24, 2008 08:19 PM

You can have a single CellModel/CellRenderer that can display differing bitmaps from cell to cell. You can pass in the bitmaps through the style.ChoiceList. Here is a little sample showing one way to do this.


http://www.syncfusion.com/support/user/uploads/GC_Buttons_39fe7fce.zip



Dave Daniels
Replied On June 25, 2008 01:20 PM

Thanks Clay,

That was just the solution I was looking for.

Sincerely,
DVD


Dave Daniels
Replied On August 13, 2008 10:32 AM

Currently this is working great. Syncfusion is always helpful with your products now I need to take this to the next level.

Right now I have a custom cell buttons with 4 buttons each and all is working great. Now with those buttons within that custom cell with 4 buttons, I want to display a SuperToolTip on each individual button on hover. I have tried tapping in to the Draw override but that doesn't always fire on the HoverChange. I know there has to be a way to do this and I am trying to tap in to the HoverChanged event in the cell renderer but that is not working either.

I know there is something I can tap in to because I can see it change the hovering on each button.

Thanks in advance for your help.

DVD


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;