Beta Thoughts, Suggestions

3 posts, 1 answers
  1. Roland
    Roland avatar
    156 posts
    Member since:
    Feb 2009

    Posted 17 Jun 2010 Link to this post


    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.

    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. Trey
    Trey avatar
    35 posts
    Member since:
    Dec 2006

    Posted 24 Jun 2010 Link to this post

    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!

  3. Answer
    Nikolay avatar
    1805 posts

    Posted 24 Jun 2010 Link to this post

    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.

    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
Back to Top