我有两个ul元素,它们具有telerik autoComplete控件。因此,每当我尝试更改ul元素的文本时,都会触发onRowChange事件,该事件最初会检索行,但是就我而言,如果我尝试更改First telerik autoComplete(first ul element)控件的文本,那么我不是获取当前的rowid。我得到的不是1,而是0。请问你们能帮我这个忙吗?提前致谢 下面是代码:
[convolutional]
binary = 1
batch_normalize=1
filters=128
size=3
stride=1
pad=1
activation=leaky
jQuery:
<div id="ParentDiv" style="margin-bottom: -3% !important; margin-top: -3% !important">
<ul style="" id="ChildUl_1" class="ChildUlClass_1">
<li style="margin-right: 12% !important" class="ruleAutocomplete">
<label style="margin-left: -48% !important"> Rule <span class="astrik">*</span></label>
<div>
@(Html.Telerik().AutoComplete()
.Name("AutoComplete_1")
.BindTo((ViewData["Employee"]) as List<string>)
.Encode(true)
.AutoFill(true)
.ClientEvents(events => events.OnChange("HRServices.onRuleChange"))
.HtmlAttributes(new
{
@autocomplete = "on"
})
.Filterable(filtering => filtering.FilterMode(AutoCompleteFilterMode.Contains)
.MinimumChars(3)))
</div>
</li>
</ul>
<ul style="" id="ChildUl_2" class="ChildUlClass_2">
<li style="margin-right: 12% !important" class="ruleAutocomplete">
<label style="margin-left: -48% !important"> Rule <span class="astrik">*</span></label>
<div>
@(Html.Telerik().AutoComplete()
.Name("AutoComplete_1")
.BindTo((ViewData["Student"]) as List<string>)
.Encode(true)
.AutoFill(true)
.ClientEvents(events => events.OnChange("HRServices.onRuleChange"))
.HtmlAttributes(new
{
@autocomplete = "on"
})
.Filterable(filtering => filtering.FilterMode(AutoCompleteFilterMode.Contains)
.MinimumChars(3)))
</div>
</li>