Telerik Forums
UI for WinForms Forum
1 answer
156 views
Hi,

If I bind to a datatable, how can I get the ID of the selected item in the combo box. I have added the following code

Dim pobjTable As New Data.DataTable

pobjTable.Columns.Add("ID")

pobjTable.Columns.Add("Name")

pobjTable.Rows.Add(1001, "User A")

pobjTable.Rows.Add(1002, "User C")

pobjTable.Rows.Add(1003, "User B")

RadComboBox1.DataSource = pobjTable

RadComboBox1.DisplayMember = "Name"

So if User C is selected, I would like to get 1002 back as the ID.

Note: This is possible in the VB.Net Combo Box if you create a class to store the ID and the Text Value. You can add an object to the List and return the Object once selected.


Best Regards
Eddie

Georgi
Telerik team
 answered on 07 Dec 2007
1 answer
91 views
The GridView throws a general GDI+ exception when a string of length 2^16 or greater is bound to the row.

Here is an example:

using System.Text; 
using System.Windows.Forms; 
 
namespace TelerikGrid 
    public partial class Form1 : Form 
    { 
        public Form1() 
        { 
            InitializeComponent(); 
 
            StringBuilder text = new StringBuilder(65536); 
            for (int i = 0; i < 65536; ++i) text.Append('B'); 
 
            GridText gridText = new GridText(); 
            gridText.Text = text.ToString(); 
 
            radGridView1.DataSource = new GridText[] {gridText}; 
        } 
    } 
 
    public class GridText 
    { 
        private string _text = string.Empty; 
 
 
        public string Text 
        { 
            get { return _text; } 
            set { _text = value; } 
        } 
    } 

~DuckLeg
 |
 |
/|\
Jack
Telerik team
 answered on 07 Dec 2007
4 answers
233 views
Hi

I dont see the datepicker in a gridviewdatetimecolumn, only the dropdown arrow is visible but nothing happens when i press it. Neither in my own applications or in the RadControls for Windows Examples Applications. Is this a known bug or am i missing something.

And when is the estimated release for the Q3 upgrade.

Best Regards
Erlend
Georgi
Telerik team
 answered on 07 Dec 2007
1 answer
171 views

I downloaded the RadControls for WinForms and I'm having a little trouble. I was trying to use a RadTitleBar control, and looking at the documentation it says to start by creating a RadShapedForm.

The documentation says to create the RadShapedform as mentioned in the QuickStart.

My problem is, I can't seem to find a QuickStart that describes how to create a RadShapedForm.. I tried searching the documentation and it turned up nothing.

Thanks!!

Mike
Telerik team
 answered on 07 Dec 2007
1 answer
180 views
Looking for a status bar control. Like in windows, so I can add a process bar into it...

Do you have a control like that. I can't find one.
Nikolay
Telerik team
 answered on 06 Dec 2007
1 answer
149 views
Hi

I have added a radGalleryElement to a ribbon bar chunk.  To the tools collection property of the radGalleryElement, I have added few menu items.  I want to execute some code on click of these menus.  What should I do for this?

Thanks
Wilson
Georgi
Telerik team
 answered on 06 Dec 2007
1 answer
150 views
Hello,
I've been trying to create a custom RadTreeView with a different default theme, but apparently no can do. It seems that the theme I assign to my custom RadTreeView is lost when I add my custom RadTreeView to a new form. Am I doing something wrong here?
Jordan
Telerik team
 answered on 05 Dec 2007
1 answer
121 views
I am having such a hard time adding elements to the grid... I have made the grid bind to a custom BindList, but when adding elements to my list I get a exception. Do you have a example binding to BindList, or better yet I just need an unbound example...


         mGridData = new BindingList<SentenceViewerGridData>();  
         mRadGridView.DataSource = mGridData;  
 
         foreach (Element sentence in elementArray)  
            {  
               mGridData.Add(new SentenceViewerGridData(sentence.Field[0], sentence.Field[1]));                 
            }  
    


Value of '101' is not valid for 'Value'. 'Value' must be between 'Minimum' and 'Maximum'.
Parameter name: Value
Julian Benkov
Telerik team
 answered on 04 Dec 2007
3 answers
190 views
Is it possible to add rows to the grid without binding, just adding rows manually? I wasn't able to do it.

Something simular to a ListView detail control...
Julian Benkov
Telerik team
 answered on 04 Dec 2007
1 answer
157 views
Hi,

I want to add some columns manually, but it is not appear always.
Some code like follows:

radGvAllocateList.MasterGridViewTemplate.AutoGenerateColumns = false; ; 
 
GridViewTextBoxColumn colText = new GridViewTextBoxColumn(); 
colText.UniqueName = "colStaff"
colText.HeaderText = FormText.Collector; 
colText.Width = 100; 
radGvAllocateList.MasterGridViewTemplate.Columns.Add(colText); 
 
GridViewTextBoxColumn colRate = new GridViewTextBoxColumn(); 
colRate.UniqueName = "colRate"
colRate.DataType = typeof(decimal); 
colRate.HeaderText = FormText.Collector; 
colRate.Width = 60; 
radGvAllocateList.MasterGridViewTemplate.Columns.Add(colRate); 

How can I do it? Please help me.
Nikolay
Telerik team
 answered on 04 Dec 2007
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?