Telerik Forums
UI for WinForms Forum
9 answers
136 views
Is there any way to build and assign a ColumnGroupsViewDefinition visually in a designer or can this only be achieved programmatically?

I am using a RadGridView with ViewDefinition of type ColumnGroupsViewDefinition to achieve column grouping (Q1 2010 release).  I am able to programmatically build a ColumnGroupsViewDefinition and assign it to the RadGridView.ViewDefinition property and its working fine but I was just wondering if this can be accomplished in the Designer.

Thanks for your help,
Darren Shafer
George
Telerik team
 answered on 18 Sep 2014
1 answer
138 views
When you bind the GridView to a data source at design time, the columns get auto generated - it creates a new Project Data Source from an Object and generates a form BindingSource.

However, on the object I have a reference to another object - ClassA -> ClassB Property which references a ClassB instance.

At design time, a TextBox column is generated.  Where as at runtime, I need this to be a DropDown list.  Is it possible to change the column type at design time or make it generate a DropDown for the object reference property - without creating an Unbound Column?

Thanks

Andez
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Sep 2014
1 answer
171 views
This is the image we did using and css. I am trying to implement the same in RAD Menu.

How can I align image right to the text in Radmenuitem ?

In this image, hover over the text and image will slide the menu. How can do it in radmenu ?
<telerik:RadMenu ID="rmMenu" runat="server" EnableImagePreloading="true" EnableEmbeddedSkins="false"     BorderColor="Black" BorderStyle="None" BorderWidth="0px" Skin="COPMenu" BackColor="Transparent" ExpandAnimation-Type="None">
       <Items>
               <telerik:RadMenuItem ID="riTrans" runat="server" Text="Communication"></telerik:RadMenuItem>
                <telerik:RadMenuItem ID="riGen" runat="server" Text="Appointment Book"></telerik:RadMenuItem>
      </Items>
</telerik:RadMenu>
Dimitar
Telerik team
 answered on 18 Sep 2014
3 answers
215 views
I'm trying to swap out the datasource on a ComboBoxColumn depending on other data bound to the row. Below is a simple example to reproduce the problem. (In my actual project we are not using simple strings for the options)

In this example the second row's combo box should have a 3rd option not shown by the first row.
If I let the grid automatically generate columns instead of adding it manually it seems to work correctly. What am I doing wrong?

public class SimpleObject
    {
    public string Option { get; set; }
    public bool ShowOtherOptions { get; set; }
    public SimpleObject (string option)
        {
        Option = option;
        }
    }

Relevant code behind for the form:
private List<String> options = new List<String>(){"First", "Second"};
private List<String> specialoptions = new List<String>(){ "First", "Second", "Third"};
 
public SimpleSample ()
    {
    List<SimpleObject> myList = new List<SimpleObject> ();
    myList.Add (new SimpleObject ("First"));
    myList.Add (new SimpleObject ("Second") {ShowOtherOptions = true});
 
    InitializeComponent ();
 
    this.radGridView1.AutoGenerateColumns = false;
    AddComboColoumn ();
    radGridView1.DataSource = myList;
    radGridView1.EditorRequired += radGridView1_EditorRequired;
    }
 
private void AddComboColoumn()
{
 
    GridViewComboBoxColumn comboColumn = new GridViewComboBoxColumn("ComboBox column");
    comboColumn.Width = 150;
    comboColumn.FieldName = "Option";
 
    comboColumn.DataSource = options;
    radGridView1.Columns.Add(comboColumn);
}
 
private void radGridView1_EditorRequired (object sender, Telerik.WinControls.UI.EditorRequiredEventArgs e)
    {
        if (radGridView1.CurrentColumn.Name == "Option")
        {
        var data =
            (((Telerik.WinControls.UI.GridViewEditManager) (sender)).GridViewElement.CurrentRow).DataBoundItem
                as SimpleObject;
        RadDropDownListEditor dropdownEditor = new RadDropDownListEditor ();
        if (data.ShowOtherOptions)
            {
            ((RadDropDownListEditorElement) (dropdownEditor.EditorElement)).DataSource = specialoptions;
            }
        else
            {
            ((RadDropDownListEditorElement) (dropdownEditor.EditorElement)).DataSource = options;
            }
 
        dropdownEditor.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
        e.Editor = dropdownEditor;
 
        }
    }


