Telerik Forums
UI for WinForms Forum
3 answers
230 views
Hi,

I'm having a lot of problems trying to programatically a TextBox (or RadTextBox or RadTextBoxElement) control to a Button group inside a ribbon chunk).

Here's what I have:
My application is a content editor (a bit like Flash but not nearly so advanced). So when I click on an Image:
1. I want the "Image" context group to appear
2. I want the the correct properties to appear
3. When I change the properties in the ribbon - the image has to change

Because there are several different items and all of them have the same basic functionality I have created:

// class for handling object operations
public

class BaseRibbonObjectHandler : RadRibbonBarCommandTab

// create the chunk
m_chkPositionAndSize =

new RadRibbonBarChunk();
m_chkPositionAndSize.Orientation = System.Windows.Forms.Orientation.Vertical;
m_chkPositionAndSize.Text =
"Position and Size";

// create the ribbon bar group
RadRibbonBarButtonGroup radRibbonBarButtonGroup1 = new RadRibbonBarButtonGroup();
radRibbonBarButtonGroup1.Orientation = System.Windows.Forms.
Orientation.Horizontal;
radRibbonBarButtonGroup1.MinSize =
new System.Drawing.Size(22, 22);
radRibbonBarButtonGroup1.ShowBorder =
true;

// create the labels
RadLabelElement
radLabelElement1 = new RadLabelElement();
RadLabelElement radLabelElement2 = new RadLabelElement();
radLabelElement1.Text = "Width ";
radLabelElement2.Text = "Height ";

// create the textboxes

tbSizeWidth =
new RadTextBoxElement();
tbSizeWidth.MinSize =
new Size(100, 0);
tbSizeWidth.AutoSizeMode =
RadAutoSizeMode.WrapAroundChildren;
tbSizeHeight = new RadTextBoxElement();
tbSizeHeight.MinSize =
new Size(100, 0);
tbSizeHeight.AutoSizeMode =
RadAutoSizeMode.WrapAroundChildren;

// add the controls to the button group
radRibbonBarButtonGroup1.Items.AddRange(
new RadItem[] { radLabelElement1, tbSizeWidth, radLabelElement2, tbSizeHeight });

// add the group to the chunk
m_chkPositionAndSize.Items.Add(radRibbonBarButtonGroup1);

// add the chunks to the control
this.Items.Add(m_chkPositionAndSize);

The idea is that in this class I create the tab page, the basic chunks and the basic items:


