I have a Telerik MVC Grid and this has a popup editor for each row. The editor is configured like this:
.Editable(e => e.Mode(GridEditMode.PopUp).TemplateName("MyItemEditor"))
The "MyItemEditor" is a.cshtml file containing some controls, including a ComboBox.
I want to modify the combo box in a couple of ways:
(1) On focus it should automatically open its dropdown list of items.
(2) When the user presses the Backspace key, all the text in the combo entry field should be deleted (not just the last character).
I have managed to achieve these two things in a combo that is not inside a template, by running some jquery in the $(document).ready function to add extra events to the combo. But, when the combo is inside a template, the combo is not actually initialised until the popup is opened.
Am I tackling this in the wrong way? Is there an "OnLoaded" event of the combo that I can hook into? I can't find one.