Telerik Forums
UI for WinForms Forum
1 answer
91 views
Hi,
    I have a RadRibbonBar that I want to render as Office2007Black and a RadDock that I want to render as Office2010Black on my Windows Form at the same time, hopefully without using a custom application wide theme.

Note : on the development environment I can set the RadRibbonBar to Office2007Black and the RadDock to Office2010Black, yet it runs only with the Office2010Black theme.

I would like to use both themes at runtime :
WinForm :
RadRibbonBar = Office2007Black
RadDock = Office2010Black.

Looks great if I can get it to apply at runtime. Any ideas?
Bill
Top achievements
Rank 1
 answered on 10 Dec 2011
2 answers
146 views
Hi,

I found a bug during testing.
Currently I'm using RadControls for WinForms Q2 2011
To replicate the problem
  -Run the Telerik Demo
  -Grid View > Hierarchy > Tabbed Views
  -Page View Mode = Explorer Bar
  -Expand/Collapse twice the child data
  -a hanging messagebox appears "RadControls for Winforms Q2 2011 SP1 Demo Application"

it also happened to my project.


EDIT: I attached a screenshot
Jayvee
Top achievements
Rank 2
 answered on 10 Dec 2011
2 answers
589 views

Hola a todos:

Escribo en español, porque mi inglés no es muy bueno. De igual forma, espero que puedan ayudarme.
Tengo un GridView y quiero llenarlo con datos desde un Store Procedure, mediante un SWLDataReader. Al ejecutar la aplicación, me muestra la cuadrícula del Grid, pero no se visualiza ningún dato.

Este es el procedimiento que llena (o por lo menos trata) el grid.

Friend Sub LlenaDatosIniciales(ByVal FechaIni As String, ByVal FechaFin As String, ByVal gvArt As RadGridView)

 

 

cmdComProv.Connection = cnnConexion

cmdComProv.CommandText =

 

"EXEC superCompraVenta '" & FechaIni & "','" & FechaFin & "',1"

 

If cnnConexion.State = ConnectionState.Open Then

 cnnConexion.Close()

 

 

 

End If

 

cnnConexion.Open()

rdrComProv = cmdComProv.ExecuteReader

 

 

gvArt.MasterTemplate.LoadFrom(rdrComProv)

 

 

 

cnnConexion.Close()

 

 

 

End Sub


Saludos
Ruben 

Ruben
Top achievements
Rank 1
 answered on 10 Dec 2011
1 answer
95 views
deleted. Sorry for the mixup
Nikolay
Telerik team
 answered on 08 Dec 2011
1 answer
119 views
good morning everyone,

i am trying to do some custom thing with the telerik GridView.  So lets say i have a row in a gridview with 1 column.  in each cell, i need to add several controls and labels in it.  Am i able to add more than 1 controls to a cell?

thank you
Svett
Telerik team
 answered on 08 Dec 2011
1 answer
91 views
Hi,

How to set Culture Info for a filter on a GridViewDateTimeColumn ? The columns culture is set to "en-US" and the dates are displayed in mm/dd/yyyy format. But, when I use the filter on this column, the filter drop down shows values in dd/mm/yyyy format. I have attached the screen shot highlighting the problem.

Thanks,
Venkat
Svett
Telerik team
 answered on 08 Dec 2011
1 answer
237 views
hi there,

i have a question about the classes that inherit form Telerik.WinControls.UI.BaseListViewVisualItem.

What are the differences between the following children classes:

Telerik.WinControls.UI.BaseListViewGroupVisualItem
Telerik.WinControls.UI.DetailListViewVisualItem
Telerik.WinControls.UI.IconListViewVisualItem
Telerik.WinControls.UI.SimpleListViewVisualItem

????

I ask because I have a RadListView where i want to add records/rows that contain Microsoft user controls.  so on that note, which class should be best used for this?

Thank you
Ivan Todorov
Telerik team
 answered on 08 Dec 2011
1 answer
197 views
I have a few listviews, each bound to a generic list of a simple class. When the user clicks a button I want to remove an item from one list and add it to another. I am able to do this just fine but the listview does not refresh it's contents. What is the method required to rebind or reload the bound data?
Ivan Todorov
Telerik team
 answered on 08 Dec 2011
3 answers
172 views

Current Version we are using is Q2 2010 SP1 Version 2010.2.10.713. We are facing the following issue:

In grid CellEndEdit, we perform some operation on the current item of the binding source and then trying to reset it. When we use ResetBindings(), it throws the null reference (PFA) and when we use ResetCurrentItem() or ResetItem(), it throws index out of range exception (but the item which we are trying to reset is present in the binding source).

1. If we use ResetBindings() on a text box inside the child grid:
An unhandled exception occurred, and the application is terminating. For more information, see your Application event log.
 - Exception Details -
