This is a migrated thread and some comments may be shown as answers.

Removing textbox from Input Manager using Javascript

1 Answer 73 Views
Input
This is a migrated thread and some comments may be shown as answers.
Marie
Top achievements
Rank 1
Marie asked on 29 Apr 2009, 04:46 PM
Hello,

I have some textboxes that need to be added to and removed from an input manager dynamically (to make the textboxes required or optional) depending on whether a checkbox is checked or not.

When the user clicks on a checkbox, I add my textboxes to the target controls using the following code:

    myInputManager.get_textBoxSettings()[0].addTargetInput(myTextbox.id);

Is there a way to subsequently remove my textboxes from the target controls once the user unclicks a checkbox?  I couldn't find a 'removeTargetInput' method in the client side api.

Thanks,
Marie

 

1 Answer, 1 is accepted

Sort by
0
Todd Anglin
Top achievements
Rank 2
answered on 04 May 2009, 10:24 PM
Hello Marie-

Unfortunately, I don't think this portion of the RadInputManager's client-side API is fully supported (or fleshed-out) in the current version. Your suggestion makes sense, though, so hopefully the corresponding "remove" event can be added in an upcoming release to make the client-side capabilities of RadInputManager more powerful.

At present, the best way to configure RadInputManager is via its server-side API (and RadAjax, if a dynamic update is required). Hope that helps.

-Todd
Tags
Input
Asked by
Marie
Top achievements
Rank 1
Answers by
Todd Anglin
Top achievements
Rank 2
Share this question
or