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

Combobox click event

3 Answers 77 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 28 Oct 2008, 10:04 AM
I have a multi column combo box, I want to be able to determine which 'cell' was clicked by the user. Eg.
Product   Price 1   Price 2   Price 3
Product 1     5          4            2
Product 2    10         8            7

So a user can click on price 2s cell (4) for product 1 and the combobox will return the Product, Price column and the actual price (eg. Product 1, Price 2, 4)

Is this possible with the combo box or should I be looking at using a grid instead? Combobox has been chosen due to space constraints.

3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 28 Oct 2008, 10:21 AM
Hello Paul,

Yes, this is possible with RadComboBox. Please see this Code Library project for a sample implementation.

Best wishes,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Paul
Top achievements
Rank 1
answered on 28 Oct 2008, 09:50 PM
Thank you for the prompt response Simon. Looks good although from the look of the example I won't be able to actually determine which 'cell' was clicked (ie. row and column).


Any thoughts?

0
Veselin Vasilev
Telerik team
answered on 31 Oct 2008, 08:19 AM
Hello Paul,

If you need to determine the clicked row and column - you should definitely use RadGrid.

Best wishes,
Veselin Vasilev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
Paul
Top achievements
Rank 1
Answers by
Simon
Telerik team
Paul
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or