Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
Hi,
I have textbox with a ajaxautocomplete extender ,as
 
 <asp:TextBox ID="TextBox1" onblur="callfunction()" runat="server"></asp:TextBox>
<ajaxToolkit:AutoCompleteExtender
     runat="server"
    ID="autoComplete1"
    TargetControlID="TextBox1"
    ServiceMethod="GetCompletionList"
    ServicePath="AutoComplete.asmx"
    MinimumPrefixLength="2"
    CompletionInterval="1000"
    EnableCaching="true"
    CompletionSetCount="20"
    CompletionListCssClass="autocomplete_completionListElement"
    CompletionListItemCssClass="autocomplete_listItem"
    CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
    DelimiterCharacters=";, :"
    ShowOnlyCurrentWordInCompletionListItem="true">      
</ajaxToolkit:AutoCompleteExtender>
 
function callfunction(){
alert()
}
 
Whenever the list is autopopulated,a sroll like a dropdownlist is displayed ,
I want the scroll to be displayed ,
If i click on the item which is populated, callfunction() function is getting not getting executed,
but the problem is if i click on the scroll, callfunction() is getting executed,
 
I dont want when user click on the scroll, the callfunction() should be executed.
How to find whether scroll is click or not ??.so that i can stop callfunction to be executed that time.
Posted 6-Dec-12 4:18am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 449
1 ChintanShukla 305
2 Sergey Alexandrovich Kryukov 293
3 RyanDev 250
4 Richard Deeming 250
0 Sergey Alexandrovich Kryukov 8,906
1 OriginalGriff 7,601
2 CPallini 2,603
3 Richard MacCutchan 2,121
4 Abhinav S 1,923


Advertise | Privacy | Mobile
Web01 | 2.8.140827.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100