Focus edit-form popup for Telerik MVC Grid
How can you focus the edit-form Popup fo开发者_如何学Pythonr Telerik MVC grid? Solutions that not hack Telerik code are preferred.
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>
精彩评论