Jump to content

Setting defaults for radio buttons


JCPalmer
 Share

Recommended Posts

It errors when you are building a radio button, & possibly other controls, and want to pre-assign whether it is checked, before showing it or connecting / adding it to a container (_host).  You get a  'executeOnAllControls' of undefined, here.  I am getting around this by directly assigning _isChecked.  Since this is being written in typescript & that is private it must be:

radio["_isChecked"] = true;

Thinking, checking if _host is not null might be a good idea.  True, you could screw it up by checking multiples of the same group in initialization, but it should be obvious that this is developer error.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...