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

FilterBar issue - new records show in grid, but their values are missing from dropdown

Thanks for your help to this point. I have a new issue: When a new record is added to my DataTable (from a callback not from user interaction), any new column values do not appear as choices in the filterbar drop down.

If I unwire and then wire the bar, they do appear. Do I need to add value for new records to the filterbar explicitly or should the filterbar be monitoring and handling this.

BTW, here's an example of the code that adds a new record to the DataTable.

row = this.ordersDataSet.Orders.NewOrdersRow();
this.ordersDataSet.Orders.Rows.Add(row);
this.PopulateRow(ref row, order); // My method to stuff the row from an order object.

The row appears in the DBG, but the drop downs do not reflect any new values.

2 Replies

SA Saravanan A Syncfusion Team June 18, 2007 09:44 PM UTC

Hi DW,

You can achieve this by dynamically updating the datasource of filterbar's comboboxes when the data gets updated in the grid's DataSource.

Please refer to this sample.
http://websamples.syncfusion.com/samples/Grid.Windows/F62562/main.htm

It updates the FilterBar's datasource when the data is being updated in the grid's datasource programmatically.

Best Regards,
Saravanan


DW Dave Wilkins June 19, 2007 12:45 PM UTC

Saravanan,

Thanks very much for the example and your time. It is what I was looking for.

DW

Loader.
Live Chat Icon For mobile
Up arrow icon