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

search grid view

6 Answers 41 Views
GridView
This is a migrated thread and some comments may be shown as answers.
guy
Top achievements
Rank 1
guy asked on 01 Dec 2010, 04:00 PM
hi,
is there a built in way to searce a grid view and when selected move it to the first position?

6 Answers, 1 is accepted

Sort by
0
Marc Roussel
Top achievements
Rank 2
answered on 10 Dec 2010, 09:31 PM
Same question.  Not the filter but as all the grid I saw, when you select a column, you can type in the first cell of that column and it searchs your text among the values and position itself to the right row

Is there anything like this ? Else I will add a TextBox at the top of the grid and search the grid myself
0
Milan
Telerik team
answered on 11 Dec 2010, 08:32 AM
Hello Marc Roussel,

This functionality is not built-in into the grid but you can easily traverse all data items and find all items that match your criteria and then scroll the the first matching item. 

private void Button1_Click(object sender, RoutedEventArgs e)
{
    // searches for a player whose name contains "ap"
  
    var players = this.playersGrid.Items.OfType<Player>().Where((p) => p.Name.Contains("ap"));
    var firstMatch = players.FirstOrDefault();
  
    if (firstMatch != null)
    {
        this.playersGrid.ScrollIntoView(firstMatch);
    }
  
}


Greetings,
Milan
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Marc Roussel
Top achievements
Rank 2
answered on 11 Dec 2010, 11:01 AM
Ok,

By the way your Login system do not remember me when I check REMEMBER ME
I'ts not my browser as I have this CheckBox on almost 150 other sites.
0
Marc Roussel
Top achievements
Rank 2
answered on 11 Dec 2010, 11:01 AM
Ok,

By the way your Login system do not remember me when I check REMEMBER ME
I'ts not my browser as I have this CheckBox on almost 150 other sites.
0
Atanas
Telerik team
answered on 16 Dec 2010, 09:30 AM
Hi Marc Roussel,

 Thank you for contacting us!


I just checked remember me functionality and seems to work just fine!

Basically it works like this: if you are logged in and checked Remember me, you will be logged in the same browser for 7 days.

Nevertheless if you logout from our site you won't be remembered anymore!

Can you tell us what is your scenario in order to verify is it expected or there is an issue?
Greetings,
Atanas
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Marc Roussel
Top achievements
Rank 2
answered on 16 Dec 2010, 12:07 PM
I don't know about the 7 days as it seems not to be 7 days and I always use the same browser IE 9 beta and I never clean my cache and I never logout of Telerik site.  Let me check if 7 days is real maybe it's me that don't see it clearly.
Tags
GridView
Asked by
guy
Top achievements
Rank 1
Answers by
Marc Roussel
Top achievements
Rank 2
Milan
Telerik team
Atanas
Telerik team
Share this question
or