Telerik Forums
UI for WinForms Forum
1 answer
154 views
Is it possible to create an Items Collection during design time to fill a combobox such as I can with a combobox on a form? 
Martin Vasilev
Telerik team
 answered on 22 Feb 2010
4 answers
178 views
System.NullReferenceException was unhandled
  Message="Object reference not set to an instance of an object."
  Source="Telerik.WinControls.GridView"
  StackTrace:
       at Telerik.WinControls.Data.DataAccessComponent.get_IsHasValidChildTemplates()
       at Telerik.WinControls.UI.GridViewTemplate.GetRenderColumns()
       at Telerik.WinControls.UI.GridRowElement.UpdateColumns(NotifyCollectionChangedEventArgs e)
       at Telerik.WinControls.UI.GridTableElement.UpdateColumns(NotifyCollectionChangedEventArgs e)
       at Telerik.WinControls.UI.GridViewTemplate.UpdateColumns(NotifyCollectionChangedEventArgs e)
       at Telerik.WinControls.UI.GridViewColumnCollection.NotifyListenersCollectionChanged(NotifyCollectionChangedEventArgs e)
       at Telerik.WinControls.Data.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
       at Telerik.WinControls.UI.GridViewColumnCollection.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
       at Telerik.WinControls.Data.ObservableCollection`1.ClearItems()
       at Telerik.WinControls.Data.ItemObservableCollection`1.ClearItems()
       at Telerik.WinControls.UI.GridViewColumnCollection.ClearItems()
       at Telerik.WinControls.Data.DataAccessComponent.Dispose(Boolean disposing)
       at Telerik.WinControls.UI.GridViewTemplate.Dispose(Boolean disposing)
       at System.ComponentModel.Component.Finalize()
  InnerException:


This error comes every time(almost everytime) I close my app. Any pointers will be appreciated.
Kris
Top achievements
Rank 1
 answered on 22 Feb 2010
1 answer
279 views
Hi
I can't open example's forms. What is wrong?

I have WindowsForms Version 2009.3.9.1103.

Instead of form designer I got following text:

1 Error                                        Why am I seeing this page?    
   
   The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: Form1 --- The base class 'Telerik.Examples.WinControls.Editors.ComboBox.EditorExampleBaseForm' could not be loaded. Ensure the assembly has been referenced and that all projects have been built.      
  
   
Instances of this error (1)   
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager) 
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager) 
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager) 
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)   
  
  
 



Pauli
Top achievements
Rank 2
 answered on 22 Feb 2010
1 answer
664 views
Dear Friends,

I am facing problem with border of split panel in a split container.
 my requirement is one split panel in the split container must not show any borders but i am unable to do that...
i tried BorderStyle property but no use.

so what is the technique should be  fallow to disable borders of a split panel in the split container?

Thanks,
Regards,
Hari
Nikolay
Telerik team
 answered on 22 Feb 2010
4 answers
238 views
I have a gridview populated using a datatable.  Within my gridview I have 2 buttons "Up" and "Down".  The "Up" button takes the selected row and moves it up one row.  The "Down" button takes the selected row down a row.  The way i'm doing this is updating a column called "Order" and having my grid sorted by Page and Order columns.  If going up I swap order values within the grid with the row above the selected row and the opposite for down.   I have to be able to insert, delete and move rows up and down.  I'm trying to keep track of the grid rowindex and update that cell.
Ex.
Row# Page Order Text
1 1 10 Test1
2 1 20 Test2
3 1 30 Test3
Say I move row# 2 up now It should look like this
1 1 10 Test2
2 1 20 Test1
3 1 30 Test3
My problem is if I try and add a new row between rows#1-2 I should have 
1 1 10 Test2
2 1 20 Test4
3 1 30 Test1
4 1 40 Test3

