RadComboBox OnClientItemsRequested 未触发
下面的代码是否有任何内容会阻止客户端事件“OnClientItemsRequested”触发?我的页面上有几个 RadComboBox 元素,有时会进入不加载任何内容并且不触发“OnClientItemsRequested”事件的状态。我可以做些什么来强制触发此事件吗?
<telerik:RadComboBox
ID="SomeFilter"
runat="server"
Height="230px" Width="300px" style="margin-bottom:5px"
DropDownWidth="298px"
EmptyMessage="Choose..."
HighlightTemplatedItems="true"
EnableLoadOnDemand="true"
EnableVirtualScrolling="true"
ItemRequestTimeout="500"
ShowMoreResultsBox="True"
OnClientSelectedIndexChanging="OnClientSelectedIndexChanging"
OnClientDropDownClosing="OnClientDropDownClosing"
OnClientBlur="OnClientBlur"
OnItemsRequested="TaskEmployeesFilter_ItemsRequested"
OnClientItemsRequested="OnClientItemsRequested"
EnableItemCaching="false">
<ItemTemplate>
...
</ItemTemplate>
</telerik:RadComboBox>
Is there anything about my code below that would prevent the client event "OnClientItemsRequested" from firing? I have a couple RadComboBox elements on a page that sometimes get into a state where they load nothing and don't fire the "OnClientItemsRequested" event. Is there anything I could do to FORCE this event to fire?
<telerik:RadComboBox
ID="SomeFilter"
runat="server"
Height="230px" Width="300px" style="margin-bottom:5px"
DropDownWidth="298px"
EmptyMessage="Choose..."
HighlightTemplatedItems="true"
EnableLoadOnDemand="true"
EnableVirtualScrolling="true"
ItemRequestTimeout="500"
ShowMoreResultsBox="True"
OnClientSelectedIndexChanging="OnClientSelectedIndexChanging"
OnClientDropDownClosing="OnClientDropDownClosing"
OnClientBlur="OnClientBlur"
OnItemsRequested="TaskEmployeesFilter_ItemsRequested"
OnClientItemsRequested="OnClientItemsRequested"
EnableItemCaching="false">
<ItemTemplate>
...
</ItemTemplate>
</telerik:RadComboBox>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您如何将其与数据绑定?您可以通过调用方法 requestItems() 来调用该事件,该方法将请求从客户端发送到服务器。
在这里查看更多信息: http://www.telerik.com/help/aspnet /combobox/combo_client_model.html
您是通过网络服务还是其他方式绑定?
HTH。
How are you binding it to data? You can invoke the event by calling the method: requestItems(), which this method makes the request from the client to the server.
See more about it here: http://www.telerik.com/help/aspnet/combobox/combo_client_model.html
Are you binding via web service, or another way?
HTH.
您可能需要 onClientItemsRequesting 而不是 onClientItemsRequested。在按需加载回发之前触发,之后触发可能会杀死您的事件。
You might want the onClientItemsRequesting rather than onClientItemsRequested. Fires before the load on demand post back, hitting after might be killing your event.