Object reference not set to an instance of an object.
   at Telerik.WinControls.UI.GridViewEditManager.EndEdit()
   at Telerik.WinControls.UI.GridRowBehavior.ProcessEnterKey(KeyEventArgs keys)
   at Telerik.WinControls.UI.GridRowBehavior.ProcessKey(KeyEventArgs keys)
   at Telerik.WinControls.UI.BaseGridBehavior.ProcessKey(KeyEventArgs keys)
   at Telerik.WinControls.UI.BaseGridBehavior.ProcessKeyDown(KeyEventArgs keys)
   at Telerik.WinControls.UI.BaseGridEditor.OnKeyDown(KeyEventArgs keyEventArgs)
   at Telerik.WinControls.UI.GridSpinEditor.OnKeyDown(KeyEventArgs e)
   at Telerik.WinControls.UI.GridSpinEditor.spinElement_KeyDown(Object sender, KeyEventArgs e)
   at Telerik.WinControls.RadItem.OnKeyDown(KeyEventArgs e)
   at Telerik.WinControls.UI.RadSpinElement.OnKeyDown(KeyEventArgs e)
   at Telerik.WinControls.UI.RadSpinElement.textItem_KeyDown(Object sender, KeyEventArgs e)
   at Telerik.WinControls.RadItem.OnKeyDown(KeyEventArgs e)
   at Telerik.WinControls.UI.RadTextBoxItem.TextBoxControl_KeyDown(Object sender, KeyEventArgs e)
   at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
   at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
   at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
   at System.Windows.Forms.Control.WmKeyChar(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.TextBoxBase.WndProc(Message& m)
   at System.Windows.Forms.TextBox.WndProc(Message& m)
   at Telerik.WinControls.UI.HostedTextBoxBase.WndProc(Message& message)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

2. If we use ResetCurrentItem() or ResetItem() instead on the same text box field in the child grid:
 

An unhandled exception occurred, and the application is terminating. For more information, see your Application event log.

- Exception Details -

Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)

at System.ThrowHelper.ThrowArgumentOutOfRangeException()

at System.Collections.Generic.List`1.get_Item(Int32 index)

at Telerik.WinControls.Data.RadCollectionView`1.get_Item(Int32 index)

at Telerik.WinControls.Data.RadCollectionView`1.Find(Int32 itemIndex, Object dataBoundItem)

at Telerik.WinControls.Data.RadDataView`1.Find(Int32 itemIndex, Object dataBoundItem)

at Telerik.WinControls.Data.RadListSource`1.ChangeItem(Int32 index, TDataItem item)

at Telerik.WinControls.Data.RadListSource`1.currencyManager_ListChanged(Object sender, ListChangedEventArgs e)

at System.Windows.Forms.CurrencyManager.OnListChanged(ListChangedEventArgs e)

at System.Windows.Forms.CurrencyManager.List_ListChanged(Object sender, ListChangedEventArgs e)

at System.Windows.Forms.BindingSource.OnListChanged(ListChangedEventArgs e)

at System.Windows.Forms.BindingSource.ResetCurrentItem()

at Lbg.PlanNet.Client.BusinessModules.PersonalAdviceProcess.UI.AllocateAssetsToMultipleAimsView.allocatedValueElement_ValueChanged(Object sender, EventArgs e) in c:\Sasi\CurrentLatest\Client\SmartClient\BusinessModules\BusinessModules.PersonalAdviceProcess.UI\Views\AllocateAssetsToMultipleAimsView\AllocateAssetsToMultipleAimsView.cs:line 439

at System.EventHandler.Invoke(Object sender, EventArgs e)

at Telerik.WinControls.UI.RadSpinElement.OnValueChanged(EventArgs e)

at Telerik.WinControls.UI.GridSpinEditorElement.SetSpinValue(Decimal value, Boolean fromValue)

at Telerik.WinControls.UI.RadSpinElement.EndTextEdit()

at Telerik.WinControls.UI.RadSpinElement.Validate()

at Telerik.WinControls.UI.GridSpinEditor.OnKeyDown(KeyEventArgs e)

at Telerik.WinControls.UI.GridSpinEditor.spinElement_KeyDown(Object sender, KeyEventArgs e)

at Telerik.WinControls.RadItem.OnKeyDown(KeyEventArgs e)

at Telerik.WinControls.UI.RadSpinElement.OnKeyDown(KeyEventArgs e)

at Telerik.WinControls.UI.RadSpinElement.textItem_KeyDown(Object sender, KeyEventArgs e)

at Telerik.WinControls.RadItem.OnKeyDown(KeyEventArgs e)

at Telerik.WinControls.UI.RadTextBoxItem.TextBoxControl_KeyDown(Object sender, KeyEventArgs e)

at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)

at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)

at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)

at System.Windows.Forms.Control.WmKeyChar(Message& m)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.TextBoxBase.WndProc(Message& m)

at System.Windows.Forms.TextBox.WndProc(Message& m)

at Telerik.WinControls.UI.HostedTextBoxBase.WndProc(Message& message)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.



Kindly advise if there is any way to avoid this error?.

Jack
Telerik team
 answered on 08 Dec 2011
11 answers
1.0K+ views
Hi Telerik,

Thanks for the awesome jobs in releasing Q2. I solved many of my problems.

But I face this problem:
I set the grid autoscroll=false, autosize=fill and verticalscrollstate=autohide,

When i add data into grid the vertical scroll bar will show althought it's not needed. And when i scroll  the vertical scroll the scroll is dissappear. How to make it appear when only needed?

I can confirm that the size of the grid is not limited the area. Thank again
Nikolay
Telerik team
 answered on 08 Dec 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
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
ProgressBar
CheckedDropDownList
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?