Should I be updating my datatable?  I'm updating my grid.  Here is my RowChanging event
private void gv_RowsChanging(object sender, GridViewCollectionChangingEventArgs e)  
    {  
      if (e.Action == Telerik.WinControls.Data.NotifyCollectionChangedAction.Add)  
      {  
        RowSetup = e.NewItems[0] as GridViewDataRowInfo;  
 
        RowSetup.Cells["ID"].Value = gv.Rows[e.NewStartingIndex - 1].Cells["ID"].Value;  
        RowSetup.Cells["PAGE"].Value = gv.Rows[e.NewStartingIndex - 1].Cells["PAGE"].Value;  
        RowSetup.Cells["ORDER"].Value = Convert.ToInt32(gv.Rows[e.NewStartingIndex - 1].Cells["ORDER"].Value) + Convert.ToDecimal(".5");  
          
        foreach (GridViewRowInfo dri in gv.Rows)  
        {  
          if (dri.Cells["PAGE"].Value.ToString() == RowSetup.Cells["PAGE"].Value.ToString())  
          {  
            if (Convert.ToDecimal(dri.Cells["ORDER"].Value) > Convert.ToDecimal(RowSetup.Cells["ORDER"].Value))  
            {  
              dri.Cells["ORDER"].Value = Convert.ToInt32(dri.Cells["ORDER"].Value) + 1;  
            }  
          }  
        }  
        RowSetup.Cells["ORDER"].Value = Convert.ToDecimal(gv.Rows[e.NewStartingIndex].Cells["ORDER"].Value) + Convert.ToDecimal(".5");  
 
      }  
    } 

Thank you for any light you can shed on this.








Svett
Telerik team
 answered on 22 Feb 2010
1 answer
198 views
I have posted this question already last night, but it seems that it disappeared.
I have a RadButton with an image, all default settings. At run time, when I click on the button, the image moves slightly to the right and down. But when I release the mouse button the image remains in the new position
What is happening and how do I make it go back to the original location after the mouse click release?
Dobry Zranchev
Telerik team
 answered on 22 Feb 2010
4 answers
346 views

Hi all,

I have a grid with a combobox column and I have come to realize that filtering a combobox grid column is a problem. The only way to clear the filter in these types of column is to enter a blank value in the 'Custom' option. If I use the 'NoFilter' option, it works temporarily until I renable the filter, in which case I have the same issue. Has anyone else faced the same problem?

I tried the following methods: -

  1. Add a blank entry at the top of the combobox before binding. I was hoping somehow I can capture when the user selects this blank value and clear the filter, but I haven't been able to do so (from within the filterchanged event).
  2. I tried to capture when users select the 'NoFilter' option and clear the existing filter expression but that doesn't seem to work either.

If anyone has come across this scenario, please post the solution (and code if available). Thanks!

Regards,
MP

Jack
Telerik team
 answered on 22 Feb 2010
5 answers
346 views
Hello.

I have a minor issue that happens when i have selected multiple rows and want to deselect one of them. I always have to click an extra time to accomplish this, I think it is a bug.

Thanks for any help, 

Joel
Mojtaba
Top achievements
Rank 1
 answered on 22 Feb 2010
2 answers
213 views
Hi there,

I'm trying to update the dataset underneath a gridview by calling rgvRatings.Refresh()

I've noticed some strange behaviour: Firstly, the sort order within groups, as selected by the user doesn't always seem to persist after the refresh, and secondly, the "currentRow" can sometimes move to the next row?  Trying to solve the combination has been ... fiddly.

I've tried using LoadLayout/SaveLayout to a string, but this collapses expanded groups.  I would attempt to handle that programmatically by storing the "expanded" state, but there are "n" levels of grouping (it's basically up to the user) so this seems like a headache to achieve and test.

Is there someway I can force the grid to update the data in all of its cells without changing *anything* else about the state of the grid?

I'm using Q2 2009 SP1 btw.

Regards,
Mike

Martin Vasilev
Telerik team
 answered on 22 Feb 2010
2 answers
147 views
Hello,

I need to access the HScrollBar element of a child grid to assign an event handler to the Scroll event. I am trying to do this programmatically in the ChildViewExpanded event handler for the grid. However, every time i try to reference e.ChildViewInfo.GridViewElement.HScrollBar, the GridViewElement object is null. Any help?

Also, I have a second issue. If the HScrollBar is enabled for the grid itself, and I scroll right, then click the + sign ahead of one of the rows, it does not open the child grid. Instead, it appears to select the cell that has scrolled underneath the row header column. This is undesirable for me. Is there some way that I can prevent the cell from getting selected and instead have the Child Grid expand?

Thanks!
Jeremy
Jeremy Murtishaw
Top achievements
Rank 1
 answered on 19 Feb 2010
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?