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
735
Multiple buttons in cell
posted

 Hi,

I need to have multiple buttons inside a single grid cell. The buttons will be used to show a particular row in a child band. Taking an Order/Order lines example. I want the Orders table row to have a unbound column that will be dynamically filled with horizontal buttons for each Order Line row in that order. Looking at the image below, each of the 3 rows in the Order Lines column is a button that when pressed will expand the Order Lines child band that is filtered to show only that particular order line that was selected.

What I don't know how to do is:

  1. How to add multiple buttons to a cell dynamically. (I use custom entities, so getting a list of order lines that I can loop though and assign the caption to the button based on that line is simple for me.) 
  2. How to handle the click events for those buttons.

Is this design even possible using existing editor controls?

Thanks