Telerik Forums
UI for WinForms Forum
2 answers
68 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
137 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
212 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
90 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
339 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
72 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
144 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
591 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
1 answer
99 views
Dears ,

kindly I need your help as I've two timepickers and both of them after the time pop up screen appear and choose the time it turned it to date " 31/1/1990"

Ralitsa
Telerik team
 answered on 23 Jul 2014
3 answers
96 views
What is the status on Marked Zone support in the RadChartView control? I desperately need this functionality in the next few days. It seems as though after having upgrading to the latest version of the Telerik WinForms controls (2013.2.612.40) the RadChart control has disappeared from my toolbox. Has the old charting control been removed in its entirety? If not, how do I get it back? If so, what is the replacement for MarkedZones that I can use in the immediate future (i.e. tomorrow)?

Looking forward to your response.
Ivan Petrov
Telerik team
 answered on 22 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)
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
ProgressBar
CheckedDropDownList
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
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?