Telerik Forums
UI for WinForms Forum
3 answers
162 views

I need a ComboBox column initialized with some data and the user can enter new data too when inserting new row into grid. For example, ComboBox column has three items by default Phone, Mobile, Fax, but the user needs to insert new item (e.g., Code). How can I do this?

Here is the code. With this code the user can only select one of the default values of combo column and he/she cannot enter his/her new value into combo column.

DataTable table = new DataTable();
table.Columns.Add("Name", typeof(string));
table.Columns.Add("Value", typeof(string));
var details = db.BatchItemDetails.Where(d => d.BatchItem_Id == _id)
                       .Select(d => new { d.Name, d.Value });
foreach (var row in details)
   table.Rows.Add(row.Name, row.Value);
 
grid.MasterTemplate.AutoGenerateColumns = false;
grid.DataSource = table;
 
GridViewComboBoxColumn name = new GridViewComboBoxColumn();
name.DataSource = (from b in db.Batches
             join i in db.BatchItems on b.Id equals i.Batch_Id
             join d in db.BatchItemDetails on i.Id equals d.BatchItem_Id
             where b.Id == batchId
             orderby d.Name
             select d.Name).Distinct().ToArray(); // string array.
 
name.AutoCompleteMode = AutoCompleteMode.Suggest;
name.DropDownStyle = RadDropDownStyle.DropDown;
name.Name = "Name";
name.FieldName = "Name";
name.HeaderText = "عنوان اطلاعات";
name.Width = 219;
name.TextAlignment = ContentAlignment.MiddleLeft;
grid.Columns.Add(name);
 
grid.Columns.Add("Value", "شرح اطلاعات", "Value");
grid.Columns["Value"].Width = 353;
 
grid.AutoSizeRows = true;

Hristo
Telerik team
 answered on 21 Jun 2016
5 answers
155 views

Hello,

i created a custom cell element.

The custom part of the Element is a RadListControl.

The functionality works but I want the ListControl Element fit perfect in the Cell.

I have tried a lot and read many forum threads to find a solution but nothing works.

There are still Gaps (see Screenshot).

I hope someone can help me quick with my request.

Greets André

 

Dimitar
Telerik team
 answered on 21 Jun 2016
21 answers
328 views
Hi,

It seems that when setting both "Right to Left Layout" and "Right to Left" properties of the RadForm to 'True' the border of the form is drawn incorrectly, with the left side of the border disappearing.

Also, I am using the theme Office2007Blue.

Roy.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Jun 2016
1 answer
90 views

Hi,

 

I am using the scheduler and I need to change the connection string at run time. How can I do that?

 

Thanks for the help.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Jun 2016
3 answers
246 views

Hi, i would like to know if when a user close a page on the pageview, the controls inside this page will be dereferenced (thus become eligible for garbage collection) or if I have to handle the closed event and manually remove all the controls inside the page.

Also would like to know if there is something I can do to cleanup removed pages or if the removed pages are automatically managed by the pageview control or if i have to call dispose on the page itself in the closed event.

It's just to be sure not to lock too much memory for too long time, i did not find a documentation page about this.

Best regards

Andrea

Dimitar
Telerik team
 answered on 21 Jun 2016
4 answers
239 views
When I edit a cell then move to another cell the editor is opened for the moved to cell. How do I change this behavior so the editor does not open when moving to a new cell?
Kyle
Top achievements
Rank 1
 answered on 20 Jun 2016
1 answer
232 views

if we are using simple combo box with let suppose database. below is the example of datasource

 

1.     Florida    = FL

2.    NewYork  = NY

3.    New Jerssy = NJ

if user press N (combo box is selected) it will select New York and if user again press N it will select next item in the list New Jerssy. can we have same behavior with multicolumn combo box. 

 

regards,

zeeshan

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Jun 2016
5 answers
342 views

Dear,

is there any capability to change or set the column type dynamically to GridViewHyperlinkColumn after binding?

 

 

Regards,

Dimitar
Telerik team
 answered on 20 Jun 2016
5 answers
135 views
Hello, I am evaluating your demo software and found a peculiar bug in a vertical gauge that has a needle indicator. It is the gauge that has the needle indicator that points at a value of 66 in the 'Select a gauge type from gallery' window. If I set the RangeEnd property of the gauge to 14 and the RangeStart to 13, it correctly draws the the 13. If I set the RangeEnd to any number greater than 13 but less than 14, the RangeStart text incorrectly draws. It appears as if multiple paint events are occurring on top of each other on the RangeStart text property. It is easy to replicate. Unfortunately this is a range I need to operate in as I plan to monitor a barometric pressure sensor that reads between 13 and 14 and need more fine detail than a difference of 1 gives me (14 - 13). Ideally, I'd want the RangeStart to be at 13.4 and RangeEnd to be at 13.8.
Marcy
Top achievements
Rank 1
 answered on 19 Jun 2016
2 answers
95 views

Hello,

I made some tests with the trial version (2015.02...) shipped with Progress Developer Studio and with this Version the localization worked. Now I purchased a regular Version (2016.02.....) and installed it. I build a complete new Form with a RadDock (correct version 2016.02...) in it an tried the localization in the following steps, which work with the 2015.02 Version

1. in the Using section:

    USING Telerik.WinControls.UI.Localization.RadDockLocalizationProvider.

2. in the Constructor:

    RadDockLocalizationProvider:CurrentProvider = NEW Basis.DockGermanLocalization().

After typing "RadDockLocalizationProvider:" the Dev.Studio proposes me the property "CurrentProvider". The form compiles with no errors. Running the form gives me then following error:

"System.MissingMethodException: The method "Telerik.Controls.UI.Localization.RadDockLocalizationProvider.CurrentProvider" not found"

What did I wrong? Thank you for your answer in advance

Regards

Jürgen

 

Dimitar
Telerik team
 answered on 17 Jun 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
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?