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
880
Displaying a custom control using a cell drop down button
posted

Hi,

I'm trying to get a custom control to appear using a drop down button in a cell. I've found the HOWTO that tells you how to do this (http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=7698) but there is a problem.

The problem is that in my grid I have CellClickAction set to CellSelect (this is an absolute requirement), and with this setting the drop down button only works when the cell is in edit mode. The button is displayed but clicking on it has no effect and doesn't trigger any events (that I can find).

On columns with a standard drop down (using EditorWithCombo) the button functions without having to go into edit mode first.

Is there a way to get the drop down button connected to my custom control to work when CellClickAction is CellSelect?

Thanks,

John.

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi John,

    The cell has to enter edit mode in order to drop down. There's no way around that.

    But there might be other ways to acheive what you want. Why does the CellClickAction have to be CellSelect? What are the requirements you are trying to satisfy?

    I assume you don't want the user to be able to type into the cell. You could acheive the same thing by using UltraComboEditor, instead of UltraTextEditor and hiding the default dropdown button and replacing it with an EditorButton. Then you would simply set the Style of the column to DropDownList. This would prevent the user from typing into the cell, but still allow them to drop it down.

Children