Telerik Forums
UI for WinForms Forum
1 answer
114 views

Hello.

I am using RadRibbonBar (Main Form). I have multiple buttons in ribbon. Each button has different forms. I want dock them inside its Main Form on click. here is an example in below screenshot. I am unable to achieve the requirement.

Please note: The child form should dock exactly below the ribbon form. and also, the cross button (child form close button) should be present right after the tab (Child form name).

Please attach a zip file with a source code.

Thanks

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

Hi,

I would like to know how we get the clicked bar AxisLabelElement?

What I mean, is when I click on the chart View certain bar I would like to read its Axis label.

Many thanks in advance

Omar

Dinko | Tech Support Engineer
Telerik team
 answered on 25 Sep 2023
2 answers
136 views

Hi,

I'm using my custom template and I would like to adjust the hyperlink color in RadLabel.

Is there a way to change the color of the hyperlink? The hyperlink is set using an HTML tag. For example: "lblMessageText.Text = "<html>New software version: <a href=www.xyzcom/update>www.xyz.com/update</a>."?

Best regards

Pawel

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Sep 2023
2 answers
201 views

I would like to know how to access the values that are typed in all the "Value Filter" and "Label Filter" options, which appear in the PivotGrid filters in the RowGroupDescriptions and ColumnGroupDescriptions parts, since I require those values to perform additional calculations.

I have tried to reach the values but I only reach the Type of condition and the value, I provide the code that I use for what I mention:

foreach (PropertyGroupDescriptionBase gd in this.radPivotGrid1.RowGroupDescriptions)
{
ValueGroupFilter Filtroporvalor = gd.GroupFilter as ValueGroupFilter;                    

if (Filtroporvalor.Condition != null)
{
ComparisonCondition condition = Filtroporvalor.Condition as ComparisonCondition;

var condicionaux = condition.Condition;
var valorthan = condition.Than;

switch (condicionaux.ToString())
{
case "Equals":
//Code that performs additional calculations
break;
case "IsGreaterThan":
//Code that performs additional calculations
break;
case "IsDoesNotEqual":
//Code that performs additional calculations
break;
}
}
}

But I cannot reach the other values, for example if I use "Equals", I would also like to obtain the name of the field that is used to perform that condition and so on for the other options of "Value Filter", that field is the one that is you can select in the window that is displayed when the filter is applied:


Thank you for your support.

Dinko | Tech Support Engineer
Telerik team
 answered on 22 Sep 2023
2 answers
149 views

Hello,

I have question about diagram zooming behavior. I would expect standard behavior, when zooming by mouse wheel, diagram should zoom with keeping point behind mouse cursor on the same position, zooming by toolbar buttons (programatically by ZoomIn / ZoomOut methods) should do the same, but keeping center point on the same position. It's almost working like this, but the first zoom (either by mouse or by buttons) do some strange first "move", and then it works like expected.

