Go Back   SmartClient Forums > Technical Q&A
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 8th May 2008, 22:49
varun.shesh varun.shesh is offline
Registered Developer
 
Join Date: Oct 2007
Posts: 36
Default Regarding dynamicForm button.

Hi isomorphic,

How to change the title of button which comes under dynamicform. it's possible for isc.Button and isc.IButton. i tried a lot. but unable to do that.
plze give me solution to the title for dynamicform button. thanks in advance.

Regards
Varun.
Reply With Quote
  #2  
Old 9th May 2008, 01:03
nickc nickc is offline
Registered Developer
 
Join Date: Dec 2007
Posts: 167
Default

You can use a IButton and then position it with a Layout.

Code:
IButton.create({title:"Save", click:"YOURFORMNAME.saveData();", width:100})
Reply With Quote
  #3  
Old 9th May 2008, 07:18
Isomorphic Isomorphic is online now
Administrator
 
Join Date: May 2006
Posts: 30,579
Default

Try using the title property of a form field whose type is set to button:
Code:
isc.DynamicForm.create({
    fields: [
        ....
        {name: "testButton",
          title: "some text",
          type: "button"
        }
        ....
    ]
});
Reply With Quote
  #4  
Old 9th May 2008, 09:35
Nagi21 Nagi21 is offline
Registered Developer
 
Join Date: Mar 2008
Posts: 7
Default

With this property how set and reset Name...
Can we use setTitle property for it???
Reply With Quote
  #5  
Old 9th May 2008, 09:44
Isomorphic Isomorphic is online now
Administrator
 
Join Date: May 2006
Posts: 30,579
Default

Yes, use setTitle() like so:
Code:
exampleForm.getItem('button').setTitle('hello');
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


© 2010,2011 Isomorphic Software. All Rights Reserved