Request for New Feature: Label Mode

2 posts, 0 answers
  1. Brian
    Brian avatar
    19 posts
    Member since:
    Aug 2010

    Posted 21 Jun 2011 Link to this post

    Please consider this request for a new feature to be added to the RadComboBox. We would like to see a property called "Mode" added. It would have two options; Normal and Label. The default value would be Normal as to not break previous implementations.

    Use Case:

    When using a RadComboBox on a FormView with view/edit/insert/delete functions, there is no easy way to show the selected item text of the RadComboBox in a Label look & feel without complex JavaScript/CSS or adding code. It would be awesome if we could just set a property called Mode="Label" which caused the RadComboBox to display a Label instead of the combobox. It would use the same css as the rest of the labels on the page. When in Label mode, the control presented to the user would not allow the user to change any values, nor see any look & feel of a combobox. The user would see it as a standard label. 

    Currently, we have to put both a label and a combobox in our item template of the FormView. Then set combobox visible=false, and add a SelectionChanged event to the combobox (we use binding) which sets the text value of the label. Lot's of work and extra code just so we can show the user the value of the combobox in Label format! We tried the JavaScript/CSS method, but had other issues and was not sure it would interfere with our other CSS changes in the future. 

    Thank you for the consideration.
  2. Kalina
    Kalina avatar
    918 posts

    Posted 28 Jun 2011 Link to this post

    Hello Brian,

    The behaviour that you describe can be easily achieved with e few lines of code.
    That is why there is no need to implement a feature in RadComboBox for it.

    I can suggest you inherit the RadComboBox class and implement there a Mode property(with two values: "normal" and "label") and a Label. In this way you will be able to set the to set the RadComboBox(or the Label) Visible property

    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top