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

How to resize radcombobox in editform that was created automatically?

1 Answer 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Viktor
Top achievements
Rank 1
Viktor asked on 23 Sep 2010, 07:43 AM
Hello, i have 2 questions and they are related:
1. If you have a column that is bound to another table, and you go to edit a record, is there a way to resize the radcombobox that is provided by default?
2. If replacing the default with edititemtemplate, what is the proper way to bind that radcombobox to the current record value? setting text property doesn't work because its bound to the datasource later and overwrites your selection.

Thanks,
Viktor.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Sep 2010, 10:25 AM
Hello,


You can access the control in ItemCreated event and then set the width accordingly.
Referencing controls in grid row/edit form

If, you use RadComboBox in EditItemTemplate, then you can either populate the combo directly setting the DataSourceID or, by accessing in code behind and setting the DataSource.


-Shinu.
Tags
Grid
Asked by
Viktor
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or