Telerik Forums
UI for WinForms Forum
1 answer
109 views
Is there a way to make the RadEditor insert <br /> instead of <p> tags when the user presses the Enter key.
Iva Toteva
Telerik team
 answered on 16 Jun 2011
2 answers
92 views
Hi,
I have a problem in my application:
I use a RadRibbonBar and the quickaccesstoolbar; I insert the items in the quickaccesstoolbar menu and the text of the item.
The item inserted are displayed with text and image and are RadButtonElement
One of these items (called "News Update") the text field is updated when the application starts up with a call to a webservice (if available).
The text of the button when visible is correctly updated, but also the text in the dropdownmenu of the overflowbutton is updated, while my goal is that the text of the item in the dropdownmenu is always "News Update", while the text of the text of the corresponding RadButtonElement, when visible, is correctly updated.
I tried to populate the text of the items of the dropdownmenu of the overflowbutton with the name (and not the text) of the RadButtonElement but I was not successfull.
Is there a way to obtain the result? 
Jean-Marc Windholz
Top achievements
Rank 1
 answered on 16 Jun 2011
2 answers
110 views
Would be nice if RadLabel and RadTextBox / RadDropDownList etc. would support snap-on alignment of the text baseline in the visual studio 2010 designer in the same manner the standard Label and TextBox controls do.

Regards
Erwin
erwin
Top achievements
Rank 1
Veteran
Iron
 answered on 16 Jun 2011
6 answers
310 views
Hi Telerik

I am trying to set the color of the tab on unselected document windows to "MistyRose" and the tab on the currently selected document window to "Snow" using the following code

    rDockModelPackage.ActiveWindowChanging+=new DockWindowCancelEventHandler(rDockModelPackage_ActiveWindowChanging);
    rDockModelPackage.ActiveWindowChanged += new DockWindowEventHandler(rDockModelPackage_ActiveWindowChanged);
}
private void rDockModelPackage_ActiveWindowChanged(object sender, DockWindowEventArgs e)
{
   SizeAndColorSelectedDocWindowTab(e.DockWindow.TabStrip.TabStripElement, Color.Snow, Color.MistyRose);
}
private void  rDockModelPackage_ActiveWindowChanging(object sender, DockWindowCancelEventArgs e)
{
    SizeAndColorUnSelectedDocWindowTab(e.OldWindow.TabStrip.TabStripElement, Color.Snow, Color.MistyRose);
}
And

private void SizeAndColorSelectedDocWindowTab(RadTabStripElement win, Color lightColour, Color darkColour)
{
        ((FillPrimitive)win.Children[0].Children[0].Children[0].Children[0].Children[0]).BackColor = lightColour;
        ((FillPrimitive)win.Children[0].Children[0].Children[0].Children[0].Children[0]).BackColor2 = lightColour;
        ((FillPrimitive)win.Children[0].Children[0].Children[0].Children[0].Children[0]).BackColor3 = lightColour;
        ((FillPrimitive)win.Children[0].Children[0].Children[0].Children[0].Children[0]).BackColor4 = lightColour;
}
private void SizeAndColorUnSelectedDocWindowTab(RadTabStripElement win, Color lightColour, Color darkColour)
{
        ((FillPrimitive)win.Children[0].Children[0].Children[0].Children[0].Children[0]).BackColor = darkColour;
        ((FillPrimitive)win.Children[0].Children[0].Children[0].Children[0].Children[0]).BackColor2 = darkColour;
        ((FillPrimitive)win.Children[0].Children[0].Children[0].Children[0].Children[0]).BackColor3 = darkColour;
        ((FillPrimitive)win.Children[0].Children[0].Children[0].Children[0].Children[0]).BackColor4 = darkColour;
}


The result is hit and miss with the color changes working sometimes and at others being a mixture of the 2. Any ideas as to why this might be happening?

Regards
Ian
Ian
Top achievements
Rank 1
 answered on 15 Jun 2011
2 answers
75 views
Hi Telerik team,

I want to use a RadMenu.I want to add Shortcutkeys to my child menu items(not the accelrator).And as in your documentation http://www.telerik.com/help/winforms/menus-menu-getting-started.html, you have mentioned to Drag a Shortcuts component from the toolbox to the form. but I couldnt find that component.How can I sort this out.am sing VS 2010  Ultimate

