To use:
<div class="editor-label"> @Html.LabelFor(model => model.CategoryId, "Category") </div> <div class="editor-field"> <table> <tr> <td>@Html.AjaxComboBoxFor(model => model.CategoryId, "/Category/Lookup", "/Category/Caption", new { style = "width: 300px " }, new { sub_info = true, on_selected = "thisIsOk();" }) </td> <td>@Html.ValidationMessageFor(model => model.CategoryId)</td> </tr> </table> </div> <script> function thisIsOk() { alert('This is great!'); } </script>
Download it from Google Code
Or get an SVN copy
No comments:
Post a Comment