私はKendo UI MVC ラッパーを使用しており、次のようなコードがあります。
@(Html.Kendo().DropDownList()
.Name("MyField_Something")
)
次のような html が生成されます。
<div class="editor-field">
<span class="k-widget k-dropdown k-header" tabindex="0" style="" unselectable="on">
<script>
jQuery(function(){jQuery("#MyField_Something").kendoDropDownList();});
</script>
<span class="k-invalid-msg" data-for="MyField.Something"></span>
</div>
私の質問は、剣道がレンダリングする前にそのjQueryスクリプトのセレクターを変更することは可能ですか? idだけでなく、その親要素も次のようにしたいと思います。
<script>
jQuery(function(){jQuery("#ParentElement #MyField_Something").kendoDropDownList();});
</script>
どうすればこれを達成できますか?