开发者

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