Telerik Forums
UI for WinForms Forum
3 answers
362 views
Hi.

An exception is thrown when I reset my data source (first to null to clear it), but I dont know when it really happens. It happens very seldom but it does happen.

Object reference not set to an instance of an object.
   at Telerik.WinControls.UI.TableViewDefinitionBase.GetRowHeight(GridViewRowInfo rowInfo, IGridView gridView)
   at Telerik.WinControls.UI.GridTableBodyElement.GetRowHeight(GridRowElement row, Single y, SizeF availableSize)
   at Telerik.WinControls.UI.GridTableBodyElement.ArrangeOverride(SizeF finalSize)
   at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
   at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
   at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayout()
   at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayoutCallback(ILayoutManager manager)

Thanks,
-j
Dimitar
Telerik team
 answered on 18 Dec 2018
3 answers
513 views

Hello everyone,

I've built an application using winforms (c++) and Telerik and when i run it from the computer i made it on, it works with no problems. However once i copy it over to my laptop, the .exe file simply won't run. No error messages, it just doesn't open. I have tried it on another computer and got the exact same problem.

I followed the guide here: https://docs.telerik.com/devtools/winforms/deployment-and-distribution/application-deployment

All the .dll files are in the same folder as the .exe and yet it still does not work. Has anyone had this problem before and would they be able to help me fix this please?

Thank you!

Dimitar
Telerik team
 answered on 17 Dec 2018
3 answers
115 views

     I have a control RadMultiColumn Control on my form as you can see here its showing Telerik.WinControls.UI.GridViewDataRowInfo in the text box however when selecting the option it then throws a null statement.

            dpStockSelection.DataSource = _sageManager.ProductFetchAll();            

public List<Product> ProductFetchAll()
      {
 
          if (!IsConnected)
              throw new Exception("Not connected to Sage");
 
          List<Product> products = new List<Product>();
          SageDataObject230.IStockRecord sageStockRecord = (SageDataObject230.IStockRecord)_workSpace.CreateObject("StockRecord");
 
          try
          {
              if (sageStockRecord.MoveFirst())
              {
                  do
                  {
                      products.Add(CreateProduct(sageStockRecord));
 
                  } while (sageStockRecord.MoveNext());
              }
          }
          finally
          {
              sageStockRecord = null;
          }
 
          return products;
      }
David
Top achievements
Rank 1
 answered on 17 Dec 2018
0 answers
116 views

I am using Q1 2008 Winforms.

There is radgridview named 'gv'. gv is filling with some manipulated data. I can filter by clicking and selecting some values. I want to filter wiht my own buttons. Basicially i created filter like this:(c#)

01.private void btFilter3_Click(object sender, EventArgs e)
02.{
03.    gridTest.EnableFiltering = true;
04.    this.gridTest.FilterDescriptors.Remove("IssueDate");
05.    FilterDescriptor filter = new FilterDescriptor();
06.    filter.PropertyName = "IssueDate";
07.    filter.Operator = FilterOperator.IsGreaterThan;
08.    filter.Value = DateTime.Now.AddMonths(-5);        
09.    filter.IsFilterEditor = true;
10.    this.gridTest.FilterDescriptors.Add(filter);
11.}

 

By clicking the button code is running. On Screen; the date value  (what i described above) is appearing on filter area. But data on the gv isn't filtering.

When i filter with another value(date) manually, gv is filtering. After that manually process when run code by clicking the button, code is running and data on the gv is filtering also.

I need filter without manually process. 

What am i missing?

 

Erdem
Top achievements
Rank 1
 asked on 14 Dec 2018
2 answers
856 views
Hi, we used to use Telerik version 2012. Sometimes we needed to have wider scrollbar on dropdownlist for example on touchscreens. Now in Telerik 2018 when we change scroll width in windows regedit all applications change their scroll width except this one with Telerik. How can we change scroll width now?
Sandra
Top achievements
Rank 1
 answered on 14 Dec 2018
7 answers
402 views

Hi everyone,

when a radmessagebox pops up , its not exactly on the center of screen .

How to align it to the center of screen?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 Dec 2018
5 answers
186 views

I want to give each of my grids a custom GroupingPanelDefaultMessage based on which column(s) is/are groupable.  For example,

"To show sales grouped by Division, drag that column-header here".

I hope it is not necessary to create a custom LocalizationProvider for each such customization. Is it? If so, the following doc doesn't provide enough info:

http://www.telerik.com/help/winforms/gridview-localization.html

I don't see an object called RadGridLocalizationProvider anywhere. 
Is the RadGridLocalizationProvider an  object encapsulated by the grid?


Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 Dec 2018
3 answers
908 views
hi,

How can i move the spliiter programmatically? what i like to do is to mimic the behavior of the splitter in your examples. I intend to add a button to the panel and change the position of the splitter. I have tried to use the collapse property,  but it also hides the button. therefore i need to change the splitter position my self and leave a little space for the toggle button.

I have also tried to use the prev and next buttons on the splitter, by they are hidden as well when the panel is collapsed.

Thanks,

Sharon.
Hristo
Telerik team
 answered on 14 Dec 2018
9 answers
1.8K+ views
How do I access only the filtered rows in a grid.  I basically need to select the first row that is visible after setting a filter.  I also have other needs for accessing only the rows that are still visible after a filter, but this is my first need.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Dec 2018
6 answers
325 views

Grid just populated with few rows, so there is an empty area below those rows.

Multiselection is enabled.

Grid has just been populated, so there are no selected rows.

If I click on the empty area below the rows, I get this exception:

System.Exception: Exception caught by
CurrentDomain.UnhandledException - type: System.NullReferenceException value:
System.NullReferenceException: Object reference not set to an instance of an
object.<br>   at
Telerik.WinControls.UI.GridRowBehavior.DoMultiFullRowSelect(GridCellElement
currentCell, Point currentLocation)<br>   at
Telerik.WinControls.UI.GridRowBehavior.DoMouseSelection(GridCellElement
currentCell, Point currentLocation)<br>   at
Telerik.WinControls.UI.GridRowBehavior.ProcessMouseSelection(Point
mousePosition, GridCellElement currentCell)<br>   at
Telerik.WinControls.UI.GridRowBehavior.OnMouseMove(MouseEventArgs e)<br>   at
Telerik.WinControls.UI.BaseGridBehavior.OnMouseMove(MouseEventArgs e)<br>   at
Telerik.WinControls.UI.RadGridView.OnMouseMove(MouseEventArgs e)<br>   at
System.Windows.Forms.Control.WmMouseMove(Message& m)<br>   at
System.Windows.Forms.Control.WndProc(Message& m)<br>   at
Telerik.WinControls.RadControl.WndProc(Message& m)

 

if I select a row, before clicking on the empty area, nothing happens.

I could preselect a row, just after populating. but I'd like to understand why this happens

 

Dimitar
Telerik team
 answered on 13 Dec 2018
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
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
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
NavigationView
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?