Telerik Forums
UI for WinForms Forum
5 answers
888 views
in demo of text box control bing icon is displayed on left side of text control, i can't change that icon. there is only option for changing the background image of text box control. how to add icon in it?
Nadya | Tech Support Engineer
Telerik team
 answered on 29 Aug 2019
2 answers
408 views

Hi admin,

 

I want to rotate individual pages. Not radpdfviewer of rotation. I found individual page logic but exactly not correct . please see attach file.

 

 

Thanks

Moe

Vladislav
Telerik team
 answered on 28 Aug 2019
2 answers
190 views

Hi Admin,

 

After RadPdfViewer1.LoadDocument , I want to default focus to page no 6. May I know how to do in winform.

 

Thanks

Moe

Moe
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 28 Aug 2019
1 answer
176 views

Hello,

I am developing one windows application. in one of the page i am using Telerik.WinControls.UI.RadGridView and added Edit and Delete button in grid. While first time my page appears i click on "Delete" button, it shows MessageBox.Show message with confirmation "Yes" and "No" buttons. while i click on No button it works as expected. While i click on "Edit" button it open new form in window and save and close that form. now rebind grid in "Edit" and "Delete" button. Now, if i click on delete button, it asks for MessageBox.show with confirmation "Yes" and "No" buttons. While i click on "No" button message box appear twice. while user clicks on "NO" we called "return". still its not working. Can anyone please help me out for this issue. Need help ASAP.

 

Thanks.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Aug 2019
1 answer
165 views

I have a custom visual item class derived from RadListVisualItem. My custom visual item is being created in the CreatingVisualListItem event, but the "Padding" property is ignored. I've tried Margin, as well, but no luck. My class is below. What am I missing?

 

public class CustomVisualItem : RadListVisualItem
{
DockLayoutPanel mainContainer;
StackLayoutElement leftColumn;
StackLayoutElement rightColumn;
LightVisualElement titleElement;
LightVisualElement photoElement;

private ImagePrimitive image;
public ImagePrimitive Image
{
get
{
return this.image;
}
}

protected override Type ThemeEffectiveType
{
get
{
return typeof(RadListVisualItem);
}
}

protected override void CreateChildElements()
{
base.CreateChildElements();

mainContainer = new DockLayoutPanel();
leftColumn = new StackLayoutElement();
rightColumn = new StackLayoutElement();
photoElement = new LightVisualElement();
titleElement = new LightVisualElement();

this.Children.Add(mainContainer);
mainContainer.LastChildFill = true;

leftColumn.Orientation = Orientation.Vertical;
leftColumn.Children.Add(photoElement);
photoElement.DrawBorder = true;
photoElement.Shape = new CircleShape();
photoElement.BackColor = Color.Transparent;
photoElement.BackColor2 = Color.Transparent;
photoElement.BackColor3 = Color.Transparent;
photoElement.BackColor4 = Color.Transparent;
photoElement.AutoSize = false;

rightColumn.Orientation = Orientation.Vertical;
rightColumn.Children.Add(titleElement);
titleElement.Padding = new Padding(50);
titleElement.AutoSize = false;
titleElement.DrawBorder = true;
titleElement.BorderBoxStyle = Telerik.WinControls.BorderBoxStyle.FourBorders;
titleElement.BorderLeftWidth = 0;
titleElement.BorderTopWidth = 1;
titleElement.BorderRightWidth = 0;
titleElement.BorderBottomWidth = 0;

mainContainer.Children.Add(leftColumn);
mainContainer.Children.Add(rightColumn);
DockLayoutPanel.SetDock(leftColumn, Telerik.WinControls.Layouts.Dock.Left);
DockLayoutPanel.SetDock(rightColumn, Telerik.WinControls.Layouts.Dock.Right);
leftColumn.NotifyParentOnMouseInput = true;
rightColumn.NotifyParentOnMouseInput = true;
titleElement.NotifyParentOnMouseInput = true;
photoElement.NotifyParentOnMouseInput = true;
}
}

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Aug 2019
6 answers
398 views

I am having trouble just trying to get a user's currently selected cell when using this control.

https://docs.telerik.com/devtools/winforms/controls/spreadsheet/features/ui-working-with-selection.html

from this page I can't even get this to work with my control (Selection seems to not be found so I Underlined and Bolded it)

Selection selection_2 = this.radSpreadsheet.SpreadsheetElement.ActiveWorksheetEditor.Selection;

selection_2.Select(new CellIndex(0, 0), false);

yes I have all the required References added to my project and form.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Aug 2019
1 answer
157 views

Hi everyone!

I have a couple of columns containing numbers which some of them are zeros (0).I use the following code to format grid cells:

for(int i = 1; i < 6; i++)
{
    GridViewDecimalColumn myCol = this.Grid.Columns[i] as GridViewDecimalColumn;
    myCol.FormatString = "{0:###,###,###,###}";
}

As  you can tell this code turns this value: 1234567 into this: 1,234,567

But my problem is that when this formatting is applied, since some of my cells contain the value "0", all of them will be blank and empty. It's like nothing exists in that cell but if I remove the formatting, all zeros are again where they should be.

I believe this problem is probably because of the type of "GridViewDecimalColumn" class.

What's your suggestion?

Nadya | Tech Support Engineer
Telerik team
 answered on 27 Aug 2019
1 answer
332 views
Hi. I want to add a separator (horizontal line) item to my radDropDownList. I've followed the approach at https://www.telerik.com/forums/adding-some-separator-in-the-list which works. However I have 2 items that have empty string as the text and I only want one of them to be shown as a horizontal line. I'm using a data bound list and I'd like to use either the item's value or it's tag to determine whether to show the item as a horizontal line or not. How do I get the item's value or it's tag from the VisualListItemFormatting event?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Aug 2019
1 answer
1.1K+ views

Dear Admins.

I'm Using radGridView, It have Some Summay Columns Added using the Code Below.

1.GridViewSummaryItem sumAmount = new GridViewSummaryItem
2.{
3.       Name = "Amount",
4.       FormatString = "{0:N2}",
5.       Aggregate = GridAggregateFunction.Sum
6.};
7.GridViewSummaryRowItem summaryRowItem = new GridViewSummaryRowItem(new GridViewSummaryItem[] { sumAmount,});
8.radGridView1.MasterTemplate.SummaryRowsBottom.Add(summaryRowItem);

 

How can i Access the Summary Item Values.

Do i have to iterate the GridView rows to Calculate the Sum or is there any easy way to access the Value. 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Aug 2019
3 answers
219 views

Hi there

I'm trying to show a tooltip on a RadPanel. Normally I'm using the ToolTipTextNeeded event for every Telerik control I used before. But this seem not to work here. I also tried the ToolTipText property on RadPanel.PanelElement. I also set AutoToolTip to true, without any success. What I tried:

1.private void panFiles_ToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)
2.{
3.    e.ToolTip.ToolTipTitle = "test1";
4.}

 

1.panFile1.ShowItemToolTips = true;
2.panFile1.PanelElement.AutoToolTip = true;
3.panFile1.PanelElement.ToolTipText = "test2";

 

1.panFile1.PanelElement.PanelFill.AutoToolTip = true;
2.panFile1.PanelElement.PanelFill.ToolTipText = "test";

 

However, the tooltip is still not showing up. I cannot find any information about it in the RadPanel documentation. Is this even possible for this control?

Best Regards,
Roman

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Aug 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?