Telerik Forums
UI for WinForms Forum
1 answer
117 views

I've been searching and searching lol - the nested properties are impressive!  Somewhere in side a RadDropDownListEditor there's a ListElement where I can change the back color and border color and size...but after several hours, this eludes me.

Can someone show me how to access the ListElement of a RadDropDownListEditor please :)  THANK YOU!!!

-C

 

Dimitar
Telerik team
 answered on 09 Feb 2018
3 answers
831 views

Hi folks :)

Is there any way to tell a specific column inside a grid to "Stretch to Fill" so it completely fills the leftover space in a grid where the column widths added up do not equal the total width of the grid control?

 

Hard to describe so out comes Photoshop so I can create a couple of images to demonstrate what I'm talking about:

The first image shows the grid "as-is" the second images shows the effect I'm looking for:  The "Description" column would stretch to fill all remaining space.

 

Any help would be very much appreciated!

-Curtis

Dimitar
Telerik team
 answered on 09 Feb 2018
6 answers
58 views

When I am using the  CheckState=TriStateMode.Indeterminate, all works fine when I check and uncheck.

But when I call CollapseAll or ExpandAll, all parents that have a Indeterminate check get removed.

This is easily replicable. Is there a workaround?

Hristo
Telerik team
 answered on 09 Feb 2018
2 answers
211 views

Hi, 

I think I have found a problem with the drag and drop behavior.

I have implemented the drag and drop as explained in the documentation, but when I test with a touch screen, it doesn't work.

I think it's because only OnMouseDownLeft(MouseEventArgs e) function is overrided in RowSelectionGridBehavior class, but can't find a way to handle that.

 

florian
Top achievements
Rank 1
 answered on 08 Feb 2018
2 answers
128 views

Hi,

How can I hide PivotAggregateDescriptorContainer in code? Is it something like ShowFilterArea property, but for Aggregates area? Can't find one...

Thanks

Alex


Alex Dybenko
Top achievements
Rank 2
 answered on 08 Feb 2018
1 answer
57 views
I am working with Radscheduler when i say new appointment it redirects to AppointmentEditDialog . then its fill raddatetimePicker with selected area date and time Here Now i want show my custom date instead  on raddatetimepicker . Is their any way to do it?  ,because i have tried to set my custom date to radDateTimePicker but its does change when it runs.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Feb 2018
6 answers
1.1K+ views

I'm trying to create a ListView with custom items, as shown in the attached image. The lower textbox can be of varying height due to containing more or less text lines.

I have tried a horizontal StackLayout with three text boxes (RadTextBoxElement). I then use a vertical StackLayout containing the first stacklayout plus a fourth textbox. I have used the sample in the docs as a basis.

I have the listview type as ListViewType.ListView. I also have AllowArbitraryItemHeight = true.

I can't get the lower textbox to display larger than a single line, despite containing multiple text lines.

The custom visual item class is below. In this version I'm actually using a RadLabelElement for the lower item instead of a textbox as it does show relatively ok, but has drawbacks like not being able to select & copy text from it.

using System;
using System.Drawing;
using System.Windows.Forms;
using Telerik.WinControls.Layouts;
using Telerik.WinControls.UI;
 
namespace UCStudio.UI
{
    public class RuleVisualItem : SimpleListViewVisualItem
    {
        private RadTextBoxElement _idElement;
        private RadTextBoxElement _sequenceElement;
        private RadTextBoxElement _nameElement;
        private RadLabelElement _ruleTextElement;
        private LightVisualElement _contentElement;
        private StackLayoutPanel _vStackLayout;
        private StackLayoutPanel _stackLayout;
 
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
 
            _stackLayout = new StackLayoutPanel
            {
                Orientation = Orientation.Horizontal,
                //AutoSize = true,
                EqualChildrenWidth = true,
                ShouldHandleMouseInput = false,
                NotifyParentOnMouseInput = true
            };
 
            _vStackLayout = new StackLayoutPanel
            {
                Orientation = Orientation.Vertical,
                ShouldHandleMouseInput = false,
                NotifyParentOnMouseInput = true
            };
 
