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

[Solved] Cursor stays in grid search box.

2 Answers 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lubna Ansari
Top achievements
Rank 1
Lubna Ansari asked on 05 May 2010, 01:27 PM

 

Hi,

I am using telerik grid with search boxes in header. When I type some text in any search box an ajax loading panel appears and grid shows all filtered records. But the cursor remains in the search box and when I type anything in there and hit Enter it doesn't filters the record. I have to click out side the search box and then cilck in it again and it works fine.  I am referring your example
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx

In your example the cursor doesn't stay in the search box.
I dont want the cursor to stay in the search box. Am I missing something in my code.
Following is my code

<
telerik:RadGrid AutoGenerateColumns="false" ID="RadGrid1" DataSourceID="dsUserList"

 

 

Width="760px" AllowFilteringByColumn="True" AllowSorting="True"

 

 

PageSize="15" ShowFooter="True" AllowPaging="True" runat="server"

 

 

GridLines="None" EnableLinqExpressions="false" >

 

 

<PagerStyle Mode="NextPrevAndNumeric" />

 

 

<GroupingSettings CaseSensitive="false" />

 

 

<MasterTableView AutoGenerateColumns="false" EditMode="InPlace" AllowFilteringByColumn="True"

 

 

ShowFooter="True" TableLayout="Auto">

 

 

<Columns>

 

 

<telerik:GridNumericColumn DataField="UIN" HeaderText="UIN" SortExpression="UIN"

 

 

UniqueName="UIN" FilterControlWidth="40px" AutoPostBackOnFilter="true" CurrentFilterFunction="equalto" FilterDelay="4000" ShowFilterIcon="false">

 

 

</telerik:GridNumericColumn>

 

 

 

 

 

<telerik:GridBoundColumn FilterControlWidth="105px" DataField="Email" HeaderText="Email" SortExpression="Email"

 

 

UniqueName="Email" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn FilterControlWidth="50px" DataField="Name" HeaderText="Name" SortExpression="Name"

 

 

UniqueName="Name" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith" ShowFilterIcon="false">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridDateTimeColumn FilterControlWidth="120px" DataField="Date_Entered" HeaderText="Date_Entered" SortExpression="Date_Entered"

 

 

UniqueName="Date_Entered" PickerType="DatePicker" DataFormatString="{0:d}">

 

 

<HeaderStyle Width="160px" />

 

 

</telerik:GridDateTimeColumn>

 

 

 

 

</Columns>

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<Scrolling AllowScroll="false" />

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

Regards,
Lubna.

 

2 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 10 May 2010, 10:00 AM
Hi Lubna,

I followed your scenario in order to replicate the issue you are facing but to no avail. Please find attached to this message a simple runnable project which is working as expected. Check it out and let me know if other questions or problems arise.

Greetings,
Pavlina
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.
0
Lubna Ansari
Top achievements
Rank 1
answered on 10 May 2010, 10:24 AM
Hi Pavlina,

Thanks for the reply.
The same probelm is occuring in your code too.
If write Nancy in First name and hit enter, it searches the proper record. Now click on Extension and type any number and hit Enter. It will say 'No record to disply' but your cusror remains in Extension serach box. If you remove the entered number using backspace of your keyboard and hit Enter then it doesnt show you proper record. It is working only if you click in the grid and then type in search boxes.

I have found the solution for this. I am now transfering the focus to the grid every time I load the page and overcome the above error.

Regards,
Lubna.
Tags
Grid
Asked by
Lubna Ansari
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Lubna Ansari
Top achievements
Rank 1
Share this question
or