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

filter

5 Answers 290 Views
GridView
This is a migrated thread and some comments may be shown as answers.
piratenwichtl
Top achievements
Rank 1
piratenwichtl asked on 10 Sep 2007, 04:24 AM
hi guys,

is it possible to customize the filter row according to the column-values?
for example: I have boolean-column, which the user is able to tick. I would like to have the same tick-box within the filter-row.

my datagrid uses a column with progressbars.
I apply a filter, the correct rows are shown. I delete the filter, all rows are shown again. BUT the progressbar doesnt show its value any more(no progress visible)
Does anybody know, how to get around this?

cheers

t

5 Answers, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 11 Sep 2007, 03:21 PM
Hi tommy,

Currently our grid does not allow customization of the filtering row. We have plans to change the filter row with a new one, which will use advanced editors instead of simple textbox controls. This new feature will help you achieve what you need. Expect it by the end of the year.

About the problem with the progressbars, we will need more information about your scenario. It would be great if you send a simple application exposing the issue so that we could pinpoint the problem. You can do so in a new support ticket.

 
Best,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
piratenwichtl
Top achievements
Rank 1
answered on 12 Sep 2007, 05:23 AM
hi evtim,

its very easy to reproduce. if you follow up the thread regarding a progressbar within the grid, there is a little zip of an example provided by telerik.
if you open it and run it, you will see the progressbar drawn correctly. please enter any value in the filter row. the rows should disappear.. now delete that value from the filter row.. the rows are shown again, but the progressbar is blown up. in my project the progressbar is just empty and doesnt move any more until i restart. havent investigated further yet.
best regards
t
0
Dwight
Telerik team
answered on 12 Sep 2007, 03:40 PM
Hello Tommy,

We updated the example and attached it to this ticket. We think that part of the ProgressbarInGrid code leads to the wrong conclusions. Our grid uses virtualization to decrease the number of visual elements created. That is why when a row is removed from the visible pane, some resources are deallocated. As you can see in the source code of the attached project, the progress bar is added when CellFormatting event is fired, meaning that this resource will be deallocated each time a row is no more visible (being filtered, hidden in a sub-group, etc). That is why it is incorrect to keep references to the different progress bars and manipulate them.

You can see the following:
  1. A new custom column is added to hold the progress bar
  2. The progress bars are created in the CellFormatting event as in the previous example, but no other reference is stored. The value for the progress bar is taken from another column in the current row.
  3. The data source is a BindingList<MyCustomClass> to demonstrate correct data binding of such objects:
    • MyCustomClass implements INotifyPropertyChanged interface to notify the BindingList for changes in the objects.
    • Once notified, the BindingList will notify the RadGridView for the change.
    • RadGridView will take care to update the values and fire the CellFormatting event for the corresponding cells.
Using this setup, when you need to change the value of a progress bar, just change the corresponding value in the data source (demonstrated in the timer1_Tick event handler).

If you want to hide the column that holds the progressbars' values, set its visibility to false.
 

Regards,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Adrian Halid
Top achievements
Rank 1
answered on 09 Jan 2008, 07:52 AM
Currently our grid does not allow customization of the filtering row. We have plans to change the filter row with a new one, which will use advanced editors instead of simple textbox controls. This new feature will help you achieve what you need. Expect it by the end of the year.


Has this feature been introduced in WinForms Q3 2007 (v5.0.0.0)?

I would like to be able to use Checkboxs for boolean values in my filter.
I would also like combo boxes in my filter so if my grid column contains an enumerated set of values (value1, value2, value3 and value4) then the user can select from that list of values to filter on.

The other filter box would be a date time picker for date time columns.


0
Dwight
Telerik team
answered on 09 Jan 2008, 08:58 AM
Hello Adrian,

Thank you for the question.

These features are still not introduced in the Q3 version, but will be available with the next version of RadGridView.

Contact us again, if you have any questions.

Sincerely yours,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
piratenwichtl
Top achievements
Rank 1
Answers by
Dwight
Telerik team
piratenwichtl
Top achievements
Rank 1
Adrian Halid
Top achievements
Rank 1
Share this question
or