Telerik Forums
UI for WinForms Forum
11 answers
600 views
Hello,

Is there an update for wordwrap in the RadTextBoxControl or and idea when it might be fixed. I have voted for it in the Issue Tracking service.

Essentially it wordwraps but splits the word mid-way instead of using whole words.

Many thanks

Terry
Stefan
Telerik team
 answered on 30 Jul 2014
2 answers
198 views
I have created a custom control wrapper for the DropDownList. My main reason was to create some shortcut methods for custom objects that we are using to populate the list.

I am trying to write some automated tests for my custom control. The problem is that when I create an instance of the custom control in the automated test (but not actually put it on a form or control), some of the data functionality is lost. I can set the DataSource property (using a list of my custom objects), but the Items collection still shows a count of 0. I can set the SelectedIndex proprty to a valid value, but the SelectedItem property remains null. When I do this same thing with an actual control on a form, the Items collection is populated and reflects what I set in the DataSource property.

 I assume that the DropDownList is borrowing some functionality from the form to tie the DataSource and Items properties together.

Is there something additional that I can do to make the DropDownList fully functional in an automated test, or is this not possible?

I have tried using the Rebind method and this does not help. I also tried not using my custom control and just creating a RadDropDownList object directly in my automated test and it behaves the same way.
IT Department
Top achievements
Rank 1
 answered on 29 Jul 2014
2 answers
90 views
Hello,

I've got a winform rad dropdrown list and all the dropdown items' content appear as expected when I combined 2 data-fields following the instruction in this thread:
http://www.telerik.com/forums/multiple-field-displaymember

Specifically, mine case is:
args.VisualItem.Text = row["LastName"] + ", " + row["FirstName"];  

So far so good.

However I think I still have to set a field to my rdd's MemberDisplay, that is:
               
               
rddlPaList.<strong>DisplayMember </strong>= dsResultPa.Tables[0].Columns[2].ToString(); //string - LastName  (1)<br>               rddlPaList.<strong>ValueMember</strong> = dsResultPa.Tables[0].Columns[3].ToString();  // (interger value - ID) (2)


If I don't have the DisplayMember explicitly set as done in line (1) - in other words, if I remove line (1) >> as the rdd loads, the ID shown up for the selected item, i.e. 142, because of what's being done in (2) - I need (2) to happen, so I must keep that line.

But if I have both lines of codes, then the selected item get the Last Name displayed. I want it to display Last Name, First Name as well.

How can I achieve that? 

Again, although all the items in the dropdown do get rendered in the format I implemented in the VisualListItemFormatting event handling codes, which is LastName, FirstName,  the current item in "the box" has only Last Name displayed and it's getting a bit frustrated. What am I missing? Please help!!!








System.Data.DataRowView



Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Jul 2014
1 answer
169 views
I'm attempting to add a Hyperlink to a Table and need some guidance on how to implement correctly. Below is the method that I'm using that I modified from another post. When it runs it appears to add the row correctly however all I see are blank lines in the cells that contain the Hyperlinks. 

01.private TableRow AddNewRow(object[] items)
02.{
03.    TableRow newRow = new TableRow();
04.    for (int i = 0; i < items.Length; i++)
05.    {
06.        TableCell cell = new TableCell();
07.        Paragraph paragraph = new Paragraph();
08.        Span span = new Span();
09.         
10.        if(items[i] is string)
11.        {
12.            var newString = items[i] as string;
13.            if (string.IsNullOrEmpty(newString)) newString = "No available information";
14.            span.Text = newString;
15.            paragraph.Inlines.Add(span);
16.        }
17.        else if(items[i] is HyperlinkInfo)
18.        {
19.            var hyperlinkInfo = items[i] as HyperlinkInfo;
20.            HyperlinkRangeStart hyperlinkStart = new HyperlinkRangeStart();
21.            hyperlinkStart.HyperlinkInfo = hyperlinkInfo;
22.            HyperlinkRangeEnd hyperlinkEnd = new HyperlinkRangeEnd();
23.            hyperlinkEnd.PairWithStart(hyperlinkStart);
24.            span.Text = hyperlinkInfo.ToString();
25.            paragraph.Inlines.Add(hyperlinkStart);
26.            paragraph.Inlines.Add(hyperlinkEnd);
27.        }
28.        cell.Blocks.Add(paragraph);
29.        newRow.Cells.Add(cell);
30.    }
31.    return newRow;
32.}
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Jul 2014
1 answer
241 views
Hello, 
When using the RadWizard control, I added an image in the background as a welcome image but introductory text on the panel on the first screen gets displayed with the line that I am trying to get rid of. The layout is nicer when no image is used but I would like to display the text with no line distinguishing the text and image.
I also tried adding the text on the image itself but that text ends up showing on rest of the screens as well which is why I am doing it on the panel. Can you please suggest if its possible and how? 

