I have a UI that changes dynamically.
Every time it changes I'm adding new controls to the appropriate settings in my Input manager.
For example, a user selects an item from a drop down.
I clear the UI and reload it.
I see that I need to expose
which is done something like this, for each type of setting i may have (date, numeric, text etc)
As the UI keeps changing and I keep adding Ids to the various input settings collections, the target input Id collections will get larger and larger and the settings collections will have references to Ids for elements that no longer exist on the UI.
I'm wondering if there is a standard way to clear the target input Ids collections.
Regards.
Every time it changes I'm adding new controls to the appropriate settings in my Input manager.
For example, a user selects an item from a drop down.
I clear the UI and reload it.
I see that I need to expose
- 2 numeric setting text boxes
- 1 alpha numeric text box
- 1 date time text box
which is done something like this, for each type of setting i may have (date, numeric, text etc)
//get all datetime data format text boxes and convert them into datetimes |
elements = $('input.datetime', context); //find my date inputs within the given context |
var dateSettings = $find('RadInputManager').get_inputSettings('DateTimeSettings'); |
generateInputIds(elements); //generates unique ids for the found fields |
for (var idx = 0; idx < elements.length; ++idx) { |
dateSettings.addTargetInput(elements[idx].id); |
} |
As the UI keeps changing and I keep adding Ids to the various input settings collections, the target input Id collections will get larger and larger and the settings collections will have references to Ids for elements that no longer exist on the UI.
I'm wondering if there is a standard way to clear the target input Ids collections.
Regards.