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. Image for the cookie policy date
close icon

GGC FilterBar (Urgent)

Hi,
How can I Update the combobox filterbar values when a row is inserted/deleted or updated.

Thanks


1 Reply

NA Nisha Arockiya A Syncfusion Team September 23, 2008 07:25 AM UTC

Hi,

Thanks for your interest in SyncfusionProducts.

After the DataSource has been updated, you can specify the Filter criteria by setting the filter condition in RecordFilters of TableDescriptor.Please refer to the following code snippet.


RecordFilterDescriptorCollection filterCollection =
this.gridGroupingControl1.TableDescriptor.RecordFilters;
filterCollection.Clear();
filterCollection.LogicalOperator = FilterLogicalOperator.Or;
RecordFilterDescriptor filterDesc = new RecordFilterDescriptor(colName);
filterCollection.Add(filterDesc);
FilterCondition fc = new FilterCondition(FilterCompareOperator.Equals, m_colText);
this.gridGroupingControl1.TableDescriptor.Columns[colName].AllowFilter = true;
filterCollection[colName].Conditions.Add(fc);


You can set a FilterBar using the following code snippet.

RecordFilterDescriptor rfd = new RecordFilterDescriptor(this.textBox1.Text.ToString(), new

Syncfusion.Grouping.FilterCondition(FilterCompareOperator.Equals,this.textBox2.Text.ToString()));
this.gridGroupingControl1.TableDescriptor.RecordFilters.Add(rfd);

Please refer to the following Forum for more information on implementation.
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=250

Please let me know if this helps.

Regards,
Nisha



Loader.
Live Chat Icon For mobile
Up arrow icon