Telerik Forums
UI for WinForms Forum
6 answers
1.2K+ views
Can you make a row autosize or otherwise set the height so that all of the the text in the cell in a TextBoxColumn is visible?  For some of the rows, the text string is short.  For others, it will take four lines to contain the text.

Thank you,
Gary
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Sep 2019
2 answers
302 views

Hello

This works ok :

        Dim obj1 As New ExpressionFormattingObject("MyCondition1", "MYDATE IS NULL", True)
      obj1.CellBackColor = Color.YellowGreen
      PeriodosGridView.Columns("MYDATE").ConditionalFormattingObjectList.Add(obj1)

But y need create ExpressionFormattingObject for detect when a value is greater than today

Is possible?

Thanks

Esteban
Top achievements
Rank 1
Iron
Iron
 answered on 30 Sep 2019
5 answers
415 views

Hi,

I want to remove the top four buttons from Image Editor control. How can do I do that? I found one thread for "UI for WPF", but the properties mentioned in that thread, like IsOpenButtonVisible etc are not there in my latest downloaded version of control. Are those properties specific to WPF? Please let me know how to remove those buttons in WinForm.

Thanks!

Ruturaaj.

Dimitar
Telerik team
 answered on 30 Sep 2019
6 answers
1.4K+ views

Hi, I have two questions that need help regarding effects on listview
Question one: I tried changing the border color of active subitem using events: cellformating, VisualItemFormatting but I still haven't found a way to enable it.
Question two: How can I stop highlight current listviewitem? I want after running listview code, there will be no more highlighted items.
I have uploaded photos for you to visualize.
Thank you.

 

Dimitar
Telerik team
 answered on 27 Sep 2019
12 answers
865 views

Dear Admins.
Using Telerik Winform UI R2 2019 SP1.
I'm trying to add Custom Cell in gridview column. (want to add 2 Buttons and a TextBox)
What i have did is 

public class CustomCellElement : GridDataCellElement
{
    private RadButtonElement radButtonElement;
    private RadButtonElement radButtonElement1;
    private RadTextBoxElement radTextBoxElement;
 
    public CustomCellElement(GridViewColumn column, GridRowElement row) : base(column, row)
    {
    }
 
    protected override void CreateChildElements()
    {
        base.CreateChildElements();
 
        radButtonElement = new RadButtonElement
        {
            Text = "-",
            Margin = new Padding(1, 1, 2, 1)
 
        };
        radButtonElement.Click += new EventHandler(radButtonElement_Click);
        this.Children.Add(radButtonElement);
 
        this.radTextBoxElement = new RadTextBoxElement
        {
            Margin = new Padding(1, 1, 1, 1),
            TextAlign = HorizontalAlignment.Right
        };
        this.Children.Add(radTextBoxElement);
 
        radButtonElement1 = new RadButtonElement
        {
            Text = "+",
            Margin = new Padding(2, 1, 1, 1)
        };
        radButtonElement1.Click += new EventHandler(radButtonElement1_Click);
        this.Children.Add(radButtonElement1);
    }
 
    private void radButtonElement_Click(object sender, EventArgs e)
    {
        int value = Convert.ToInt32(radTextBoxElement.Text) - 1;
 
        if (value > 0)
            radTextBoxElement.Text = Convert.ToString(value);
    }
 
    private void radButtonElement1_Click(object sender, EventArgs e)
    {
        int value = Convert.ToInt32(radTextBoxElement.Text) + 1;
 
        if (value > 0)
            radTextBoxElement.Text = Convert.ToString(value);
    }
 
    protected override void DisposeManagedResources()
    {
        radButtonElement.Click -= new EventHandler(radButtonElement_Click);
        radButtonElement1.Click -= new EventHandler(radButtonElement1_Click);
        base.DisposeManagedResources();
    }
 
    protected override Type ThemeEffectiveType
    {
        get
        {
            return typeof(GridDataCellElement);
        }
    }
 
