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

Another drop down before the field to choose the object

3 Answers 27 Views
Filter
This is a migrated thread and some comments may be shown as answers.
parobe01
Top achievements
Rank 1
parobe01 asked on 28 Feb 2012, 11:35 AM
The original design called for a filter (Telerik’s filter control) inside a pane to slide in and out the results grid.
I have a filter that would need to be slightly more advanced given the number of fields and objects that could be available.
I am not sure if this is possible, but have another drop down before the field to choose the object. So first you choose the object, and then the fields available within that object appear in the next drop down. Example Control (Object) and ControlEffectiveness (Control field):
******************************************************
AND + + x
|_Organization Location EqualTo [ North America ] x
|_ AND + + x
|_ Control v ControlEffectiveness EqualTo [Ineffective ]x
|Control|
|Organization|
|Process|
*******************************************************

In the above diagram, Control v is a field with drop down Control, Organization, Process etc... therefore here Control is an object and
ControlEffectiveness is the control field.
Is there a way we can have another drop down before the field to choose the object.
Please Suggest!! ASAP

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 02 Mar 2012, 09:17 AM
Hi,

Yes, you could use custom field editors as described in this help topic. Application which implements the same approach could be seen here.

All the best,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
parobe01
Top achievements
Rank 1
answered on 02 Mar 2012, 10:09 AM
Hi thanks for the reply, but have already gone through this url http://demos.telerik.com/aspnet-ajax/filter/examples/customeditors/defaultcs.aspx
Please see the attach image for further details as to what i exactly want.
Waiting for prompt reply.
Thanks in advance.

0
Andrey
Telerik team
answered on 02 Mar 2012, 06:13 PM
Hi,

You could achieve your goal by using the demo application I have sent you. You just need to modify it a bit. You need to add one additional RadComboBox control and to modify the respective methods, namely:

public override void InitializeEditor(System.Web.UI.Control container)
    {
        _combo = new RadComboBox();
        _combo.ID = "MyCombo";
        _combo.DataTextField = DataTextField;
        _combo.DataValueField = DataValueField;
        _combo.DataSource = DataSource;
        _combo.DataBind();
        _combo2 = new RadComboBox();
        _combo2.ID = "SecondCombo";
        _combo2.DataTextField = DataTextField;
        _combo2.DataValueField = DataValueField;
        _combo2.DataSource = DataSource;
        _combo2.DataBind();
        container.Controls.Add(_combo);
        container.Controls.Add(_combo2);
    }

and so on.

Give this approach a try and check whether you get the expected behavior.

Kind regards,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Filter
Asked by
parobe01
Top achievements
Rank 1
Answers by
Andrey
Telerik team
parobe01
Top achievements
Rank 1
Share this question
or