This is a migrated thread and some comments may be shown as answers.

Double postback on filtering by Enter key in Opera.

1 Answer 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Neadequant
Top achievements
Rank 1
Neadequant asked on 12 Oct 2010, 09:17 AM

Hello.

I use radGrid to show some data on a web page.

The radGrid is placed into an AJAX panel.

Some of the databound columns of the grid have AutoPostbackOnFilter set to 'true' and CurrentFilterFunction set to 'Contains'.

No filter template is specified. So default filters are used.

When using IE 8,9 and Chrome everything is OK, but there is a problem in Opera (10.62).

When I type some text in the filter field and then press Enter key, radGrid makes 2 ajax-postbacks instead of 1.

KeyPress event is not fired on Enter key, but 2 OnCommand events are fired with commandName='Filter'.

So, the question is: How to avoid such behaviour and make only one ajax-postback on filtering by Enter key.

I tried to find the answer on telerik forums and in demos, but still have no success.

You can see the described behaviour on radGrid demo:

http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx

Type 'Vins' in ShipName column filter and press Enter. You will see that 2 ajax-postbacks occured.

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 15 Oct 2010, 11:37 AM
Hi Neadequant,

I followed your steps and I was able to replicate the issue. However it is replicable without RadControls on the page as well. It seems that it is Opera browser behavior to initiate two postbacks when enter is pressed for input controls with AutoPostBack set to true.

You can try the attached sample and see how it goes.

However I have forwarded this issue to out developers so they can see if we can address the problem somehow.

Regards,
Iana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Neadequant
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or