Go Back   SmartClient Forums > Installation
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 30th Oct 2007, 01:51
gnanaprasuna gnanaprasuna is offline
Registered Developer
 
Join Date: Oct 2007
Posts: 3
Default Collapsable Dropdown

Hi,

When we click a button i am trying to add new row of drop down.I am using this code

<%@ taglib uri="isomorphic" prefix="isomorphic" %>
<HTML><HEAD>
<isomorphic:loadISC />
</HEAD><BODY>
<SCRIPT>
var i=10;

Button.create({
ID: "buttonclick",
left:200, top:20, width:150,
title:"+",

//click:"myLabel.setContents('goodbye')",
action: function(){ isc.DynamicForm.create({
ID: "contactsForm",
left: 400, top: 10,
width: 300,
fields: [
{editorType: "select",
valueMap:["Ms", "Mr", "Mrs"]
}
]
});}
});



</SCRIPT>
</BODY></HTML>

Using this code the dropdown is added to cotainer when we first click the button. my reqirement is to add new drop down to container when action fires. Please suggest me on this.
Reply With Quote
  #2  
Old 30th Oct 2007, 11:15
Isomorphic Isomorphic is online now
Administrator
 
Join Date: May 2006
Posts: 30,525
Default

To what container? There does not appear to be a container in your code.

Perhaps you need to create a ToolStrip and use addMember() to add your generated components?
Reply With Quote
  #3  
Old 30th Oct 2007, 19:42
gnanaprasuna gnanaprasuna is offline
Registered Developer
 
Join Date: Oct 2007
Posts: 3
Default collapsable dropdown

Hi,

my intention is when we click the button ,every time a new drop down should be added below the previous dropdown. Please suggest me on this.

Thanks,
Prasuna
Reply With Quote
  #4  
Old 31st Oct 2007, 03:59
Isomorphic Isomorphic is online now
Administrator
 
Join Date: May 2006
Posts: 30,525
Default

Use a VLayout and call addMember() with the newly created dropdown.

You might want to take a look at the documentation and examples.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


© 2010,2011 Isomorphic Software. All Rights Reserved