Reputation: 834
How can you focus the edit-form Popup for Telerik MVC grid? Solutions that not hack Telerik code are preferred.
Upvotes: 0
Views: 985
Reputation: 30671
You can use the OnEdit event of the grid, find some input element from the form and focus it. Here is some sample code:
<script type="text/javascript">
function Grid_onEdit(e) {
var form = e.form;
$(form).find("input:first").focus();
}
</script>
Upvotes: 3