2) Also how can I bind the radmenu to a database and I want to load the menu according to the user credentials, i.e Admin has accessto full set of Menus and a user with minimum access.

Thanks in Advance

Renju
Martin Vasilev
Telerik team
 answered on 15 Jun 2011
1 answer
126 views
I just started a new winforms project and for some reason when I add any telerik control it does not appear on the form but on the bottom as no visual controls.  any reasons.
Stefan
Telerik team
 answered on 15 Jun 2011
3 answers
145 views
Hello, I'm using the first solution you propose on http://www.telerik.com/community/forums/winforms/combobox/how-to-restrict-user-from-entering-text-which-is-not-in-a-display-member-of-combobox-items.aspx and works fine.
I did a little change and the event handler looks like this:

        void cbNameElement_TextChanging(object sender, Telerik.WinControls.TextChangingEventArgs e)
        {
            if (!e.NewValue.Equals(string.Empty))
            {
                if (cbName.FindItem(e.NewValue) == null)
                {
                    this.cbName.Text = string.Empty;
                }
            }
        }

What I accomplished with this is that if the user writes something that is not in the list the text of the combobox is cleared.

Now I have a problem. You clear the text, then you hit ENTER, and you write something that is not on the list, that text isn't cleared.

Please help me with this.

Thanks in advance.
Nikolay
Telerik team
 answered on 15 Jun 2011
3 answers
754 views
I keep getting this error, sometimes everytime I run the gridview, sometimes it won't throw the error and it will show the results. Here is my code.

 

 

Dim DS_Assets As DataSet  
 
 
 
sqlQuery = "SELECT location.location_id, location.site_id, location.description, location.code, location.site_id, " & _  
 
 
"asset.asset_tag, asset.serial_number, asset.item_id, asset.date_updated, " & _  
 
 
"item.description " & _  
 
 
"FROM location INNER JOIN asset ON location.location_id = asset.location_id INNER JOIN item ON asset.item_id = item.item_id " & _  
 
 
"WHERE location.site_id=" & Site  
 
 
 
DS_Assets = common.DBConnect(sqlQuery, "assets", activeDBServer, activeDBName, activeDBUser, activeDBPass) ' This is the function that returns the Dataset  
 
 
 
Me.RadGridView1.MasterGridViewTemplate.Columns.Clear()  
 
Me.RadGridView1.MasterGridViewTemplate.GroupByExpressions.Clear()  
 
Me.RadGridView1.MasterGridViewTemplate.SortExpressions.Clear()  
 
Me.RadGridView1.MasterGridViewTemplate.AllowAddNewRow = False 
 
 
Me.RadGridView1.MasterGridViewTemplate.AutoGenerateColumns = False 
 
 
Me.RadGridView1.MasterGridViewTemplate.EnableGrouping = False 
 
   
 
 
Me.RadGridView1.DataSource = DS_Assets.Tables(0)  
 
 
 

The error is thrown on the last line when I try to bind the data to the gridview. There are about 3300 rows in the data being returned. If I look at the inner exception it is returning "NullReferenceException: Object reference not set to an instance of an object."

But the data is there, the Dataset is correct. I have run this code on a regular GridView control and it works fine. Just won't work on the RadGridView. Any ideas what I am doing wrong?

Nikolay
Telerik team
 answered on 15 Jun 2011
1 answer
469 views
Hello Experts!

I am currently facing a problem while using the Rad Grid View. I want to hide the vertical scroll bar. When i try to set the AutoSize property to true and AutoSizeColumnMode property to fill, then all the columns in the rad grid view disappears. On the other hand if i set AutoSize property to true and  AutoSizeColumnMode property to none, the scroll bar disappears but the grid doesn't stretch enough horizontally to fill the parent container. Now can you guys tell me how can i hide vertical scroll bar as well as stretch the column enough to fill the parent?

Thanks... 
Jack
Telerik team
 answered on 15 Jun 2011
1 answer
190 views
I'm going through my C# Windows Form application and making it so upon launching it is in a maximized state.  The RadStatusStrip control scales properly, but upon hitting the maximize button the RadPageView control does not scale like all of the other controls, it simply stays the same size I originally configured the form to be.

I am using the Q1 2011 SP1 Release btw.

I attached a screenshot of what I am getting when maximizing the form.
Ivan Petrov
Telerik team
 answered on 15 Jun 2011
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
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
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?