Telerik Forums
UI for WinForms Forum
5 answers
300 views
Hello

I have a image then text displayed as the selected item of a drop down list. As of now, the image is too close to the left edge of the drop down. I would like to control the distance from the left of all items in my drop down including text and images. How can I accomplish this?

I am using Q2 Build Winform.
Thank You
Stefan
Telerik team
 answered on 06 Feb 2012
5 answers
358 views
Currently I am trying to bind data to a richtextbox and I am not getting any data populating.
I am currently using this to bind the data.
radRichTextBox1.DataBindings.Add("Text",ds,"Table.ColumnName",false,DataSourceUpdateMode.OnPropertyChanged);

I have verified I am only pulling one record..
I have done this with TextBoxes with no issue.
I have the feeling "Text" should be something else but I am unsure what.
Any help would be appreciated.
Julian Benkov
Telerik team
 answered on 06 Feb 2012
3 answers
317 views
I have a radgrid with a combobox column that I need to allow the user to type in, and if the item they enter is not in the list, allow them to add it to the underlying datasource via another form.

I would like to know which event to handle on the radgrid or combocolumn that will allow me to do this.

It is super easy to do using, name kept secret, control suite, via a method called ItemInList. Alas, I cannot find a similar solution in the Telerik suite. Please tell me that I am just overlooking it.


Thanks in advance.
Ivan Petrov
Telerik team
 answered on 06 Feb 2012
2 answers
210 views
I have tried you Radrichtextbox with the hyperlink, however, the behaviour of the control is not as expected for the following reasons:

1- The HyperlinkNavigationMode is set to click - however one still has to CtrlClick

2- In Private Sub RadRichtextbox_Hyperlinkclicked -- e.handled is set to true - however an external browser is still opened.  I just want to show the URL in a messagebox.

My project details:
Form with one radbutton control and one radrichtextbox control

My code:

Imports Telerik.WinControls.RichTextBox.FileFormats.Html
Imports Telerik.WinControls.RichTextBox.Model


Public Class Form1

Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
Me.RadRichTextBox1.HyperlinkNavigationMode = Telerik.WinControls.RichTextBox.HyperlinkNavigationMode.Click
Me.RadRichTextBox1.IsReadOnly = True
End Sub


Private Sub RadButton1_Click(sender As System.Object, e As System.EventArgs) Handles RadButton1.Click
Dim provider As New HtmlFormatProvider
Dim text_for_radrichtextbox As String = ""

Me.RadRichTextBox1.Document = New RadDocument
text_for_radrichtextbox = "<p>1. This is the text for the rad richtextbox <a href=" & Chr(34) & "http://www.telerik.com" & Chr(34) & ">Link text to Telerik</a>.</p>"
Me.RadRichTextBox1.Document = provider.Import(text_for_radrichtextbox
End Sub


Private Sub RadRichTextBox1_HyperlinkClicked(sender As Object, e As Telerik.WinControls.RichTextBox.Model.HyperlinkClickedEventArgs) Handles RadRichTextBox1.HyperlinkClicked
e.Handled = True 'to stop the external browser from opening
MessageBox.Show(e.URL) 'to show the URL
End Sub

End Class

Amin
Top achievements
Rank 1
 answered on 04 Feb 2012
7 answers
635 views
How do I change the visible time for Tooltips in RadViewGrid?

I'm using the _ToolTipTextNeeded event to set the text but the tip only remains visible for about 5 seconds.

I saw reference to a RadToolTipManager in the KnowledgeBase, but that control does not appear in the Rad controls listed in my VB .NET Visual Studio.


Finn

Svett
Telerik team
 answered on 03 Feb 2012
19 answers
551 views
Is there an easy way to allow sorting on group aggregates?

In my application it would make sense if the user could dynamically group and then sort the grid to show the biggest group (the one that contains the most records) first.

Regards
Erwin
Jack
Telerik team
 answered on 03 Feb 2012
5 answers
396 views
I have a RadDock  on my main form.  Within this RadDock I create multiple Forms that are create via the following code according to the MDI section of the RadDock documentation,

         messageGenerationForm = new MessageGenerationForm( this );
         messageGenerationForm.Text = "Message Generation";
         messageGenerationForm.MdiParent = this;
         messageGenerationForm.Show();

I set the CloseAction to be Hidden.

They are created as ToolWindows so they can be undocked from the form.  If they are closed, I want to have a menu item that will allow them to be restored.  How is this to be done?


Ken...
Julian Benkov
Telerik team
 answered on 03 Feb 2012
3 answers
241 views
It seems that Style.Reset() doesn't truly reset everything.  Code is below, results are attached.  Notice the black borders on the top two rows.  The value in the have columns for both of those rows was 0, then via code (UI technically), the number is updated to the same as the need column, going from a red border to the black border.  The third row down which appears as I would like it always had have > need, so it was never changed, and has the defaults.

And while I have your attention I have two other related questions:
1) Is there a better way to access the style element of a cell than this?
            GridViewCellInfo haveCell = e.RowElement.RowInfo.Cells["HaveColumn"];

2) I just wanted a simple 2 pixel red border...I've seen conflicting information in the forums as to what's really required.  The smallest set of properties I found that would work are in the code below.  That seems like an awful lot of work to put a 2 pixel red border in place.  Is what I have the best approach?

        private void RequirementsGrid_RowFormatting(object sender, RowFormattingEventArgs e)
        {
            GridViewCellInfo haveCell = e.RowElement.RowInfo.Cells["HaveColumn"];

            int? need = (int?)e.RowElement.RowInfo.Cells["NeedColumn"].Value;
            int have = 0;
            if (haveCell.Value != null)
                int.TryParse(haveCell.Value.ToString(), out have);

            if (have < need)
            {
                haveCell.Style.CustomizeBorder = true;
                haveCell.Style.BorderColor = Color.Red;
                haveCell.Style.BorderGradientStyle = GradientStyles.Solid;
                haveCell.Style.BorderBoxStyle = BorderBoxStyle.SingleBorder;
                haveCell.Style.BorderWidth = 2;
            }
            else
            {
                haveCell.Style.Reset();
            }
        }

Thanks!
Jack
Telerik team
 answered on 03 Feb 2012
3 answers
121 views
Hello,

I have a problem on starting the advanced layout designer for a RadDock-control. It shows me a "permission denied" for "C:\DockAdvancedLayoutDesignerInput.xml"... I can cancel afterwards, but the layout manager doesn't show the controls I added manually before.

What I have done so far:
- Installed Telerik WinForms Trial
- Started a new project
- Bought Telerik WinForms
- Uninstalled the Trial and installed the Full Version
- Conversed my project to a Telerik application (was necessary to do it again)
- Added a RadDock-Control to my project
- Added some Toolboxes, etc. to the RadDock-Control
- Tried to start the advanced layout manager
- got error message
- opened new thread here... ;)


Sorry for my broken english, I hope I could make my point.

Fabian
Stefan
Telerik team
 answered on 03 Feb 2012
1 answer
101 views
hi sir
I asked a question that how I can align screentip of RadButtonelements of Radribbonbar from right; but unfortunately you didn't answer and deleted it,
I asked again.I want to align right edge of ScreenTip to right edge of Radbuttonelement , because the screentip text is writhen by right to left language.
please help me If there was a solution.
Stefan
Telerik team
 answered on 03 Feb 2012
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
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
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
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?