ÕÒ»ØÃÜÂë
 Á¢¼´×¢²á

QQ怬

Ö»ÐèÒ»²½£¬¿ìËÙ¿ªÊ¼

raul1122

Ö춻áÔ±

42

Ö÷Ìâ

155

Ìû×Ó

980

»ý·Ö

Ö춻áÔ±

»ý·Ö
980

»î×Ö¸ñÈÏ֤΢ÐÅÈÏ֤ѫÕÂ

raul1122
Ö춻áÔ±   /  ·¢±íÓÚ£º2015-12-23 18:00  /   ²é¿´£º5315  /  »Ø¸´£º8
ÎÒÃÇϵͳÖÐÐèҪʵÏÖ ¿ÉÊä¿ÉÑ¡ µÄ¹¦ÄÜ £¬Ä¿Ç°²ÉÓà AutoCompleteCellType Óöµ½ÒÔϼ¸¸öÎÊÌ⣬Çë°æÖ÷¸øÓè»Ø¸´
1. webservice ·½·¨ÖУ¬ÎÒÃDzÉÓà JSON ×Ö·û´®µÄÐÎʽʵÏÖÁË AutoComplete µÄ textºÍvalue ¼´ ͨ¹ý OnClientItemSelected ǰ̨·½·¨Äܹ»»ñÈ¡µ½Óû§Ñ¡ÔñµÄ textºÍvalue£¬µ«ÊÇÔÚºǫ́½øÐб£´æʱ£¬µ¥Ôª¸ñµÄÖµ¶¼ÊÇtext ¼´£¨Óû§Ñ¡Ôñ Öйú Õâ¸öÑ¡Ïî ¶ÔÓ¦µÄ ´úÂë ÊÇ 156£¬Ç°Ì¨»ñÈ¡µÄÊÇ text£ºÖйú£¬value£º156£¬ºǫ́»ñÈ¡µÄµ¥Ôª¸ñµÄÖµ¶¼ÊÇ text ºÍ value Öйú£©
2.ÎÒÃÇÏÖÔÚÐèҪʹÓà AutoCompleteCellType ʵÏÖÊ¡ÊÐÏؼ¶ÁªµÄЧ¹û£¬webservice ·½·¨ÖÐʹÓà 3¸ö²ÎÊýµÄ·½·¨ ¼´
public string[] ServiceMethod (string prefixText, int count,string contextKey)
ÆäÖеÚÈý¸ö²ÎÊý£¬ÊÇҪͨ¹ý onkeydown ·½·¨´«Èë
<script language="javascript" type="text/javascript">
function txtKeyDown() {
            var ddlGrpId = document.getElementById("<%=ddlGroupName.ClientID %>");
            var aceId = "<%=AutoCompleteExtender1.ClientID %>";
            var aceName = $find(aceId);
            if (aceName != null)
                aceName.set_contextKey(ddlGrpId.options[ddlGrpId.selectedIndex].value);
        }
</script>
ÖмäÐèÒª»ñÈ¡µ¥Ôª¸ñµÄID £¬Õâ¸öÔÚºǫ́Ôõô»ñÈ¡£¬»¹ÓÐÈçºÎÔÚºǫ́¶Ôµ¥Ôª¸ñ½øÐÐ onkeydownµÄʼþ°ó¶¨
3.±à¼­µÄʱºò£¬¿Ø¼þ¸³ÖµµÄÎÊÌâ
4.Èç¹ûÉÏÃæËùÊöµÄÎÊÌâ spreadÎÞ·¨ÊµÏÖ£¬ÇëÎÊ»¹ÓÐʲô·½·¨À´ÊµÏÖÀàËƵŦÄÜ £¬ÎÒʹÓõÄÊÇ Spread7

8 ¸ö»Ø¸´

