or
RadDropDownListEditor editor = e.ActiveEditor as RadDropDownListEditor; if (editor != null) { RadDropDownListEditorElement editorElement = (RadDropDownListEditorElement)editor.EditorElement; editorElement.Filter = FilterWrappers; }
This works fine. The problem is that I have another ComboBoxColumn with no filter on it. When I click in the first column and select a value and then click in the second column the filter method for the first column is called. It is called once for every item in the combo but the entries contain items from the first combo and items from the second combo. Why is this happening?
HtmlViewDefinition view = new HtmlViewDefinition();view.RowTemplate.Rows.Add(new RowDefinition());view.RowTemplate.Rows.Add(new RowDefinition());view.RowTemplate.Rows.Add(new RowDefinition());CellDefinition cell = new CellDefinition();//row1cell.UniqueName = "column1";cell.RowSpan = 1;cell.ColSpan = 2;view.RowTemplate.Rows[0].Cells.Add(cell);cell = new CellDefinition();cell.UniqueName = "column4";cell.RowSpan = 3;cell.ColSpan = 1;view.RowTemplate.Rows[0].Cells.Add(cell);cell = new CellDefinition();cell.UniqueName = "column5";cell.RowSpan = 1;cell.ColSpan = 1;view.RowTemplate.Rows[0].Cells.Add(cell);//row2cell = new CellDefinition();cell.UniqueName = "column2";cell.RowSpan = 2;cell.ColSpan = 1;view.RowTemplate.Rows[1].Cells.Add(cell);cell = new CellDefinition();cell.UniqueName = "column3";cell.RowSpan = 2;cell.ColSpan = 1;view.RowTemplate.Rows[1].Cells.Add(cell);cell = new CellDefinition();cell.UniqueName = "column6";cell.RowSpan = 1;cell.ColSpan = 1;view.RowTemplate.Rows[1].Cells.Add(cell);//row3cell = new CellDefinition();cell.UniqueName = "column7";cell.RowSpan = 1;cell.ColSpan = 1;view.RowTemplate.Rows[2].Cells.Add(cell);radGridView1.ViewDefinition = view;