Telerik Forums
UI for WinForms Forum
3 answers
162 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
793 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
482 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
207 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
12 answers
590 views
I'd like to simulate an autocomplete in my multicolumncomboboxes. I saw on another thread that I could use the textchanged event. If I do that, what is the best way to look up the key column in my data source (which is the text that would be typed in) as starting with whatever the user types in the text box and then, I assume, setting the current row of the data source to the row that matches?
Stefan
Telerik team
 answered on 15 Jun 2011
1 answer
273 views
Hi,
          I am using radpageview with outlook mode is there any method by default to focus the current selected page .

In winows i have used  a panel in that i have a method by default like SelectPanel() so can anyone explain regarding this .


Thanks
Hema
Stefan
Telerik team
 answered on 15 Jun 2011
1 answer
178 views
Hi,

I have a CommandBarDropDownButton with several menuitems, several of which I am dynamically changing the text the the CBDropDownButton is clicked.  Several of our users are telling us that the text does not change until the second time they click on the CBDropDownButton.  I cannot duplicate this on my machine but I have seen it on others.  I am handling the click event of the CBDropDownButton and setting the menuitem text there. 

is there a better way to do this to ensure the user will see the dynamic menu item text immediately?
Ivan Todorov
Telerik team
 answered on 15 Jun 2011
4 answers
163 views
Hello,

i have some properties the user should be able to edit in the configuration of my project.
i would like to create a form with a radGridView similar to the property window of the visualstudio where we edit the properties of a control. So the radGridView should contain 2 columns. The first column contains the names of the properties and the second column contains the values for the properties. The values of the properties could contain different values like text, numeric, enumerations, ..

What would be the best way to create the second column?

Kind Regards,

Ramius
Svett
Telerik team
 answered on 15 Jun 2011
1 answer
90 views
I was looking at the GridView/ Custom grouping demo in RadControls demo for WinForms. While grouping by Country properly displays a group color, this is not he case if you try grouping by another column. In this case, some group headers will be colored - not necessarily with correct color for country - while others will be not. Scrolling up and down will cause colorings on group headers to be moved.
Jack
Telerik team
 answered on 15 Jun 2011
2 answers
100 views
Hello, 
I've got something strange on my grid, and I don't know where it comes from.  Every row in my grid is preceded by something that looks like a grouping "+".  If I expand the +, I have an empty line that looks like a separator.  Please have a look at my screenshot, since it's quite difficult to explain.  I don't know where that comes from, and I want that to go away!

Anyone knows what is wrong?

Thank you!
SupportTI
Top achievements
Rank 1
 answered on 13 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)
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
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
CollapsiblePanel
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
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
Licensing
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?