I have a dynamic form with one field as a Canvas Item.
Canvas Item contains a list gird and a picker icon. Please see the below code.
Now the icon is coming in the center (along with the grid). I want to align the icon to the top (so it will appear next to grid header). I tried all properties but not able to do so. Please help.
Canvas Item contains a list gird and a picker icon. Please see the below code.
Now the icon is coming in the center (along with the grid). I want to align the icon to the top (so it will appear next to grid header). I tried all properties but not able to do so. Please help.
Code:
isc.DynamicForm.create({ ID:"DistSetForm", width:"100%", height:"400px", cellPadding:5, requiredTitlePrefix: "* ", autoDraw: false, fields: [{name: "AssosViews", title: "Associated Views", type: "CanvasItem", titleVAlign: "top", align: "top", showPickerIcon: true, pickerIconSrc:"[SKIN]/actions/plus.png", pickerIconHeight:15, pickerIconWidth:15}]}); isc.ListGrid.create({ ID:"AssosViewsGrid", autoDraw: false, alternateRecordStyles: true, canRemoveRecords: true, fields:[{ name:"viewId", showIf:"false"}, { name:"name", title:"View Name"}], data:[{ viewId: "-1", name:"All"}]}); DistSetForm.getField("AssosViews").setCanvas(AssosViewsGrid);
Comment