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
1179
Grid cell with multiple editor buttons
posted

Hi,

I have a grid cell which I'd like to have editable text and a pair of editor buttons. I don't think is possible on the grid itself, so I thought I could use a regular ultratexteditor with the two buttons on it, and set this to be the EditorComponent for the column. Of course, this doesn't work because you're only using the control's internal editor. Is there a way to achieve what I'm looking for? I could add two button columns, but then I'll need to add code to prevent them being out of their correct position to the right of the text field I want them associated with. It also wouldn't look as well integrated as I'd like. Is there a way of achieving what I'm looking for?

Kevin

Parents
No Data
Reply
  • 469350
    Offline posted

    Glad you got this working. I was pretty puzzled by your original post, since this absolutely should work. The only trick to it is that you have to handle the events on the UltraTextEditor in order to trap the button clicks, rather than any event of the grid. And the e.Context in the event gives you the grid cell in which the buttons are being clicked. 

    I understand why this might be confusing, since most of the time, you have to use an event of the grid. But Editor buttons are one of the few rare exceptions to the rule. :) 

Children