Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    colSpan and rowSpan in Dynamic form

    Hi,

    For the case of radioGroup, how could I put 'b' after radio buttons?


    Code:
    <%@ page contentType="text/html; charset=UTF-8"%>
    <%@ taglib uri="/WEB-INF/iscTaglib.xml" prefix="isomorphic" %>
    <HTML><HEAD><TITLE>test</TITLE>
    <isomorphic:loadISC skin="SmartClient" />
    </HEAD><BODY>
    <SCRIPT>
    isc.DynamicForm.create({
    	ID:"edit",
    	useAllDataSourceFields:false,
    	fields:[
    		{name:"ID", title: "ID", type:"text"},
    		{name:"StartTime", title: "Start Time", useTextField:true,type:"date", startRow: true},
    		{name:"ActivateEvery", title: "",colSpan:2, rowSpan:2,type:"radioGroup",valueMap:["Activate Every","Activate"],defaultValue:"Activate Every"},
    		{name:"recurrence1", title: "a",type:"enum", defaultValue:"2 Days"},
    		{name:"recurrence2", title: "b",type:"enum", defaultValue:"Weekly"},		
    		{name:"Status", title: "Status",type:"text",startRow: true},
    		{name:"Description", rowSpan:3, colSpan:4, type:"textArea", startRow: true},
    		{name:"savebtn", editorType:"button", align:"center", 
                width:100, colSpan:4, title:"Save Item", click:"editSchedule.saveData()"}
    	],
    	width:300,
    	numCols:7,
    	colWidths:[50,100,50,100,100,100],
        margin:25,
    	cellPadding:5,
    	cellBorder:1,
    	autoFocus:false
    });
    
    </SCRIPT>
    </BODY></HTML>
    Last edited by xwang; 27 Feb 2008, 12:04.

    #2
    Setting rowSpan:2 on the startTime item should do it
    Thanks

    Isomorphic Software

    Comment


      #3
      that works!

      Is there a way to remove column for 'empty' title?

      thanks!

      Comment


        #4
        Try showTitle:false on the item.

        Comment

        Working...
        X