Thank you,
Gurleen
Ralitsa
Telerik team
 answered on 28 Jul 2014
0 answers
115 views
We using Telerik for WinForms Q2 2014. After clicking on RadMenuItem and then moving the cursor to other RadMenuItems then it open. It was not in Telerik for WinForms Q3 2013. How do we can return to the previous functionality?
Roman
Top achievements
Rank 1
 asked on 28 Jul 2014
6 answers
390 views
Hello Telerik,

I'm trying to add some DragDrop support to my forms and their RadTextBox (move/copy textbox content to another textbox only. Not a dragdop inside the same textbox).

I have some problems to start the operations because when an user make some mouse move with the left button pressed, the radtextbox start selecting the text from the pointer position (like Notepad do).

The perfect case is to have a behavior corresponding to the RadRichTextBox (or Microsoft Word). If you click and move when some text is selected, a dragdrop operation is started. If you click and move without any text selected, a selection operation is started (the current behavior).

Which event should I handle to make it work ? (RadTextbox mousemove don't trig, RadTextBox.TextBoxElement mouvemove do trigger but I can't get any information about the selected text from it !)

Thanks for reading

Marco
Top achievements
Rank 2
Veteran
 answered on 25 Jul 2014
2 answers
87 views
Hi

We build Telerik WinForms assemblies from source for redistribution as per your guidelines.

Our application which uses RadControls is being upgraded to target .NET 4.5.1 with VS2012 and I was hoping you could advise if there would be any benefit in also building Telerik assemblies targeted at 4.5.1?

If so, would it be a question of trawling through the various csproj files and creating PropertyGroup conditions for something like 'Release45' using 'Release40' as a starting point?

On the other hand, if we leave the Telerik solution at .NET 4.0 (Release40 config) are you aware of any compatibility issues between .NET 4.0 and 4.5.1, especially from the graphics/drawing perspective?

I hope this question makes sense. Many thanks.

Adrian
AdrianG
Top achievements
Rank 1
 answered on 24 Jul 2014
3 answers
166 views
Hi,
I am using Telerik 2014 Q1 SP1.
this is my code:

public Form1()
 {
     InitializeComponent();
 
     RadMenuItem rtsmNew = new RadMenuItem("New");
     rtsmNew.Click += rtsmNew_Click;
    
     RadShortcut rs=new  RadShortcut(Keys.None, Keys.F2);
     rtsmNew.Shortcuts.Add(rs);
     rtsmNew.HintText = rs.GetDisplayText();
 
   }
 
public void rtsmNew_Click(object sender, EventArgs e)
 {
     new Form2().ShowDialog();
 }
when i am in Form1 and hit F2, it opens Form2 in dialoge mode. everything is ok so far but the problem is even when Form2 is open and i hit F2 it will again open Form2 and thats repeat.
but i think the shortcuts are suppose to work when the form is active!

also if i use raddock, no matter which tabbed document is active, the shortcuts for first form in tabbed documents  will works!!!!

So obviously i want shortcuts to perform whenever my form is active.
George
Telerik team
 answered on 23 Jul 2014
11 answers
638 views
Hi,
I would like to reorder the rows in grid view as we are reordering the columns in radgridview. For ex. I should be able to drag and drop the 10th row to 2nd row like. Is that possible ?

Thank you in Advance
Raghu
Dimitar
Telerik team
 answered on 23 Jul 2014
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?