ListSearchExtender和AutoPostBack [英] ListSearchExtender and AutoPostBack

查看:100
本文介绍了ListSearchExtender和AutoPostBack的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在UpdatePanel中将DropDownList控件与AJAX ListSearchExtender一起使用.自从我添加了扩展器以来,直到您跳出控件或单击Enter时,DropDownList的事件才会触发.我的用户需要立即查看更改,而无需按Tab键或按Enter键.有什么方法可以做到这一点?

I''m using a DropDownList control with an AJAX ListSearchExtender within an UpdatePanel. Since I added the extender, the DropDownList''s events are not firing until you tab out of the control or click enter. My users need to see the changes immediately without having to tab or press enter. Is there any way to accomplish this?

推荐答案

扩展程序不是从控件中隐藏事件,这是不正确的.如果您在例程中稍作休息,则可能会发现事件处理程序代码正在运行.如果要更新不在更新面板中的异步回发控件,请查看此链接 http ://msdn.microsoft.com/en-us/magazine/cc163354.aspx [ ^ ]

我的用户需要立即查看更改,而无需按Tab键或按Enter键"-控件如何知道您的用户已完成输入字符?应该有一种正确的方法...输入,制表符,模糊事件等,
It is not true the extender hide the events from the control. If you put a break inside your routine you may found the event handler code is running. If you want to update a control on a async postback which is not inside the update panel then look at this link http://msdn.microsoft.com/en-us/magazine/cc163354.aspx[^]

"My users need to see the changes immediately without having to tab or press enter"- How the control knows your user finished entering chars? There should be a way to tell it right...enter, tab, blur event etc.,


这篇关于ListSearchExtender和AutoPostBack的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