µ¹Ðòä¯ÀÀ
raul1122
Ö춻áÔ±   /  ·¢±íÓÚ£º2015-12-23 18:05:00
ɳ·¢
Ç뾡¿ì»Ø¸´ лл
»Ø¸´ ʹÓõÀ¾ß ¾Ù±¨
raul1122
Ö춻áÔ±   /  ·¢±íÓÚ£º2015-12-24 10:43:00
°åµÊ
ÔõôûÈ˻ظ´°¡
»Ø¸´ ʹÓõÀ¾ß ¾Ù±¨
frank.zhang
ÉçÇø¹±Ï××é   /  ·¢±íÓÚ£º2015-12-24 17:21:00
µØ°å
ÄúºÃ£¬

·Ç³£±§Ç¸£¬ÈÃÄú¾ÃµÈÁË¡£

ÄúµÄÎÊÌâÓ¦¸ÃºÍʵÏֵĴúÂëÓйØϵ£¬ÐèÒªÄúÉÏ´«Ò»¸öÄܹ»ÖØÏÖÕâ¸öÎÊÌâµÄÀý×Ó³ÌÐò£¬ÎÒ¿ÉÒÔ·¢¸øÑз¢µÄͬʵ÷ÊÔÏ¡£
»Ø¸´ ʹÓõÀ¾ß ¾Ù±¨
raul1122
Ö춻áÔ±   /  ·¢±íÓÚ£º2015-12-28 09:09:00
5#
Õâ¸ö¾Í¿ÉÒԲο¼ ÄãÃDz©¿ÍÀïÃæÌṩµÄ°¸Àý£¬¾ÍÊÇ AutoComplete µÄ£¬¾ÍÊÇҪʵÏÖÒ»¸ö¼¶ÁªÐ§¹û
»Ø¸´ ʹÓõÀ¾ß ¾Ù±¨
raul1122
Ö춻áÔ±   /  ·¢±íÓÚ£º2015-12-28 09:11:00
6#
Spread ÀïÃæĬÈ쵀 Combobox¿¨Æ¬µÄÀàÐÍ£¬²»ÄÜÖ§³ÖÄ£ºýÆ¥ÅäÂð£¿Ö»ÄÜ´Ó×öµ½ÓÒÒ»´ÎÆ¥Å䣿»¹ÓоÍÊÇ Ajax À©Õ¹µÄ Combobox ºÃÏñÒ²ÊÇÕâ¸öÑùµÄ£¬Èç¹û²»Ê¹ÓÃAutoComplete ÎÒÓ¦¸ÃÔõÑù×ö£¬²ÅÄÜʵÏÖÀàËƵÄЧ¹û£¿
»Ø¸´ ʹÓõÀ¾ß ¾Ù±¨
frank.zhang
ÉçÇø¹±Ï××é   /  ·¢±íÓÚ£º2015-12-28 16:26:00
7#
»Ø¸´ 5Â¥raul1122µÄÌû×Ó

ÄúºÃ£¬

Äú²Î¿¼µÄ²©¿ÍÊÇÕâƪÂð£¿
http://blog.gcpowertools.com.cn/ ... Ã-×Ô¶¯Íê³É¹¦ÄÜ.aspx
»Ø¸´ ʹÓõÀ¾ß ¾Ù±¨
raul1122
Ö춻áÔ±   /  ·¢±íÓÚ£º2015-12-29 10:57:00
8#
Êǵģ¬ÎÒÃÇÓõľÍÊÇÉÏÃæµÄÕâ¸ö°¸ÁÐ
»Ø¸´ ʹÓõÀ¾ß ¾Ù±¨
frank.zhang
ÉçÇø¹±Ï××é   /  ·¢±íÓÚ£º2015-12-29 17:03:00
9#
ÄúºÃ£¬

·Ç³£±§Ç¸£¬¾­¹ýÑéÖ¤£¬Spread²»ÄÜÖ§³ÖÄ£ºý²éѯ¡£AutoCompleteCellTypeÊÇÒ»¸öÍêÕûµÄ¹¦ÄÜ×é¼þ£¬²»Ö§³Ö×Ô¶¨ÒåµÄ·½Ê½¡£
»Ø¸´ ʹÓõÀ¾ß ¾Ù±¨
ÄúÐèÒªµÇ¼ºó²Å¿ÉÒÔ»ØÌû µÇ¼ | Á¢¼´×¢²á
·µ»Ø¶¥²¿