Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

DynamicForm with ButtonItem on either side of DateItem

$
0
0
I would like to place a ButtonItem on either side of the DateItem.

Here's my attempt, "this" is a DynamicForm):
Code:

                this.prevDayBtn = new ButtonItem(prevDayBtnId,prevDayBtnId);
                this.prevDayBtn.setStartRow(true);
                this.prevDayBtn.setEndRow(false);
               
                this.startDateItem = initialize(new DateItem(startDateId, startLabel), startDate);
                this.startDateItem.setStartRow(false);
                this.startDateItem.setEndRow(false);
               
                this.nextDayBtn = new ButtonItem(nextDayBtnId,nextDayBtnId);
                this.nextDayBtn.setStartRow(false);
                this.nextDayBtn.setEndRow(true);
               
                this.setNumCols(3);
                this.setMinColWidth(1);
                this.setColWidths(10,10,10);
               
                this.setItems(this.prevDayBtn,this.startDateItem,this.nextDayBtn);

Result is attached. The last button is on a separate row. How do I place all on one row?

Attached Images
File Type: png 3-4-2015 1-29-12 PM.png (3.4 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles