Telerik Forums
UI for WinForms Forum
4 answers
335 views

Hi, 

I'm currently populating the property grid using a RadPropertyStore.  One of my object's properties is a nullable Int32 field (Int32?) and I need to allow the user to empty out the PropertyGridSpinEditor cell.  Unfortunately, when the data cell is cleared out, it automatically gets set to a value of 0 instead of empty/null.

How can I allow the user to clear out the data and have null be considered a valid value?

Thanks,

Joe

PS.  See attached screenshot for current behavior.

Joe
Top achievements
Rank 1
 answered on 08 Oct 2015
1 answer
560 views

Is there a way to expand... grab a corner and pull to "show more" when the control is full?

Tried many searches for this... no luck.

Hristo
Telerik team
 answered on 08 Oct 2015
1 answer
286 views

1. I am using Linq as my data source

2. I am programmatically creating the pivot data (PropertyGroupDescription)

3. I need a way to tell the differences between the ROW LABELS and the COLUMN LABELS in the GroupElementFormatting event so I can resize my ROW LABEL so I can see all the text and Right Align the test in my COLUMN LABELS.  From what I can tell, they are all the same OBJECT TYPE and I can't rely on looking at the TEXT/DESCRIPTION as this data is dynamic.

 

 TIA

 

Mark

Hristo
Telerik team
 answered on 08 Oct 2015
1 answer
82 views

Hi people.

 

can you help me?

What Component use for create this menu "All Controls"?

 

thank you very much.

Dimitar
Telerik team
 answered on 08 Oct 2015
3 answers
179 views

Is there a way to disable the print preview when printing a document.

 

Thanks Troy

Dimitar
Telerik team
 answered on 08 Oct 2015
6 answers
296 views
how to make panorama tile text have a color background. please see attached file
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Oct 2015
2 answers
117 views

Hello,

I have in my program a RadDropDownList and RadCheckedDropDownList, which I filled with some items. Local on em system the program runs great. But I copy it to a virtual machine, so the pop-up dropdown list is not working properly. I gave you appended to a .gif, by making the problem described.
I hope they can understand the problem and help me.

Regards,

Susann

Susann
Top achievements
Rank 1
 answered on 08 Oct 2015
5 answers
161 views

Hi;

I found a problem in the resizing of columns when using customized groups. This error did not occur with the previous version (Q2) and has appeared in the current version (Q3).

I attached two files with the same project using the two versions. In the previous version columns are resized correctly and present it does not​. As soon as you remove your answer and projects which included two versions of DLLs that ye be easier to prove:

https://dl.dropboxusercontent.com/u/21787064/GridView_Q2.rar

https://dl.dropboxusercontent.com/u/21787064/GridView_Q3.rar​​

Is it possible I'm doing something wrong?

I regard as a very serious mistake and I can not update my applications to version Q3 until it is solved.

Regards​​

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Oct 2015
6 answers
264 views

We found a very strange error that occurs if someone tries to drag a grouped column and the mouse is on the X to close the group item.

After a column is grouped, you can drag it out of the group area to ungroup, or drag it to a different location to change the group hierarchy. This works fine as long as you don't happen to grab the group by the "X" in the group area. If you place the mouse pointer on the X hold the left mouse button down, moving the mouse at all throws an object reference error. The call stack is shown below.

To make the problem even more bizarre, this doesn't occur if the user manually ​groups the column. It only seems to occur if we set the grouping in code. We allow users to save their desired display settings. We save them in an XML file and reload them using the LoadLayout and SaveLayout methods. The XML that we are loading with LoadLayout is shown below.

Error call stack:

System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.WinControls.UI.GridRowBehavior.ExtendSelectionUp(GridTableElement tableElement, Rectangle viewportBounds, Point location)
   at Telerik.WinControls.UI.GridRowBehavior.ExtendSelectionOnMouseMove(GridTableElement tableElement, Rectangle viewportBounds, Point location)
   at Telerik.WinControls.UI.GridRowBehavior.scrollTimer_Tick(Object sender, EventArgs e)
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message_ m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 

LoadLayout XML:

