Telerik Forums
UI for WinForms Forum
2 answers
207 views

Hi!

I'm trying to add a context menu for the RadTokenizedTextItem items in the RadAutoCompleteBox.Items collection. Something like the mockup-image i attached to this post.

The RadAutoCompleteBox itself has both a ContextMenu and a RadContextMenu property, but the RadTokenizedTextItem have none of these.To be clear: I want to be able to right-click an individual token in the RadAutoCompleteBox, click an option in the menu, and then catch some kind of event that includes information about that token in the eventargs. Is this even possible? If so, how would I go about doing this?

I'm using UI for WinForms.

 

Thanks,

Aleksander

Aleksander
Top achievements
Rank 1
 answered on 16 Aug 2016
11 answers
625 views
I have set my Docking.ToolWindow.Text to nothing and the ToolCaptionButtons to None. How can I hide the toolbar altogether? Ideally I would like to be able to programmatically make it reappear on mouse over. Is there a property for this somewhere?

Thanks,

G
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Aug 2016
8 answers
824 views
Hello,

In an application I need to enter some large numbers and the client wants to format the number as he types (add currency, thousands separator,etc). I tried to use RadMakedEditBox with the "f" mask, it does not respect culture, I tried using "c" mask, it kinda works but I need to get rid of the currency symbol. With the "c" mask I can change the currency symbol but I am unable to change it to String.Empty as I wish - the control crashes (the closest thing is to set " " - a single space - but it's not very pretty, the client does not accept that).

Is there any way to format the value using culture parameters without currency sign? I also tried working with "p" format but I didn't find a way to hide the percent sign. I seen another thread with a suggestion for using a spinner, that is not good for me.

Thank you.

Hristo
Telerik team
 answered on 15 Aug 2016
1 answer
129 views

Related screenshots:

Scr1: http://prnt.sc/c4t86p

Scr2: http://prnt.sc/c4tazq

Description:

1) if AddNewRow.True and AddNewRowPosition.Top the top line of cell selection rectangle is eated by half;

2) if SelectionMode.CellSelect the bottom line of cell selection rectangle is eated by half.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Aug 2016
2 answers
202 views

I'm trying to use the ExportToCSV function and I can see it works ok with one of my grids, one that was created with the Designer. but when trying to generate a GridView on the fly it'll export a blank CSV, even when the grid's DataSource is filled with records.

01.private void radButton1_Click(object sender, EventArgs e)
02.{
03.    RadGridView tempGrid = new RadGridView();
04. 
05.    GridViewTextBoxColumn firstName = new GridViewTextBoxColumn();
06.    firstName.FieldName = "fname";
07.    tempGrid.Columns.Add(firstName);
08. 
09.    GridViewTextBoxColumn lastName = new GridViewTextBoxColumn();
10.    lastName.FieldName = "lname";
11.    tempGrid.Columns.Add(lastName);
12. 
13.    GridViewTextBoxColumn emailAddress = new GridViewTextBoxColumn();
14.    emailAddress.FieldName = "email";
15.    tempGrid.Columns.Add(emailAddress);
16. 
17.    ContactsEntities csvList = new ContactsEntities();
18.    tempGrid.DataSource = (from c in csvList.CSVList select c).ToList();
19. 
20.    ExportToCSV exporter = new ExportToCSV(tempGrid);
21.    string fileName = "D:\\ExportedData2.csv";
22.    exporter.RunExport(fileName);
23.}

DBE
Top achievements
Rank 1
 answered on 15 Aug 2016
4 answers
670 views
And probably with RadListBox also.

The problem is as follows: I have a RadComboBox, with DataSource, DisplayMember and ValueMember defined. It get's populated just fine:
cmbNewTipoUtente.ValueMember = "ID_TipoUtente";  
cmbNewTipoUtente.DisplayMember = "Designacao";  
cmbNewTipoUtente.DataSource = dt; //<- DataTable 

The same RadComboBox has a DataBinding on SelectedValue to a property on a POCO object. Something like this:
cmbNewTipoUtente.DataBindings.Add("SelectedValue", mNewTipoUtente, "ID_TipoUtente"true, DataSourceUpdateMode.OnPropertyChanged, null); 

Also have the SelectedIndexChanged event subscribed where I check for some conditions. In the event, I'm checking the value on the ID_TipoUtente property so I can pass it to a method on my business layer. This is where the problem lays (and I think it is a bug), whenever I selecte an item on the RadComboBox, the value of my property do not get updated.

I tryed to open a Bug Report, but it seems there's also a bug on My Account section of the site, since there is only one product available to me, where should be almost all of them. lol

This is a big issue since many of my features are broken because of this and can cause me some pain with my clients.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Aug 2016
1 answer
229 views

VisualStudio10/c++cli/Telerik_UI_For_WinForms_2016_1_216_Dev.msi

Created a gridview with visible filters row.

When clicking on some filter the selection goes out from row. How could I make the selection stay on 'current row' ?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Aug 2016
9 answers
1.3K+ views

The following code doesn't work:

1.string newDate = "...";
2.grid.CurrentRow.Cells["StartDate"].Value = newDate;

Hristo
Telerik team
 answered on 15 Aug 2016
6 answers
607 views

Hi Team,

In the Telerik article for Custom Nodes in Treeview, the root node and the child nodes contain the same controls i.e image,label,line,button.

Please provide code for displaying different controls in the root node and child nodes. Eg: image,label,line,button in Root Node,  TextBox in child node in level1 and checkbox in child node in level 2

 

Thanks,

Swarupa

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Aug 2016
17 answers
971 views

Hi.

I'd like to bind the DataTable (contains a single DataRow) to radPropertyGrid: each row in radPropertyGrid should represent sequental value from DataRow. As I've understood it is quite possible. But I also want to add IsReadOnly and Category attributes to each property created this way. I have arrays of appropriate length where there each value should be applied to same index's attributes of (DataRow value as Property) in radPropertyGrid.

Moreover I have plans to get changes from this radPropertyGrid to create an update statement for my database.

I'm afraid I'm not quite skilled to complete these tasks without some help as I have some problems with understanding TypeDescriptors, TypeProviders etc.

Could you please give me any tips?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Aug 2016
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
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?