Dimitar
Telerik team
 answered on 18 Sep 2014
3 answers
191 views
I have the following question, can you help me to work it out?
Clients have the following requirements.
In RadDateTimeEditor, it can be typed by 'YYYYMMDD'.
But now the default thing is It has to be typed by 'YYYY/MM/DD'.
So, Is there any way to do that.
Thanks
Ralitsa
Telerik team
 answered on 18 Sep 2014
1 answer
194 views
Hi i am developing WPF application using MVVM and i am try to add image as a button (like windows 8 start page button) Is there a way to have a radButton only display as an image? I have an image that i would like to use as a button alone, but I can't seem to get the radButton borders to go away and the radButton background color to become transparent.  Help me
Martin Ivanov
Telerik team
 answered on 18 Sep 2014
1 answer
167 views
Hi,

i have a RadSplitContainer (Container1) with two SplitPanels Inside.

In the first SplitPanel i have another RadSplitContainer(Container2) with two SplitPanels,  the second one should show my information.
The first SplitPanel in Container2 has a RadTreeView inside for my menu.
The second SplitPanel in Container2 has a Button to Collapse the first SplitPanel in Container2

Now the behaviour is that, the first SplitPanel in Container2 is collapsed and the second SplitPanel in Container2 grows to the widht of the first SplitPanel in Container1.
What i want is, that the second SplitPanel in Container1 grows the width of the first SplitPanel in Container2.

Of Course if i press the button while the first SplitPanel in Container2 is collapsed, it should show the first SplitPanel in Container2 again and resize back.

I've added three pictures:
The Start.png is the application started
The Stop.png is the behaviour at the moment
The Wanted.png is the behaviour i want to have, if i press the button (Just moved the Slider by Hand)

Thx

P.S. If i use the Standard SplitContainer from WinForms i have a Property SplitterDistance, if i change this value i get the wanted behaviour, but changing to Standard WinForms Control is no option in my case





Dk
Top achievements
Rank 1
 answered on 17 Sep 2014
5 answers
140 views
Hi there,

Is it possible to have a user Interface like the attachment in Telerik?

Regards.
Dimitar
Telerik team
 answered on 17 Sep 2014
1 answer
136 views
Hi,

I am liking the Ribbon control at present.

However, I want it to behave and look exactly like the offerings in Word.

I have created 5 Ribbon Tabs in the Designer.  Each tab has been assigned to a Context tab.
So I have:
Project tab -> Project Context tab
Contract tab -> Contract Context tab
...and so on.

I can make the contexts appear when I want using:

​this.RibbonContextTabProject.Visibility = (entity is AttestedDev.Wms.EFDAL.Entity.Project) ? ElementVisibility.Visible : ElementVisibility.Hidden;

When the tabs are displayed they keep their positions in the Tab order.  See attached.

You can see in #1 the Project tab is displayed in its designed position.
You can see in #2 the Contract tab is displayed in its designed position - which is to the right of Project.
You can see in #3 the Drawing tab is displayed in its designed position - which is to the right of Contract.

What I want is the Context tabs to appear in the same position.  Like Word 2013 for example - which will append the Context Tabs at the end of the current tabs - see #4 and #5 in attached.

The other issue is that the context tabs are pretty narrow.  I would like to have some additional padding on this, but the Padding on the Context tab does not force the width of the tab to be wider.  It looks pretty thin.

Can you show me how I can get it to work like this?

Many thanks,

Andez
Dimitar
Telerik team
 answered on 17 Sep 2014
1 answer
115 views
Hi,

in one of my projects I use the code you described in your "Rad Property Grid Custom Item Elements" project here. This works fine as long as you do not have a scollbar in your property grid and move it. Attached you will find a fiew screen shots which show the problem: The button is moving from one property to another. During debugging I found out that the CreateItemElement event was only fired sometimes.

I am using UI for WinForms Q2 2014. Any help would be appreciated.

Thanks in advance,
Thilo
Dimitar
Telerik team
 answered on 17 Sep 2014
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?