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

Filter Bug

4 Answers 113 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ruchi
Top achievements
Rank 1
Ruchi asked on 18 Jul 2011, 09:24 AM
Hi All,

I have found one very strange bug in the telerik grid filter functionality.

I have used basic filter functionality like below :

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

Its working fine if i used Rad Ajax Loading Panel like below :

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManager ID="rad1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rgTest">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgTest" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

But if I provide Skin for the Rad Ajax Loading Panel then first time focus lost from filter textbox and after that it did not work properly. Textbox focus not lost from filter textbox and i can not even add new characters or delete characters I need to once again set focus explicitly on the filter textbox to do any changes.

Below find code that cause above issue :

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"
    </telerik:RadAjaxLoadingPanel
    <telerik:RadAjaxManager ID="rad1" runat="server"
        <AjaxSettings
            <telerik:AjaxSetting AjaxControlID="rgTest"
                <UpdatedControls
                    <telerik:AjaxUpdatedControl ControlID="rgTest" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls
            </telerik:AjaxSetting
        </AjaxSettings
    </telerik:RadAjaxManager>

4 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 18 Jul 2011, 03:30 PM
Hi Ruchi,

I tried to reproduce the problem in couple of  different projects, but to no avail. Could you make some screen shots or more thorough explanation of the problem?

Greetings,
Andrey
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Ruchi
Top achievements
Rank 1
answered on 19 Jul 2011, 07:33 AM

Hi Andrey,

Thanks for your reply. I have tried to reprodure same bug in telerik demo example but i failed so i am missing some web.config or some other setting here. If you are tring to filter the Ship Name first time then its working fine and focus lost from filter textbox but second time when you filter the same field you will see that focus still on that filter textbox of Ship Name column and you will not able to do any action like you can not delete the text or can not append the characters in the text. If you will focus the mouse cursor agian on that filter textbox after that you will do any action.

If i remove Skin from Ajax Loading Panel then its working fine. But i need that loading panel icon on my screen for any gridviw action :(

From image file you will not understand the problem so i need to attach zip file but I am not able to attach zip file here any solution to send you zip file of project :(

0
Accepted
Andrey
Telerik team
answered on 21 Jul 2011, 12:38 PM
Hello Ruchi,

I tested it and was able to replicate the issue in IE8 browser only. I assume that this behavior is related to an issue with IE8 where input controls loose their state after the second ajax request in case postback is invoked while the control was in focus. And due to the lost state and the fact that you are trying to focus such inputs, the mentioned error is thrown. Fortunately we found an easy to use workaround for the problem. You can try it by handling the RadAjaxManager OnRequestStart client-side event as below:
function RequestStart() { 
    if ($telerik.isIE8) { 
        document.documentElement.focus(); 
    
}


Regards,
Andrey
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Ruchi
Top achievements
Rank 1
answered on 21 Jul 2011, 03:15 PM
Hi Andrey,

Thank you so much. Its working..

You are right this issue was only with IE 8 browser. Its working fine for other browsers and previous versions of IE

Thank you once again :)


Tags
Grid
Asked by
Ruchi
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Ruchi
Top achievements
Rank 1
Share this question
or