I set zoom/position on startup to fit main shape to all control space, also I added button "Zoom Fit" that makes the same. And I think that control "remembers" some other zoom center and it does the first zoom by this point. Next zooms work like expected. I have attached my test project. I have also attached animations of behavior as attachments (I tried to add it to question as images, but I couldn't submit question with them, it have always ended with error).

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Sep 2023
1 answer
360 views

When a user attempts to resize a column (yea, the columns are set to be resizeable) and the grid's horizontal scroll bar is visible, the column will not resize. We get the re-size icon, but nothing happens.  As soon as the scroll bars are gone, the columns will then resize as excepted.  

 

Anyone have a work around for this.  It's driving our customers crazy....

Dinko | Tech Support Engineer
Telerik team
 answered on 21 Sep 2023
1 answer
91 views

Hello,

I am trying to get the ClearButton of the RadTextBox next to the TextBoxElement to work but when I place it next to it (via Margin and a bit of Padding) the ClearButton does not react to any mouse events anymore. All the mouse releated hover properties of the ClearButton are false, as well (ContainsMouse, IsHovered, IsMouseOver).

Most interesting here is that the tbxWithMargin.TextBoxElement.MouseMove event is triggered but it does not recognize that the mouse is over the ClearButton. I've also tried to check here if the cursor is over its BoundingRectangle without success.

You can see this behaviour in the attached project.

If this would be possible (without a general mouse move check event of the whole form!), I'd also would like to use this ClearButton placement for a RadTextBoxControl.

Nadya | Tech Support Engineer
Telerik team
 answered on 19 Sep 2023
2 answers
154 views

Not able to identify Automation ID inside Radlistview each cell.

Please bellow snapshot.

 

Nadya | Tech Support Engineer
Telerik team
 answered on 19 Sep 2023
5 answers
1.3K+ views
Hey guys,
I'm trying to bind a GridView to a DataTable which contains DataColumns of Type Boolean, String, Int32 and an Enumeration. When I bind it using AutoGenerateColumns = true the column containing the enum-values shows their int representation. I expected it to show as a dropdown like the standard DataGridView does.

Afterwards I tried to create the GridViewColumns myself but I can't figure out how to use the Enum as a DataSource for the GridViewComboBoxColumn. Here is my code:
GridViewComboBoxColumn col5 = new GridViewComboBoxColumn("ResultType"); 
col5.DataSource = Enum.GetValues(typeof(EnumResultType)); 
col5.ValueMember = "???"
col5.DisplayMember = "???"
dgvDisciplines.MasterGridViewTemplate.Columns.Add(col5); 

Is this the right way to specify the DataSource? How do I need to specify the ValueMember and Displaymember?

The DropDown in the ComboBoxEditor shows the right (string) Values but the int-values of the rows aren't converted to that String-Representation.

If needed, here is the code of the enumeration:
public enum EnumResultType 
    { 
        Maximum, 
        Minimum, 
        Summe, 
        Durchschnitt 
    } 

Any hints?

Kind regards,
Nils


Bilbo
Top achievements
Rank 1
Iron
 answered on 16 Sep 2023
2 answers
122 views

In my code, i want to add many items in radlistview and then save to sql server table in windows forms app. Here below is my code, but this code isnt working as radlistview does not contain definition for text

The ones i have lebelled in green color. 

Note: This code normally works with normal windows list view control, but i want to use radlistview to implement the same.


    if(ListView1.Items.Count == 0)
    {
        ListViewItem lst = new ListViewItem(txtCustomer.Text);
        lst.SubItems.Add(txtPhone.Text);
        lst.SubItems.Add(txtAddress.Text);
        lst.SubItems.Add(txtLoadNo.Text);
        lst.SubItems.Add(txtDriver.Text);
        lst.SubItems.Add(txtDriverPhone.Text);
        lst.SubItems.Add(txtHauler.Text);
        lst.SubItems.Add(txtPlateNo.Text);
        lst.SubItems.Add(txtProduct.Text);
        lst.SubItems.Add(txtDescription.Text);
        lst.SubItems.Add(txtQty.Text);
        lst.SubItems.Add(txtDate.Text);
        ListView1.Items.Add(lst);


        txtProduct.Text = "";
        txtDescription.Text = "";
        txtQty.Text = "";

        return;
    }

    for(int j = 0; j <= ListView1.Items.Count - 1; j++)
    {
        if(ListView1.Items[j].SubItems[1].Text == txtCustomer.Text)
        {
            ListView1.Items[j].SubItems[1].Text = txtCustomer.Text;
            ListView1.Items[j].SubItems[2].Text = txtPhone.Text;
            ListView1.Items[j].SubItems[3].Text = txtAddress.Text;
            ListView1.Items[j].SubItems[4].Text = txtLoadNo.Text;
            ListView1.Items[j].SubItems[5].Text = txtDriver.Text;
            ListView1.Items[j].SubItems[6].Text = txtDriverPhone.Text;
            ListView1.Items[j].SubItems[7].Text = txtHauler.Text;
            ListView1.Items[j].SubItems[8].Text = txtPlateNo.Text;
            ListView1.Items[j].SubItems[9].Text = txtProduct.Text;
            ListView1.Items[j].SubItems[10].Text = txtDescription.Text;
            ListView1.Items[j].SubItems[11].Text = txtQty.Text;
            ListView1.Items[j].SubItems[12].Text = txtDate.Text;


            txtProduct.Text = "";
            txtDescription.Text = "";
            txtQty.Text = "";

            return;
        }
    }

    ListViewItem lst1 = new ListViewItem(txtCustomer.Text);
    lst1.SubItems.Add(txtPhone.Text);
    lst1.SubItems.Add(txtAddress.Text);
    lst1.SubItems.Add(txtLoadNo.Text);
    lst1.SubItems.Add(txtDriver.Text);
    lst1.SubItems.Add(txtDriverPhone.Text);
    lst1.SubItems.Add(txtHauler.Text);
    lst1.SubItems.Add(txtPlateNo.Text);
    lst1.SubItems.Add(txtProduct.Text);
    lst1.SubItems.Add(txtDescription.Text);
    lst1.SubItems.Add(txtQty.Text);
    lst1.SubItems.Add(txtDate.Text);
    ListView1.Items.Add(lst1);

    txtProduct.Text = "";
    txtDescription.Text = "";
    txtQty.Text = "";
} catch(Exception ex)
{
    MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}

Nadya | Tech Support Engineer
Telerik team
 answered on 15 Sep 2023
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?