Showing posts with label select. Show all posts
Showing posts with label select. Show all posts

Monday, March 26, 2012

AJAX AutoCompleteExtender does not show a scroll bar

Below is the Web Service that I'm using for the AutoCompleteExtender.

Basically, it runs the SQL SELECT statement to retrieve a list of items in a form of string array depending on the user's input.

Everything works fine, but the AutoCompleteExtender doesn't seem to show a vertical scroll bar.

I set CompletionSetCount = 20, but the list goes as far as the returned list (string array, in this case)

This obviously makes the webpage very, very, very long if user only types in the first character.

Am I missing something here?

Thanks.

Hi,

Please refer to these threads:

http://forums.asp.net/t/1113604.aspx

http://forums.asp.net/t/1126776.aspx

Ajax AutoCompleteExtender causing validators to fire

Hi,

I'm having a problem with validators firing whenever I select an item in a field extended with autocomplete (I guess pressing the enter key is trying to submit the form?). How can I get around this?

Thanks

The autocomplete extender does not stop the enter key event from propagating to the form which causes the validators to kick in. I think we would like to stop that and let the event propagate if an item has been selected. Could you please open a bug on this? Thanks.

Wednesday, March 21, 2012

AJAX acting inconsistently

I have the following scenario:

Default.aspx -- start page (2 drop down lists)

I kept these 2 drop down lists under update panel ...but when i select drop down 1...it is also calling SelectedItemIndexChanged for Drop Down list 2...

When i commented out Updated Panel...then it is working properly...

How can i solve this situtation??

I phared the question in wrong way...

the thing that is happening is:

When i changed the Drop Down List 2, it is first calling SelectedItemIndexChanged of drop down list 1, then it is going to drop down 2 SelectedItemIndexChanged.

When i commented out Update panel...then it is working properly... How to tackle this situtation?

AJAX Accordion - Disable panel opening when linkbutton clicked

I am using a DataBound accordion that has a table in the headertemplate. The last column of the table contains a linkbutton to select the row and move on to the next page. Is there any way I can disable the panel opening when this button is clicked? It starts to expand the panel but then executes the button click and moves to the next page. It doesnt look great and Im not allowed to move the button into the detail either. I know its unlikely there is such a solution but does anybody know of a way round this?

I have found a solution to this, if anybody wants to know.

If you have the source code for the Accordion, open AccordionBehavior.js and find

_onHeaderClick :function(evt) {

I have added a section near the top, after the first batch of declarations, as such:

//dont open pane if the next button was clicked

if (evt.target.src)

{

var string1 = evt.target.src.toString();// the imageURL of the button

var matchPos1 = string1.indexOf("btnNext.gif");if(matchPos1 > 0)

{

return;

}

}

Of course, this is hard coded to the button's ImageURL, so you may wish to change it so you can pass in the string parameter to make the function more generic, but hey its OK for my needs and its working!! Which Im very happy about!!!!

Hope that helps someone in the future.