Telerik Forums
UI for WinForms Forum
4 answers
488 views
Hi,

I'm new to RadControls so forgive me if it is a basic misunderstanding, The problem I'm having is understanding to how to layout my Windows Forms. I am dynamically adding RadControls Checkboxes to the RadPanel. However, after adding them, I see all of them next to each other and behind one another. I would like each of them to be in a new line. Please advice on how to achieve this.

Regards,
JB
Jack
Telerik team
 answered on 14 Nov 2008
5 answers
340 views
I am using GridView for Winforms and the data is bound using a dataset. One of the columns in the dataset's table is an integer column. I have enabled Filter's for this column in GridView and this shows up as a funnel. When I right click on the funnel, there is a context menu with all the filtering options (No filter,Equals,Not Equals etc). When I click on the "Between" menu item in this context menu, the application crashes with the System.Argument exception {"Not enough values."}. The complete stack trace below.
How can we fix this behaviour, Is there any way to programatically disable some of the menu items.


Stack Trace:
   at Telerik.WinControls.UI.Code.Data.Filtering.FilterFunction.CheckParameters(Object[] values)
   at Telerik.WinControls.UI.Code.Data.Filtering.FilterFunction.GetFunctionString(String fieldName, Object[] values)
   at Telerik.WinControls.Data.FilterExpression.AppendPredicateString(StringBuilder result, FilterPredicate predicate, String format)
   at Telerik.WinControls.Data.FilterExpression.ToString()
   at Telerik.WinControls.Data.FilterExpressionCollection.ToString()
   at Telerik.WinControls.Data.DataAccessComponent.Telerik.WinControls.Data.ExpressionHelper.IExpressionChangeNotificationConsumer.FilterExpressionChanged()
   at Telerik.WinControls.Data.ExpressionHelper.FilterExpressionsChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at Telerik.WinControls.Data.ExpressionFieldCollection`1.NotifyListenersCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.WinControls.Data.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.WinControls.Data.ItemObservableCollection`1.OnItemPropertyChanged(Object sender, EventArgs e)
   at Telerik.WinControls.Data.NotifyPropertyBase.SignalPropertyChanged()
   at Telerik.WinControls.Data.NotifyPropertyBase.OnPropertyChanged(PropertyChangedEventArgs e)
   at Telerik.WinControls.Data.FilterExpression.OnPropertyChanged(PropertyChangedEventArgs e)
   at Telerik.WinControls.Data.FilterExpression.Predicates_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at Telerik.WinControls.Data.ObservableCollection`1.NotifyListenersCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.WinControls.Data.ExpressionFieldCollection`1.NotifyListenersCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.WinControls.Data.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.WinControls.Data.ItemObservableCollection`1.OnItemPropertyChanged(Object sender, EventArgs e)
   at Telerik.WinControls.Data.NotifyPropertyBase.SignalPropertyChanged()
   at Telerik.WinControls.Data.NotifyPropertyBase.OnPropertyChanged(PropertyChangedEventArgs e)
   at Telerik.WinControls.Data.NotifyPropertyBase.SetProperty[T](String propertyName, T& propertyField, T value)
   at Telerik.WinControls.Data.FilterPredicate.set_Function(GridKnownFunction value)
   at Telerik.WinControls.UI.GridFilterCellElement.ChangeFilter(RadGridFilterFunctionMenuItem menuItem)
   at Telerik.WinControls.UI.GridFilterCellElement.FilterFunctionButton.item_Click(Object sender, EventArgs e)
   at Telerik.WinControls.RadItem.OnClick(EventArgs e)
   at Telerik.WinControls.UI.RadButtonItem.OnClick(EventArgs e)
   at Telerik.WinControls.UI.RadMenuItemBase.OnClick(EventArgs e)
   at Telerik.WinControls.UI.RadMenuItem.OnClick(EventArgs e)
   at Telerik.WinControls.RadItem.DoClick(EventArgs e)
   at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)
   at Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e)
   at Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at Telerik.WinControls.RadControl.WndProc(Message& m)
   at Telerik.WinControls.UI.RadPopupControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at Microsoft.AdCenter.CommunityPlatform.UI.Desktop.Program.Main() in d:\CpDev\private\src\UI\Desktop\Program.cs:line 17
   at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
Jordan
Telerik team
 answered on 14 Nov 2008
1 answer
141 views
The What's New for Q3 2008 says that it's now possible to layout the gridview in an HTMLView.  I don't see any documentation on how to do this.  Has anyone figured this out yet? Are there samples somewhere?
Nick
Telerik team
 answered on 14 Nov 2008
3 answers
271 views
Hi, I'm using GridViewAutoSizeColumnsMode.Fill which looks great however I want a couple of columns to have a fixed width that stays the same, and the rest to be sized appropriately by the grid.

I've tried fixing the two columns by setting their width manually with AllowResize false as well as the [Max]MinWidth... but the 
GridViewAutoSizeColumnsMode.Fill  overrides this and resizes the fixed columns.
 
This is most noticable when you drag one of the non-fixed columns to the group bar - I want fixed width columns to stay the same size and the remaining floating width columns to expand dynamically to fill.

If it's not possible for the Fill to account for fixed width columns (ideal solution/feature) then manually i could calculate the sizes myself if there is some way of knowing the width available in my grid -- obviously it changes depending on whether there is a vertical scroll bar present.

cheers
ewart

Jack
Telerik team
 answered on 14 Nov 2008
2 answers
133 views
Hi,
I have a RadGridView that is populated by dynamic SQL.  When I click a checkbox field and click 'Save' the checkbox reverts back to off.  Any ideas ?

Thanks,
Derek.
Derek
Top achievements
Rank 1
 answered on 14 Nov 2008
1 answer
203 views
Hi,

I've seen that since the Q1 2008 Release, RadGridView supports multi-lined text in rows. On my side it displays the line break correctly but the row does not scale to fit the text. With that the text on the second row in my Cell is cut off by the next row.

Another problem:
I bind the GridView by giving it a DataTable as DataSource. There is one column in my DataTable that gets shown in the grid but not its vlaues, wich are there in the DataTable. All other columns from the DataTable are displayed properly. Is it somehow not engough to do grid.DataSource = DataTable? Wenn I manualy change a value of this column inside the GridView while debugging it works fine.
Nick
Telerik team
 answered on 14 Nov 2008
3 answers
227 views
ConditionalFormattingObject obj =   new ConditionalFormattingObject("MyCondition", ConditionTypes.Greater, "30"""true);  
obj.CellForeColor = Color.Red;  
obj.RowBackColor = Color.SkyBlue;              
this.radGridView1.Columns[1].ConditionalFormattingObjectList.Add(obj); 

Hi, is it possible to use the conditional format object to format rows based on a checkbox value?  if the value is true I want to apply a format, like the excerpt from the documentation above.  When I've tired with equal/greater than 0/1 it just raises an exception.  If it's not possible in this manner, can you consider adding a IsTrue/IsFalse ConditionType.

I also tried to achieve what I wanted by:
   private void grdTWatchHotList_RowFormatting(object sender, RowFormattingEventArgs e)  
      {  
         if ((bool)e.RowElement.RowInfo.Cells["MarkedForDeath"].Value == true)  
         {  
            e.RowElement.ForeColor = Color.Red;  
            e.RowElement.DrawFill = true;  
         }  
         else 
         {  
            e.RowElement.ResetValue(Telerik.WinControls.VisualElement.ForeColorProperty);  
         }  
 
      } 
 
But this didn't work... initially i through it did but once I added more rows and started scrolling up and down then everything just started getting hilighted in red!

ps the help page ms-help://telerik.winforms.8.0/telerik.winforms/topic24361.html has &amp etc errors in the c# example.

Cheers
  Ewart.
Nick
Telerik team
 answered on 14 Nov 2008
3 answers
157 views
Hello,

I'm trying to change the default labels on the XAxis from 1,2,3,4,5 etc and use the value from one of the fields in my bound table? I've seen examples that should do the trick, but I've tried and I can't get those labels to change, even when attempting to hard code values into them.

Please advise.

Thanks,

-Gary
Gary
Top achievements
Rank 1
 answered on 13 Nov 2008
4 answers
205 views

Hi,

I'm creating an WebEditor with the Ribbonbar in Vb.net.

My problem is, that always if I press Alt, the Ribbonbar

gots the focus. That's a big problem, because

the user can't write chars like "{" or "}", wich are

very important for writing Website ( for Example in PHP ).

Can I deactivate it, or is there any workaround?

Stefan
Top achievements
Rank 1
 answered on 13 Nov 2008
1 answer
99 views
Is there any way to turn off the sound on the grid which occurs when a user is adding/changing a column and tabbing out of it.  It also beeps when the new row is added.  This is highly irritating!!!  How do I turn it off?  Thanks!
Jack
Telerik team
 answered on 13 Nov 2008
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?