We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to focus filter in GridDataControl

Thread ID:

Created:

Updated:

Platform:

Replies:

120666 Oct 1,2015 01:25 PM UTC Oct 5,2015 05:59 AM UTC WPF 4
loading
Tags: GridDataControl
Viktoras
Asked On October 1, 2015 01:25 PM UTC

Simple application, which shows list of items. Each column have filter cell (by ShowFilterBar="True") - how to put focus on filter cell? 

I mean - I've run application and it is already prepared for filtering - no need additional mouse click to go to filter cell. How to focus one of the filter cells?

Sorry for my english

Attachment: 20151001_162200k3xqh_4a1933c.zip

Ganeshkumar Lingappan [Syncfusion]
Replied On October 2, 2015 02:53 PM UTC

Hi Viktoras,
Thanks for contacting Syncfusion support
We have analyzed your query. You can achieve your requirement to set the focus on filter cell by setting the currentcell as like in the below code example.
Code-Example:

void dataGrid_Loaded(object sender, RoutedEventArgs e)

{

     this.dataGrid.Dispatcher.BeginInvoke(new Action(()=>

     {

         this.dataGrid.Model.CurrencyManager.CurrentCell.MoveTo(1, 2);               

         this.dataGrid.Model.CurrencyManager.CurrentCell.BeginEdit(true);

     }));


}



We have also prepared the sample based on this and you can download the sample from the below location,
Sample-Location : http://www.syncfusion.com/downloads/support/forum/120666/ze/FilterBarDemo-328326010
Please let us know if you require further assistance.
Regards,
Ganeshkumar


Viktoras
Replied On October 2, 2015 06:03 PM UTC

Thank you for replay. My bad - i'm not enough clearly described the problem. I'm not need to EDIT cell. First cell in attached picture is a FILTER. I want to focus a filter cell. Top row on a picture - is a filter. I mean if i'll enter text in this cell - filtered all content of grid. I start typing "A" - in grid just all rows containing "A". etc. 

How do i focus FILTER cell?

Viktoras
Replied On October 4, 2015 05:56 PM UTC

Sorry, i've comliled sample - all working as i need. Thank you!

Elangovan S [Syncfusion]
Replied On October 5, 2015 05:59 AM UTC

Hi Viktoras,

Thank you for your update.

Please let us know if you require any other assistance.

Regards,

Elangovan S


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;