Telerik Forums
UI for WinForms Forum
4 answers
155 views
With the Q3 2007 this lines works

        For Each column As Telerik.WinControls.UI.GridViewDataColumn In RadGridView.MasterGridViewTemplate.Columns
            column.Filter.Function = Telerik.WinControls.UI.GridKnownFunction.Contains
        Next

but with the latest version i obtain the error
Error    1    'Function' no es un miembro de 'Telerik.WinControls.Data.FilterExpression'.
(Function is not a member of Telerik.WinControls.Data.FilterExpression)

Sorry for my english, i'm spanish.

Jordan
Telerik team
 answered on 17 May 2008
3 answers
281 views
Hi,
    if I try to cancel a delete action in the RadGridView, I got a execption error.

The problem appear in the Option dialog of the radRibbon. In this dialog I got a radGridview, if something are deleted, I check if I can delete it. If not a set the e.cancel = true. If e.cancel=true the system give me this error:

System.ArgumentOutOfRangeException was unhandled  
  Message="L'index était hors limites. Il ne doit pas être négatif et doit être inférieur à la taille de la collection. Nom du paramètre : index" 
  ParamName="index" 
  Source="mscorlib" 
  StackTrace:  
       à System.Collections.ArrayList.get_Item(Int32 index)    à Telerik.WinControls.UI.GridViewInfo.DeleteRow(GridViewDataRowInfo[] rows)    à Telerik.WinControls.UI.GridTableBodyElement.ProcessCmdKey(Keys keyData)    à Telerik.WinControls.UI.RadGridView.ProcessCmdKey(Message& msg, Keys keyData)    à System.Windows.Forms.Control.PreProcessMessage(Message& msg)    à System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)    à System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)    à System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(MSG& msg)    à System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)    à System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)    à System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)    à System.Windows.Forms.Form.ShowDialog(IWin32Window owner)    à System.Windows.Forms.Form.ShowDialog()    à Progest.ProgestVB.frmMain.RadRibbonBar1_OptionsButton_Click(Object sender, EventArgs e) dans C:\DotNet_WS\Progest\Dev\Progest\Forms\frmMain.vb:ligne 191    à System.EventHandler.Invoke(Object sender, EventArgs e)    à Telerik.WinControls.RadItem.OnClick(EventArgs e)    à Telerik.WinControls.UI.RadButtonItem.OnClick(EventArgs e)    à Telerik.WinControls.RadItem.DoClick(EventArgs e)    à Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)    à Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)    à Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)    à Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)    à Telerik.WinControls.RadElement.DoMouseDown(MouseEventArgs e)    à Telerik.WinControls.RadControl.OnMouseDown(MouseEventArgs e)    à System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)    à System.Windows.Forms.Control.WndProc(Message& m)    à System.Windows.Forms.ScrollableControl.WndProc(Message& m)    à Telerik.WinControls.RadControl.WndProc(Message& m)    à Telerik.WinControls.UI.RadPopupControl.WndProc(Message& m)    à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)    à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)    à System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)    à System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)    à System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)    à System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)    à System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)    à System.Windows.Forms.Application.Run(Form mainForm)    à Progest.ProgestVB.Program.Main(String[] args) dans C:\DotNet_WS\Progest\Dev\Progest\Main.vb:ligne 17    à System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)    à System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)    à Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()    à System.Threading.ThreadHelper.ThreadStart_Context(Object state)    à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)    à System.Threading.ThreadHelper.ThreadStart()  
  InnerException:  

I try to use e.cancel=true in the validating event and all work good. I have trouble only in the deleting event.

