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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to check a filter option combobox in Filter dropdown in GridDataControl from code behind

Thread ID:

Created:

Updated:

Platform:

Replies:

106954 Feb 4,2013 01:48 PM UTC Feb 12,2013 09:48 AM UTC WPF 5
loading
Tags: GridControl
Jolanta Lukawska
Asked On February 4, 2013 01:48 PM UTC

 Hello

I use GridDataControl (ShowFilters = "True" and AllowFilter = "True" for all VisibleColumns).

I'd like to check an option in Filter dropdown for one of the columns in code behind. Is there a way to do this? The reason is that I want to have my GridDataControl initially filtered.

I tried this line of code:

this.myGrid.VisibleColumns[0].Filters.Add(new FilterPredicate() { FilterType = FilterType.Equals, FilterValue = "ValueA" });

It filters the grid, but unfortunately it also clears all other options from the filter dropdown and a user cannot use it.

Is there a way to filter the data properly from code behind?

Best regards,

Jolanta Lukawska
Replied On February 4, 2013 02:42 PM UTC

I mean "checkbox in Filter dropdown", not "combobox in Filter dropdown". Sorry for mistake in the title ;)

Jolanta Lukawska
Replied On February 7, 2013 12:52 PM UTC

Any idea?

Is it impossible to set the filters from code behind? Or I explained the problem unclearly?

Best regards,

Divya A [Syncfusion]
Replied On February 8, 2013 11:56 AM UTC

Hi Jolanta,


Apologize for the delay caused.


We have analyzed the reported issue, Filter dropdown gets cleared when FilterPredicate is set from Code Behind. This issue will be fixed internally. 


However, we do not provide confidential information and patches in the general forum.


You can also create an incident in our Direct trac account with the below link.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents


That would be helpful for us to fix the issues and provide you the patch through incident.


Please let us know if you need any further assistance.


Regards,

Divya.

Jolanta Lukawska
Replied On February 11, 2013 08:09 AM UTC

Thank you very much. I've created the incident.

Best regards,

Divya A [Syncfusion]
Replied On February 12, 2013 09:48 AM UTC

Hi Jolanta,

 

Thanks for your update.

 

We will track the reported issue and assist you further through the created incident.

 

Regards,

Divya.


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

;