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

Beta Thoughts, Suggestions

2 Answers 74 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Roland
Top achievements
Rank 1
Roland asked on 17 Jun 2010, 11:17 PM
Hi,

I usually deal with ASP.NET/ WPF stuff. I was asked to create some Winforms app and I am DISAPPOINTED.

Your controls are great BUT take for example:

Combobox, ListBox, ListControl, DropDownList controls:
Where is the ability to build list item ? Some kind of the design mode that would expose elements that can be bound to in OnItemDataBound event ? Simple designer would be nice, that allows you to drag - drop elements into the Template (kind of WPFish / ASP.NET approach). This should be possible. Creating custom item now is kind of hard, especially I couldn't find any examples.

Grid
I have 5 columns: Image, Name, Username, Test, Edit, Delete.
Image, username,edit, delete are fixed width, Name was supposed to fill the rest of space. :S Cant really do that.

Cannot create column templates with the Property Builder. I can create them and save to XML, but when I click OK they are not in the grid.

I'd like to hear from Telerk, thanks.

2 Answers, 1 is accepted

Sort by
0
Trey
Top achievements
Rank 2
answered on 24 Jun 2010, 02:38 PM
Hang in there these guys really improve this stuff quickly.  We puchased the suite for teh AJAX controls, then I thought to put them in my winforms apps, complete disaster!  A few months later, being a glutton for punishment, I tried them again, wow!  They were awesome, I mean, I cannot tell you how many hours I have saved using the datagrid.  This BETA is what it sounds like, a BETA.  Personally I could not test it further, because of my work load, but I have full faith these guys will pull through once again.  Hang in there my friends!

0
Accepted
Nikolay
Telerik team
answered on 24 Jun 2010, 03:04 PM
Hi guys,

Tray, thank you very much for your feedback. We are striving to make our controls better and better with each new release that comes out. We would kindly ask you to provide us with additional details about the issues that you have experienced. This will allow us to address them accordingly. Please note that you may need to open a new support ticket for the complex scenarios as they may require sending us a sample project.

Roland, please find the answers to your questions below:
Currently, we do not plan to provide design-time support for item templates. Nevertheless, you can customize the items at your discretion by handling the ItemDataBound event of RadComboBox and RadListBox. I would suggest, however, that you use the new controls RadListControl and RadDropDownList and their CreatingVisualListItem event (which will be renamed to CreatingVisualItem in the official Q2 2010). For additional information about the new controls, please take a look at the Drop & ListControl section in the Examples application that ships with the Beta version.

In regards to RadGridView control, you can achieve the desired behavior by setting AutoSizeColumnsMode to Fill and MinWidth, MaxWidth and Width properties of the fixed columns to a specific value:
int width = 80;
this.radGridView1.Columns["Image"].MaxWidth = width;
this.radGridView1.Columns["Image"].Width = width;
this.radGridView1.Columns["Image"].MinWidth = width;
this.radGridView1.Columns["Username"].MaxWidth = width;
this.radGridView1.Columns["Username"].Width = width;
this.radGridView1.Columns["Username"].MinWidth = width;
this.radGridView1.Columns["Test"].MaxWidth = width;
this.radGridView1.Columns["Test"].Width = width;
this.radGridView1.Columns["Test"].MinWidth = width;
this.radGridView1.Columns["Edit"].MaxWidth = width;
this.radGridView1.Columns["Edit"].Width = width;
this.radGridView1.Columns["Edit"].MinWidth = width;
this.radGridView1.Columns["Delete"].MaxWidth = width;
this.radGridView1.Columns["Delete"].Width = width;
this.radGridView1.Columns["Delete"].MinWidth = width;
this.radGridView1.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;

If you want to completely prevent specific columns from resizing without giving a specific size, you can just set their AllowResize property to false:
this.radGridView1.Columns["Image"].AllowResize = false;
this.radGridView1.Columns["Username"].AllowResize = false;
this.radGridView1.Columns["Test"].AllowResize = false;
this.radGridView1.Columns["Edit"].AllowResize = false;
this.radGridView1.Columns["Delete"].AllowResize = false;
this.radGridView1.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;

As to the property builder, the described behavior is a known issue and we will address it in the official Q2 2010 release.

I hope this helps.

Regards,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Roland
Top achievements
Rank 1
Answers by
Trey
Top achievements
Rank 2
Nikolay
Telerik team
Share this question
or