    protected override SizeF ArrangeOverride(SizeF finalSize)
    {
        if (this.Children.Count == 3)
        {
            float textBoxWidth = finalSize.Width - radButtonElement.DesiredSize.Width - radButtonElement1.DesiredSize.Width;
 
            RectangleF buttonRect = new RectangleF(0, 0, radButtonElement.DesiredSize.Width, finalSize.Height);
            RectangleF textBoxRect = new RectangleF(radButtonElement.DesiredSize.Width - 1, 0, textBoxWidth - 1, finalSize.Height);
            RectangleF button1Rect = new RectangleF(textBoxWidth + radButtonElement.DesiredSize.Width - 1, 0, radButtonElement1.DesiredSize.Width, finalSize.Height);
 
            this.Children[0].Arrange(buttonRect);
            this.Children[1].Arrange(textBoxRect);
            this.Children[2].Arrange(button1Rect);
 
        }
 
        return finalSize;
    }
}
public class CustomColumn : GridViewDataColumn
{
    public CustomColumn() : base()
    { }
 
    public CustomColumn(string fieldName) : base(fieldName)
    {
    }
    public CustomColumn(string uniqueName, string fieldName) : base(uniqueName, fieldName)
    {
 
    }
 
    public override Type GetCellType(GridViewRowInfo row)
    {
        if (row is GridViewDataRowInfo)
        {
            return typeof(CustomCellElement);
        }
        return base.GetCellType(row);
    }
}

 

and How a Add it  GridView

CustomColumn customColumn = new CustomColumn
{
    Name = "Qty",
    FieldName = "Qty",
    HeaderText = "Quantity",
    Width = 150,
    HeaderTextAlignment = ContentAlignment.MiddleRight,
    TextAlignment = ContentAlignment.MiddleRight
};
 
radGridView1.MasterTemplate.Columns.Add(customColumn);

 

 

I'm Facing Display problem Please see Image.

Buttons are not displaying properly, cutting the sides. TextBox should be according to the height of GridView cell you can see empty area at the bottom.

How to get and set the value of text box. when row is adding directly to grid.

Please note that the Gridview AllowAddNewRow & AllowEditRow is set to False.(adding Row to GridView Programatically)

But I can Still change the value in the Textbox(Editing to textbox should be disabled.)

Apply the format like other column(please see image).

 

Thank you

Kashif

Kashif
Top achievements
Rank 1
 answered on 25 Sep 2019
8 answers
686 views

Hi,

 How do I hide the 'x' (close) on the top/right side of a docked window tab?

(See screenshot)

 Thanks,

 -Lou

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Sep 2019
1 answer
199 views

Hi,

I'm trying to update RadSheduler header text to show daily work hours. I'm implementing this from RadScheduler_ActiveViewChanged method, but the text is not changing unless I change active view. How can I resolve this issue?

Thanks for help

Karoon

private void radScheduler1_ActiveViewChanged(object sender, SchedulerViewChangedEventArgs e)
        {
            toolWindow2.Text = e.NewView.ViewType.ToString();

            if (e.NewView is SchedulerDayViewBase)
            {
                SchedulerDayViewBase dayViewBase = (SchedulerDayViewBase)e.NewView;
              
                dayViewBase.Scheduler.HeaderFormat = "ddd MMM dd";

                UpdateRadSchedulerHeader(dayViewBase);
            }
        }

I'm using the following line in UpdateRadSchedulerHeader method to update text:
((SchedulerHeaderCellElement)dayViewBase.Scheduler.ViewElement.Children[0].Children[j]).Text += "(Time 00:00:00)";

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Sep 2019
5 answers
270 views
Hi,
i want to customize scheduler by changing style of cells. I want to do it dynamiclly. Etc i want some cells to be red other to be green. How can i access cells while control is loading to set cell style?

Thanks
Marcin
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Sep 2019
11 answers
329 views
Hi,
            I want to increase or decrease the row height of the schedular there is no such property rowheight for radscheduler how can i do it.....can anyone explain it


Thanks
Divya
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Sep 2019
1 answer
278 views

Dear Admins,

I want to Show the Desktop alert specific position on the screen

Like I have a Parent Form which covers the full screen. A Child form is Called from the Parent as ShowDialog.

The requirement is to Display the Alert on the Location of Child Form (Bellow the Tittle Bar of Child Form). the width of Alert will be Equal to the Width of Form.

 

How can i achieve this behavior.

Dimitar
Telerik team
 answered on 24 Sep 2019
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)
Form
Chart (obsolete as of Q1 2013)
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
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
CollapsiblePanel
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?