If I add the TextBoxes (it doesn't matter which kind of TextBox - RadTextBox, RadTextBoxElement or WinForms TextBox) the application hangs up (If I wait about a minute I get a stack overflow exception).
This behavior happens on 3 machines...

A few more facts:
- I have another chunk (I didn't copy the code here) with a button and a combobox and it works ok
- If I add the radTextBoxElement directly to the chunk (and not to a button group) - it works

Am I doing something wrong? Or is this a bug?
Vassil Petev
Telerik team
 answered on 20 Dec 2007
1 answer
70 views
I would like to see a HtmlGridColumn type supported in the radgridview for winforms for more free form column elements.
Georgi
Telerik team
 answered on 20 Dec 2007
1 answer
89 views
I was browsing through the new documentation today and noticed something I thought I better get clarification on. In the documentation for Q3 it says that when creating custom dock objects you can either derive from UserDockControl or UserDockForm. In previous versions I was deriving from DockPanel.

What I have still works with my newly installed Q3 but I wonder if I should be changing all of those controls from DockPanel to UserDockControl.

What is the difference? Do I gain anything one way or the other?
Julian Benkov
Telerik team
 answered on 19 Dec 2007
5 answers
135 views
Howdy,
    I'm looking for a way to mimic the Office 2007 "Insert Table" functionality. I'm looking for any way to mimic the toolbar click (the image below) and ideas on how to implement the inserting of the table into the radtextbox as well.

Thank you

http://img134.imageshack.us/my.php?image=inserttablemy1.jpg

edit: fixed the image
Boyko Markov
Telerik team
 answered on 18 Dec 2007
1 answer
158 views
Hi, I use your ragGridControl for the first time. I need to display a list of ActiveDirectory Groups in the grid. I create a custom Dataset with 2 colums (Img and Nom) and put the groups in it.

I set the Grid AutoGenerateColum to false and create 2 colum. When I set the datasource to my custom Dataset, I receive a error telling me that the Colum "nom" are alerady in the table...

Here is my code (sorry for the code directly in the post, but for a unkown reason I can't found the "add code" button in your post toolbar.

Dim Srch As New DirectorySearcher

Dim srchResultat As SearchResultCollection

Dim Resultat As SearchResult

 

'AJoute les colones

RadGridGroupes.MasterGridViewTemplate.AutoGenerateColumns =

False

Dim imgCol As New GridViewImageColumn

imgCol.UniqueName =

"Img"

imgCol.HeaderText =

""

imgCol.DataField =

"Img"

RadGridGroupes.MasterGridViewTemplate.Columns.Add(imgCol)

Dim txtCol As New GridViewTextBoxColumn

imgCol.UniqueName =

"Nom"

imgCol.DataField =

"Nom"

imgCol.Width = 200

imgCol.HeaderText =

"Nom"

RadGridGroupes.MasterGridViewTemplate.Columns.Add(imgCol)

 

 

Srch.Filter =

"(&(objectCategory=group))"

srchResultat = Srch.FindAll

 

Dim dtTable As New DataTable

Dim dtRow As DataRow

dtTable.Columns.Add(

New DataColumn("Img", System.Type.GetType("System.String")))

dtTable.Columns.Add(

New DataColumn("Nom", System.Type.GetType("System.String")))

dtTable.TableName =

"Groupes"

For Each Resultat In srchResultat

dtRow = dtTable.NewRow

dtRow.Item(

"Nom") = Resultat.Properties("name")(0)

dtTable.Rows.Add(dtRow)

Next

RadGridGroupes.DataSource = dtTable

End Sub

Julian Benkov
Telerik team
 answered on 18 Dec 2007
1 answer
141 views
How do you get the color on a RadDropDownButton to stay orange as if it was selected like a RadToggleButton?  When you hover over the button it changes to orange.  How can you do it in code to change it to orange and then back to blue?
Nikolay
Telerik team
 answered on 18 Dec 2007
3 answers
298 views
    How can I get the combo in the grid to allow the users to at least type the first letter of whatever selection they need to make? At the momemnt I've got a working combo, it just doesn't allow any typing at all - is there a property I need to set?
Georgi
Telerik team
 answered on 14 Dec 2007
1 answer
118 views
Hi,

I have an application and I used a progress bar from the Telerik.WinControls.UI dll.  Now I need to distribute that dll to the users machine.  How do I include this using the Publish... in Visual Studio 2005?  I see the dll in the References but I cannot find a way to include this in the Publish.

Thanks
Nikolay
Telerik team
 answered on 14 Dec 2007
5 answers
764 views
I've added a RadListBox to a form and I add items to the list box at runtime. I'd like the listbox to scroll to show the newest item when it's added.

I tried 2 methods, and neither works:

1.. I've set the AutoScroll to True in the designer.
2. I've implemented the ControlAdded event as follows:

            MyList.ScrollControlIntoView(e.Control);

I've tried them together too.

Any ideas?

By the way, scrolling them into view should not move the focus to the listbox.

Thanks...

Nikolay
Telerik team
 answered on 14 Dec 2007
1 answer
303 views
I'm trying to make my RadProgressBar control disappear gradually by doing an animation on the Opacity Property.

I found an example of doing animation on a border of a button, but I can't seem to apply the same techniques to the Progress Bar.

Does anyone have an example of animating a RadProgressBar's properties?

Thanks much!
Kevin
Boyko Markov
Telerik team
 answered on 14 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)
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
CheckedDropDownList
ProgressBar
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
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?