Telerik Forums
UI for WinForms Forum
1 answer
76 views

Hi,
Actually we have made Custom Summary Item for displaying helper text. But we are facing one issue we are displaying helper text in a summary row but that text got truncated from last (i.e. last few characters are missing when displayed).Please have look on below image to have good understanding of issue.
I am providing you the code which we have used. If you need any more information. Please let me know

Code:

Method to set summary row text

                

 private void SetHelpText(string strHelpText)
        {
            if (this.SummaryRowsTop.Count == 0)
            {
                CustomSummaryStatusItem summaryItem = new CustomSummaryStatusItem(this.MasterTemplate.Columns[0].Name, strHelpText + "", GridAggregateFunction.Count);
                GridViewSummaryRowItem summaryRowItem = new GridViewSummaryRowItem();
                // Used to set cell value in GrdData_ViewCellFormatting
                summaryItem.Name = "StatusText|" + strHelpText;

                summaryRowItem.Add(summaryItem);
                this.SummaryRowsTop.Add(summaryRowItem);
            }
            else
            {
                var summaryRowTop = this.SummaryRowsTop[0];
                var summaryItem = summaryRowTop[0] as GridViewSummaryItem;
                summaryItem.Name = "StatusText|" + strHelpText;
            }

            var summaryRowIndex = this.MasterView.SummaryRows.IndexOf(this.SummaryRowsTop[0]);
            this.MasterView.SummaryRows[summaryRowIndex].PinPosition = PinnedRowPosition.Top;
            this.MasterView.SummaryRows[summaryRowIndex].IsVisible = true;

            this.MasterView.SummaryRows[0].PinPosition = PinnedRowPosition.Bottom;
            this.MasterTemplate.BottomPinnedRowsMode = GridViewBottomPinnedRowsMode.Fixed;
        }

 

Custom Summary Item:

public class CustomSummaryStatusItem : GridViewSummaryItem
    {
        public CustomSummaryStatusItem(string name, string formatString, GridAggregateFunction aggregate)
        : base(name, formatString, aggregate)
        { }
        public override object Evaluate(IHierarchicalRow row)
        {
            return 1;
        }
    }

Below Attached Image will help you to know more about issue. Please have a look on them.
Actual Text Dispalyed


Expected Text To Display
Thanks,
Shubham Jain

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Oct 2023
3 answers
77 views

Is there a way to call the Telerik 'insert chart' dialog for a RadSpreadsheet?

I don't want to include the whole ribbon bar, as it has lots of options which would make a mess of my data if a user tried to use it, but I'd REALLY like to let them to be able to add charts.

Otherwise, ss I had to do with the find/replace dialog, I'll have to replciate your UI, which is silly.

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Oct 2023
1 answer
79 views

Is there a way we can put the record count in each group title after grouping on a column in the Grid after the user drags the column to the GROUP BY row?

See exmple

 

TIA.

Dinko | Tech Support Engineer
Telerik team
 answered on 12 Oct 2023
1 answer
211 views
Hi, I have a need for the user to be able to select an rectangular area from a PDF page from within the PDF viewer and then to extract this area as an image. Is this possible? If so how?
Dinko | Tech Support Engineer
Telerik team
 answered on 12 Oct 2023
8 answers
630 views
Hi,

Is there any way to best fit the Radgrids filter popup width? Now when i click filter button , filter popups with available values..If value is long i have to do horizontal scrolling to read the value.I dont want to that..

Thanks
Nadya | Tech Support Engineer
Telerik team
 answered on 12 Oct 2023
1 answer
166 views

In my application, I'm able to bind a TreeView to a Well object in my application through object-relational binding as such:

this.wellTreeView = new RadTreeView();

BindingList<Well> wells = new BindingList<Well>() { well }; this.wellTreeView.DataSource = wells; this.wellTreeView.DisplayMember = "name\\name\\name"; this.wellTreeView.ChildMember = "wells\\layers\\items";

This works and I am able to view the TreeView hierarchy and select the nodes in the form. However, when trying to get the nodes in code, the wellTreeView is empty (0 nodes) and throws an Index out of range error in:

RadTreeNode node = wellTreeView.Nodes[0];

My Well class is defined like so:

public class Well
{
    public string name {get; set;}
    public List<Layer> layers {get; set;}
}

public class Layer
{
    public string name {get; set;};
    public List<Item> items {get; set;}
}

public class Item
{
    public string name {get; set;};
    public decimal length {get; set;}
}

I don't understand why the wellTreeView is empty without any nodes despite being able to view the tree in the form. Surely the well is bound to the TreeView?



Dinko | Tech Support Engineer
Telerik team
 answered on 11 Oct 2023
1 answer
87 views

Hey there!

I wanted to ask if there's a way to visualise, the data from a specific RadGanttView, in a Timeline like the this:

imagem

Thank you.

Dinko | Tech Support Engineer
Telerik team
 answered on 10 Oct 2023
1 answer
143 views

Hey there!

I wanted to ask if there's a way to change the resource height to a fixed value... When i have a low amount of resources it works fine

But when I have a high amount of resources, the object becomes unusable:

I need to be able to define a fixed size for each resource, and if I do that with code I'm using in the first resource  ('SetResourceSize') then every single one of them will have the same small height (accordingly with the monitor of the user).

Is there a way to do that? Maybe by forcing a vertical scroll (something that i tried but didn't managed to do it)?

Dinko | Tech Support Engineer
Telerik team
 answered on 10 Oct 2023
1 answer
79 views
HI.
I trying to create a Connection in RadDiagram  With VB.net
My use case is adding a handler to detect mouse right click on the connection. Although the following code does not give an error, it does not work either.

Blow is my simple test code.

Imports Telerik.WinControls
Imports Telerik.WinControls.UI

Public Class RadForm1

    Private Sub RadForm1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Dim con As New RadDiagramConnection
        con.Name = "Telerik_Connection"
        con.StartPoint = New Point(10, 10)
        con.EndPoint = New Point(100, 100)
        con.StrokeThickness = 5
        con.BackColor = Color.Blue
        AddHandler con.MouseClick, AddressOf Con_click

    End Sub

    Private Sub Con_click(ByVal sender As Object, ByVal e As MouseEventArgs)
        If e.Button = MouseButtons.Right Then
            Me.Text = sender.name
        End If
    End Sub
End Class


Dinko | Tech Support Engineer
Telerik team
 answered on 10 Oct 2023
1 answer
88 views

We’re long time Telerik subscribers. I love telerik but but i dread seeing ‘that’ notice that theres a new upgrade to the control set as i know i’ll be fiddling about with source to get things to compile. Winforms. 

Firstly, licx files arent updated with the version number of the new control set. Its a bit concerning, but at least i can do a [search/replace in files ] on old to new version number to fix this quickly.

secondly, when adding to the list of references, which file path should we be searching for an assembly? My solution has many projects and ive found several file paths. Some to the Telerik install directory (eg c:\program files(86)….), one or two from my user\username 🤯many from the lib\telerik directory beneath the solution\project directory.

i think ive finally realised that the update application works by switching out just those references from the old, to the new lib base file path for us. But id like confirmation please.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Oct 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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?