The exception are on the line:  opt.ShowDialog()

        Private Sub RadRibbonBar1_OptionsButton_Click(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles RadRibbonBar1.OptionsButton.Click  
            Dim Opt As New dlgOptions  
            Opt.ShowDialog()  
            Opt.Dispose()  
        End Sub 

here the deleting function:
        Private Sub RadGridSegments_RowDeleting(ByVal sender As ObjectByVal e As Telerik.WinControls.UI.RowDeletingEventArgs) Handles RadGridSegments.RowDeleting  
            If oSegment.PeutEffacer(e.Row.Cells("ID").Value) = False Then 
                MessageBox.Show(RM.GetString("dlgConfig_EffSegment"), "", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)  
                e.Cancel = True 
            End If 
        End Sub 

any suggestion?
Jack
Telerik team
 answered on 17 May 2008
3 answers
170 views
Ok, so I have the trial for the Q1 2008 Winforms and I would like to test out the desert theme...actually...any theme would be nice.

I create a new radform, set the theme to Desert and in the designer it looks great. I run it...everything goes back to plain.

If I choose other themes most of them don't even change from the default. The few that do still don't show anything at runtime.

What am I missing?

David
Peter
Telerik team
 answered on 17 May 2008
1 answer
647 views

I'm in the process of resolving the issues created by upgrading to Q1 2008 for all of my instances of the RadGridView control.  In Q3 2007, I was able to loop through the selected rows and add the value of a specific cell to a generic list by doing the following:

Dim mPartNumberList As New List(Of String)
Dim selectedRows As List(Of GridViewRowInfo) = PartListRadGridView.SelectedRows

For Each row As GridViewRowInfo In selectedRows
     mPartNumberList.Add(Convert.ToInt32(row.Cells(1).Value))
Next

This now fails.  What is the equivalent in Q1 2008?

Thanks.

Nikolay
Telerik team
 answered on 17 May 2008
3 answers
296 views
I've added RadProgressBar to my RadPanel and set the .Step property to 1.  Now I want to perform the step...but I don't see any PerformStep method available??

The "Track and Status Controls" example show incrementing the Value1 property by 1...but that doesn't make sense since we've set the Step property to 1 already.
Boyko Markov
Telerik team
 answered on 16 May 2008
3 answers
125 views
I have a SplitContainer which holds a a RadPanel.  I've checked EnableHostControlMode and now I have a RadPanelBarGroupElement.ControlPanel.

I'm trying to change the color to transparent, but no matter what I choose, once I start the app, it changes to white.

Suggestions?
Boyko Markov
Telerik team
 answered on 16 May 2008
2 answers
262 views
Hopefully an easy question.. I would normally use me.textbox1.focus() to set focus to a textbox control when first opening a form so that the user does not have to click into the box to begin typing.. When I put my controls onto a RadTabStrip, and at the very last line of the form_load event I try to set focus to a control in this way, it does not work.. After the form is loaded I can get the focus to work.. For example, on button click.. But for whatever reason it refuses to work on form_load for all forms in my project.. What am I doing wrong?
joseph_korn
Top achievements
Rank 1
 answered on 15 May 2008
1 answer
175 views
I'm looking for a way to alternate formatting within a RadLabel.  Something similar to "Found <b>8 results</b> for 'Bob'".

I saw another post that suggested custom drawing in OnPaint, but I don't want to have to calculate wrapping, etc. myself.
Nikolay
Telerik team
 answered on 15 May 2008
3 answers
223 views
Hi,

I am trying to get data from excel file to the grid at the runtime. The way I am doing this is that I get all data into untyped dataset and then bind it to the grid. The problem I am facing is that when data is bound to the grid if the data in first few rows of specific column is a number then it expects all the data in that column to be number, however it can contain string value as well. Is there a way to stop grid from automatically assigning data type to the column??

Thanks in advance for help.
Par
Top achievements
Rank 1
 answered on 15 May 2008
7 answers
242 views
Hi. I am trying to save/load the layout of a grid, I don't think it works. In your Example application the save/load layout example does nothing.

I took a quick look at the xml that is generated and i found that indeed the grouping is saved but with no data!

    <SummaryRowGroupHeaders>
      <Telerik.WinControls.UI.GridViewSummaryRowItem />
      <Telerik.WinControls.UI.GridViewSummaryRowItem />
    </SummaryRowGroupHeaders>

Thanks,
- jorge
Boyko Markov
Telerik team
 answered on 15 May 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?