            _contentElement = new LightVisualElement
            {
                StretchHorizontally = true,
                MinSize = new Size(120, 0),
                ShouldHandleMouseInput = false,
                NotifyParentOnMouseInput = true
            };
            _idElement = new RadTextBoxElement {Text = ""};
            _idElement.TextBoxItem.ReadOnly = true;
            _stackLayout.Children.Add( _idElement);
 
            _sequenceElement = new RadTextBoxElement {Text = ""};
            _sequenceElement.TextBoxItem.ReadOnly = true;
            _stackLayout.Children.Add( _sequenceElement);
 
            _nameElement = new RadTextBoxElement {Text = ""};
            _nameElement.TextBoxItem.ReadOnly = true;
            _stackLayout.Children.Add( _nameElement);
 
            _stackLayout.Children.Add( _contentElement);
 
            _ruleTextElement = new RadLabelElement
            {
                Text = "",
                ShouldHandleMouseInput = false,
                NotifyParentOnMouseInput = true
            };
 
            _vStackLayout.Children.Add( _stackLayout);
            _vStackLayout.Children.Add( _ruleTextElement);
 
            Children.Add( _vStackLayout);
        }
 
        protected override void SynchronizeProperties()
        {
            base.SynchronizeProperties();
 
            Text = "";
            _contentElement.Text = "";
            _idElement.Text = Convert.ToString( Data["RuleItemId"]);
            _sequenceElement.Text = Convert.ToString( Data["Sequence"]);
            _nameElement.Text = Convert.ToString( Data["Name"]);
            _ruleTextElement.Text = Convert.ToString( Data["RuleItemText"]);
        }
 
        protected override Type ThemeEffectiveType => typeof(SimpleListViewVisualItem);
    }
}

 

Also I don't know why I need to use the LightVisualElement _contentElement; If I remove this the textboxes in the horizontal stacklayout show as minimal size.

Another thing is I need the third textbox in the top group to be of varying size, i.e. to fit itself to its content but it isn't, because of EqualChildrenWidth = true (which I need or the textboxes show as tiny, again).

I'm struggling to find the correct combination of techniques to achieve the above. Any help appreciated.

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Feb 2018
1 answer
89 views

If my parent node has several nodes that have several nodes when I use the Filter, it correctly filters.

However, in a filtered state, I check some boxes either in an indeterminate state or checked state, I notice that removing the filter also removes the checkboxes I had placed. What I was trying to achieve was have the user may filter and check any they may want, remove the filter and evaluate before doing another filter.

But if every time they check something in a filtered state and it gets removed in a non-filtered state, it defeats the purpose of the filter.

Any workaround?

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Feb 2018
5 answers
182 views

Hi !

 

I'm trying to get the code behind the formatting menu for forms like aligning, uniforming the size, spacing (vertically, horizontally).. Because I have my own application with forms and I need to control them like I can do it with Visual Studio.

 

Can anyone help me please ?

 

Thank you !

Hamza
Top achievements
Rank 1
 answered on 06 Feb 2018
11 answers
2.1K+ views
I have a form with a grid view which I have bound to a dataset (MS SQL database).  The table that I am binding to has a couple fields that have default values when adding new records.  I have figured out how to populate default values using the DefaultValuesNeeded event of the gridview control.  However this event only seems to fire if the user clicks the (click here to add new row) button at the bottom of the gridview.  I am trying to use a radButton to call a procedure to delete the row rather than use the default button at the bottom of the gridview.  I have tried using both the Add() and AddNew() functions of the gridview.  The Add() function will not work since my gridview is bound to a datasource.  The AddNew() will create a new row but it bypasses the DefaultValuesNeeded event.  I tried the code below but it didn't work - it errors out trying to set the first default value saying that no default value is specified for the second field:

Dim rowInfo As GridViewRowInfo = radGridInventoryRuns.Rows.AddNew()
rowInfo.Cells("RunYear").Value = Year(Now())
rowInfo.Cells("DateCreated").Value = Now()

 Is there anyway to mimic the behaviour of the button at the bottom of the gridview without actually clicking it.  I am using VS 2012 (vb.net) and the Q1 2014 version of the Telerik controls.
Dimitar
Telerik team
 answered on 06 Feb 2018
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?