<RadGridView GroupExpandAnimationType="Fade" ReadOnly="True" NewRowEnterKeyMode="None" CausesValidation="False" BackColor="Transparent" ForeColor="ControlText" Font="Microsoft Sans Serif, 8.25pt" Cursor="Default" RightToLeft="No" TabIndex="0" ImeMode="NoControl">
  <MasterTemplate MultiSelect="True" AllowRowResize="False" Caption="test caption" EnableFiltering="True" ShowGroupedColumns="True" ReadOnly="True" AutoGenerateColumns="False" AutoExpandGroups="True" ShowRowHeaderColumn="False">
    <Columns>
      <Telerik.WinControls.UI.GridViewTextBoxColumn FieldName="pkTask" Name="pkTask" VisibleInColumnChooser="False" IsVisible="False" AllowSort="False" AllowGroup="False" AllowResize="False" HeaderText="pkTask" />
      <Telerik.WinControls.UI.GridViewImageColumn DataType="System.Byte[]" AllowFiltering="False" TextImageRelation="ImageAboveText" Width="17" FieldName="PriorityImage" Name="PriorityImage" VisibleInColumnChooser="False" IsVisible="True" IsPinned="True" PinPosition="Left" AllowSort="False" AllowResize="False" AllowHide="False" HeaderText="" />
      <Telerik.WinControls.UI.GridViewImageColumn DataType="System.Byte[]" AllowFiltering="False" Width="27" FieldName="ReadImage" Name="ReadImage" VisibleInColumnChooser="False" IsVisible="True" IsPinned="True" PinPosition="Left" AllowSort="False" AllowResize="False" AllowHide="False" HeaderText="" />
      <Telerik.WinControls.UI.GridViewImageColumn DataType="System.Byte[]" AllowFiltering="False" TextImageRelation="ImageAboveText" Width="27" FieldName="NoteImage" Name="NoteImage" IsVisible="True" IsPinned="True" PinPosition="Left" AllowSort="False" AllowResize="False" AllowHide="False" HeaderText="" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="77" FieldName="TaskNumber" Name="TaskNumber" IsVisible="True" AllowGroup="False" HeaderText="Task Num" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn FieldName="QueueName" Name="QueueName" IsVisible="False" HeaderText="Queue" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="121" FieldName="AssignedToName" Name="AssignedToName" IsVisible="False" ReadOnly="True" HeaderText="Assigned To" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="352" FieldName="TaskDescription" Name="TaskDescription" IsVisible="True" AllowGroup="False" HeaderText="Task Description" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="66" FieldName="TaskStatusDescription" Name="TaskStatusDescription" IsVisible="True" HeaderText="Status" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn FieldName="TaskStatusReason" Name="TaskStatusReason" IsVisible="False" HeaderText="Reason" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="114" FieldName="TaskTypeDescription" Name="TaskTypeDescription" IsVisible="True" HeaderText="Type" />
      <Telerik.WinControls.UI.GridViewDateTimeColumn Format="Long" Width="126" FieldName="DueDate" Name="DueDate" IsVisible="True" HeaderText="Date Due" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="77" FieldName="DueCountdown" Name="DueCountdown" IsVisible="True" AllowSort="False" AllowGroup="False" HeaderText="Due" DisableHTMLRendering="False" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="77" FieldName="PriorityDescription" Name="PriorityDescription" IsVisible="True" HeaderText="Priority" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="182" FieldName="ClientInfo" Name="ClientInfo" IsVisible="True" HeaderText="Member Info" />
      <Telerik.WinControls.UI.GridViewDateTimeColumn Format="Long" Width="118" FieldName="CompleteDate" Name="CompleteDate" IsVisible="False" AllowGroup="False" HeaderText="Date Completed" />
      <Telerik.WinControls.UI.GridViewDecimalColumn Width="103" FieldName="TaskCreateUser" Name="TaskCreateUser" VisibleInColumnChooser="False" IsVisible="False" HeaderText="TaskCreateUser" />
      <Telerik.WinControls.UI.GridViewDecimalColumn FieldName="fkrefTaskType" Name="fkrefTaskType" VisibleInColumnChooser="False" IsVisible="False" AllowSort="False" AllowGroup="False" AllowResize="False" HeaderText="fkrefTaskType" />
      <Telerik.WinControls.UI.GridViewDecimalColumn FieldName="fkrefTaskStatus" Name="fkrefTaskStatus" VisibleInColumnChooser="False" IsVisible="False" AllowSort="False" AllowGroup="False" AllowResize="False" HeaderText="fkrefTaskStatus" />
      <Telerik.WinControls.UI.GridViewDecimalColumn DataType="System.Int32" FieldName="PriorityCode" Name="PriorityCode" VisibleInColumnChooser="False" IsVisible="False" AllowGroup="False" AllowResize="False" HeaderText="PriorityCode" />
      <Telerik.WinControls.UI.GridViewCheckBoxColumn MinWidth="20" FieldName="GroupTask" Name="GroupTask" VisibleInColumnChooser="False" IsVisible="False" AllowSort="False" AllowGroup="False" AllowResize="False" HeaderText="GroupTask" />
      <Telerik.WinControls.UI.GridViewDateTimeColumn Format="Long" FieldName="StartDate" Name="StartDate" VisibleInColumnChooser="False" IsVisible="False" HeaderText="StartDate" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="121" FieldName="StateCaseNumber" Name="StateCaseNumber" IsVisible="True" HeaderText="State Case Number" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="123" FieldName="AssignedByName" Name="AssignedByName" IsVisible="False" ReadOnly="True" HeaderText="Assigned By" />
      <Telerik.WinControls.UI.GridViewCheckBoxColumn MinWidth="20" FieldName="UserRead" Name="UserRead" VisibleInColumnChooser="False" IsVisible="False" AllowSort="False" AllowGroup="False" AllowResize="False" HeaderText="UserRead" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn FieldName="pkTaskAssignment" Name="pkTaskAssignment" VisibleInColumnChooser="False" IsVisible="False" AllowSort="False" AllowGroup="False" AllowResize="False" HeaderText="pkTaskAssignment" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn FieldName="TaskSource" Name="TaskSource" VisibleInColumnChooser="False" IsVisible="False" AllowSort="False" AllowGroup="False" ReadOnly="True" AllowResize="False" HeaderText="TaskSource" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="111" FieldName="SourceModuleName" Name="SourceModuleName" IsVisible="True" ReadOnly="True" HeaderText="Source" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="91" FieldName="TaskOriginDescription" Name="TaskOriginDescription" IsVisible="False" HeaderText="Task Origin" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn DataType="System.Decimal" FieldName="fkApplicationUserAssignedTo" Name="fkApplicationUserAssignedTo" VisibleInColumnChooser="False" IsVisible="False" HeaderText="fkApplicationUserAssignedTo" />
      <Telerik.WinControls.UI.GridViewDateTimeColumn Format="Long" Width="160" FieldName="CreateDate" Name="CreateDate" SortOrder="Descending" IsVisible="True" AllowGroup="False" HeaderText="Date Created" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn FieldName="CountyCode" Name="CountyCode" VisibleInColumnChooser="False" IsVisible="False" AllowGroup="False" ReadOnly="True" HeaderText="County Code" />
      <Telerik.WinControls.UI.GridViewDateTimeColumn Format="Long" FieldName="DueDateOnly" Name="DueDateOnly" VisibleInColumnChooser="False" IsVisible="False" HeaderText="Due Date" />
      <Telerik.WinControls.UI.GridViewDateTimeColumn Format="Long" Width="142" FieldName="AssignmentCreateDate" Name="AssignmentCreateDate" EnableExpressionEditor="False" IsVisible="False" AllowGroup="False" HeaderText="Date Assigned" />
      <Telerik.WinControls.UI.GridViewCheckBoxColumn MinWidth="20" FieldName="UserReadNote" Name="UserReadNote" EnableExpressionEditor="False" VisibleInColumnChooser="False" IsVisible="False" AllowSort="False" AllowGroup="False" AllowResize="False" HeaderText="UserReadNote" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn DataType="System.Int32" FieldName="TaskNoteLength" Name="TaskNoteLength" EnableExpressionEditor="False" VisibleInColumnChooser="False" IsVisible="False" AllowSort="False" AllowGroup="False" AllowResize="False" HeaderText="TaskNoteLength" />
    </Columns>
    <SortDescriptors>
      <Telerik.WinControls.Data.SortDescriptor PropertyName="CreateDate" Direction="Descending" />
    </SortDescriptors>
    <GroupDescriptors>
      <Telerik.WinControls.Data.GroupDescriptor>
        <GroupNames>
          <Telerik.WinControls.Data.SortDescriptor PropertyName="TaskTypeDescription" />
        </GroupNames>
      </Telerik.WinControls.Data.GroupDescriptor>
    </GroupDescriptors>

    <ViewDefinition xsi:type="Telerik.WinControls.UI.TableViewDefinition" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
  </MasterTemplate>
  <ContextMenuStrip Name="cmMenu">
    <Items>
      <System.Windows.Forms.ToolStripMenuItem ShortcutKeys="Ctrl+F1" Name="" Size="345, 22" Tag="Assigned" Text="Change Task(s) Status To Assigned">
        <Image xsi:type="System.Drawing.Bitmap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
      </System.Windows.Forms.ToolStripMenuItem>
      <System.Windows.Forms.ToolStripMenuItem ShortcutKeys="Ctrl+F2" Name="" Size="345, 22" Tag="InProgress" Text="Change Task(s) Status To In Progress">
        <Image xsi:type="System.Drawing.Bitmap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
      </System.Windows.Forms.ToolStripMenuItem>
      <System.Windows.Forms.ToolStripMenuItem ShortcutKeys="Ctrl+F3" Name="" Size="345, 22" Tag="Complete" Text="Complete Task(s)">
        <Image xsi:type="System.Drawing.Bitmap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
      </System.Windows.Forms.ToolStripMenuItem>
      <System.Windows.Forms.ToolStripMenuItem ShortcutKeys="Ctrl+D" Name="" Size="345, 22" Tag="Delete" Text="Delete Task(s)">
        <Image xsi:type="System.Drawing.Bitmap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
      </System.Windows.Forms.ToolStripMenuItem>
      <System.Windows.Forms.ToolStripMenuItem ShortcutKeys="Ctrl+R" Name="" Size="345, 22" Tag="MarkRead" Text="Mark Task(s) Read">
        <Image xsi:type="System.Drawing.Bitmap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
      </System.Windows.Forms.ToolStripMenuItem>
      <System.Windows.Forms.ToolStripMenuItem ShortcutKeys="Ctrl+U" Name="" Size="345, 22" Tag="MarkUnread" Text="Mark Task(s) Un-Read">
        <Image xsi:type="System.Drawing.Bitmap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
      </System.Windows.Forms.ToolStripMenuItem>
      <System.Windows.Forms.ToolStripMenuItem ShortcutKeys="Ctrl+F7" Name="" Size="345, 22" Tag="AssgnFollowUpMarkAsComplete" Text="Assign Follow Up Date (Mark as Complete)">
        <Image xsi:type="System.Drawing.Bitmap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
      </System.Windows.Forms.ToolStripMenuItem>
      <System.Windows.Forms.ToolStripMenuItem ShortcutKeys="Ctrl+F5" Name="" Size="345, 22" Tag="Reassign" Text="Reassign Task(s)">
        <Image xsi:type="System.Drawing.Bitmap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
      </System.Windows.Forms.ToolStripMenuItem>
      <System.Windows.Forms.ToolStripMenuItem ShortcutKeys="Ctrl+F4" Name="" Size="345, 22" Tag="Copy" Text="Copy Task">
        <Image xsi:type="System.Drawing.Bitmap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
      </System.Windows.Forms.ToolStripMenuItem>
      <System.Windows.Forms.ToolStripMenuItem ShortcutKeys="Ctrl+F6" Name="" Size="345, 22" Tag="ViewTaskHistory" Text="View Task History">
        <Image xsi:type="System.Drawing.Bitmap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
      </System.Windows.Forms.ToolStripMenuItem>
      <System.Windows.Forms.ToolStripSeparator Name="" Size="342, 6" Tag="None" />
      <System.Windows.Forms.ToolStripMenuItem ShortcutKeys="Ctrl+N" Name="" Size="345, 22" Tag="NewTask" Text="Create New Task">
        <Image xsi:type="System.Drawing.Bitmap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
      </System.Windows.Forms.ToolStripMenuItem>
      <System.Windows.Forms.ToolStripMenuItem ShortcutKeys="Ctrl+L" Name="" Size="345, 22" Tag="SelectColumns" Text="Select Columns">
        <Image xsi:type="System.Drawing.Bitmap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
      </System.Windows.Forms.ToolStripMenuItem>
      <System.Windows.Forms.ToolStripMenuItem ShortcutKeys="Ctrl+A" Name="" Size="345, 22" Tag="SelectAllTasks" Text="Select All">
        <Image xsi:type="System.Drawing.Bitmap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
      </System.Windows.Forms.ToolStripMenuItem>
      <System.Windows.Forms.ToolStripMenuItem ShortcutKeys="Ctrl+F8" Name="" Size="345, 22" Tag="EraseFilter" Text="Clear Filters">
        <Image xsi:type="System.Drawing.Bitmap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
      </System.Windows.Forms.ToolStripMenuItem>
      <System.Windows.Forms.ToolStripMenuItem ShortcutKeys="Ctrl+F12" Name="" Size="345, 22" Tag="ExportTaskList" Text="Export Tasks List">
        <Image xsi:type="System.Drawing.Bitmap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
      </System.Windows.Forms.ToolStripMenuItem>
      <System.Windows.Forms.ToolStripMenuItem ShortcutKeys="Ctrl+P" Name="" Size="345, 22" Tag="PrintTaskList" Text="Print Tasks List">
        <Image xsi:type="System.Drawing.Bitmap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
      </System.Windows.Forms.ToolStripMenuItem>
    </Items>
  </ContextMenuStrip>
</RadGridView>

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Oct 2015
1 answer
80 views
How can I distinguish a mouse action vs program code action on a multicolumncombobox event like SelectedIndexChanged?
Dimitar
Telerik team
 answered on 07 Oct 2015
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
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?