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

Grid row height & Dropdown list set value

1 Answer 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
tiffany
Top achievements
Rank 1
tiffany asked on 04 Mar 2015, 06:53 PM
Hi,

I have a question about the grid row. if we have more record returned in the grid, then every row has a same height. However, if we have less records returned in the grid, for example just one or two rows displayed in the grid, then the row height changed much taller than normal. Is that any way to not enlarge the row height no matter how many records display in the grid?

There is another question is about dropdown list, i need to set the value of the dropdown list from the code (from value passed by controller), how should i do that?

Thanks
Tiffany

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 09 Mar 2015, 09:16 AM
Hello Tiffany,

Could you please let me know whether you have specify a height of the master table view? If you did please remove it and this way the grid will resize automatically.
Regards your second question you can find the DropDownList control on ItemCreated event handler as described in the following help article and bind it to an object collection.

I hope this information proves helpful. 

Regards,
Kostadin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
tiffany
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or