Hello,
Is it any easy way to show enum DisplayValues from enum Description attribute?
public
enum
ObjectType
{
[Description(
"Textual information in the Html format"
)]
TextHtml,
[Description(
"Textual information in the Xaml format"
)]
TextXaml,
[Description(
"Binary Data"
)]
Binary
}
We're getting a Divide by Zero exception from one of the Telerik components. We can't track it down.
We create an instance of a COM component which is an old COM dll. Any time we try to open a form with Telerik controls on it the application crashes with a StackOverflow exception. I've attached the stack. This is a really high priority item for us at this point and holding up our release. :(
Additionally, we can create an instance of the COM component in a test application without any problems whatsoever.
************** Exception Text **************
System.DivideByZeroException: Attempted to divide by zero.
at Telerik.WinControls.UI.RadCommandBarItemsPanel.ArrangeOverride(SizeF arrangeSize)
at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
at Telerik.WinControls.UI.CommandBarStripElement.ArrangeOverride(SizeF finalSize)
at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
at Telerik.WinControls.UI.CommandBarRowElement.ArrangeOverride(SizeF finalSize)
at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
at Telerik.WinControls.Layouts.StackLayoutPanel.ArrangeOverride(SizeF arrangeSize)
at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
at Telerik.WinControls.UI.LightVisualElement.ArrangeOverride(SizeF finalSize)
at Telerik.WinControls.UI.RadCommandBarElement.ArrangeOverride(SizeF finalSize)
at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
at Telerik.WinControls.RootRadElement.ArrangeOverride(SizeF finalSize)
at Telerik.WinControls.RootRadElement.ArrangeCore(RectangleF finalRect)
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
at Telerik.WinControls.RadElementTree.PerformInnerLayout(Boolean performMeasure, Int32 x, Int32 y, Int32 width, Int32 height)
at Telerik.WinControls.RadControl.OnLoad(Size desiredSize)
at Telerik.WinControls.UI.RadCommandBar.OnLoad(Size desiredSize)
at Telerik.WinControls.RadControl.LoadElementTree(Size desiredSize)
at Telerik.WinControls.RadControl.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at Telerik.WinControls.UI.RadFormControlBase.WndProc(Message& m)
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
Hi,
we are printing out a PDF through PdfViewer.Print() utilizing a RadPrintDocument for removing the margins (new Margins(0,0,0,0)).
Unfortunately there still seem to be (very small) margins applied during print-out, because when printing the document with an external tool (e.g. Adobe Acrobat Reader) these document borders are much smaller.
Is there anything else we have to consider when printing?
Hi, I was wondering if someone could help.
I want to create a layout/cardview of a single record, I tried this via layout groups but they don't really fit side by side.
Has this been done before?
Can you explain why you forbid the empty char ?
As far as i can see you can set it in the exposed child element (maskEditBoxElement) and it is handled correctly if set as empty.
I need it as empty, so i'm wondering if i'll run into problems that i currently can not see.
public
char
PromptChar
{
get
{
return
this
.maskEditBoxElement.PromptChar;
}
set
{
if
(value ==
char
.MinValue)
throw
new
ArgumentException(
"Specified Character is not valid for this property!"
);
this
.maskEditBoxElement.PromptChar = value;
}
}
Hi
I have got the following code in my form load function;
da_products = New OleDb.OleDbDataAdapter(SQL_String, con)
dt_Products = New DataTable
'Create Datatable
da_products.Fill(dt_Products)
'Assign datatable to datagrid
RadGridView1.DataSource = dt_Products
RadGridView1.Columns(0).Width = 100
RadGridView1.Columns(1).Width = 300
End Sub
This displays the database as expected (two text fields and around twenty tick boxes).
I then have a button to allow me to save the RADGRIDVIEW back to my database, but this does not work and comes up with error
System.InvalidOperationException: 'Update requires a valid UpdateCommand when passed DataRow collection with modified rows.'
Code in update button;
Private Sub CmdDatabaseSave_Click(sender As Object, e As EventArgs) Handles cmdDatabaseSave.Click
da_products.Update(dt_Products)
End Sub
da_products and dt_Products are defined as global
Public da_products As OleDb.OleDbDataAdapter
Public dt_Products As DataTable
Thanks
Neil
I want to add a column to the GridView that will allow me to assign and display multiple values for an item.
For example, imagine you want to track the types (home, office, cell) of telephone numbers for users. Note, this is not my actual requirement. A user can have multiple telephone number types. I don't want to display two separate rows in the GridView for the same user, though. I want to display one row per user, and have the telephone types column allow the display and assignment of multiple telephone number types (e.g., home, office, cell).
A co-worker came up with the idea of creating a User Control that would contain a combobox control to allow the user to select the telephone number types in the combobox and display the selected values in a listbox below it. I specifically chose types for this example, because there's a limited, known set of them-- that's where the idea of the combobox control came in, that is, I need to choose from a limited set of choices.
I looked at the Forums blog titled, "Possible to Add a User Control a A Grid Column," at the following url:
http://www.telerik.com/community/forums/winforms/gridview/possible-to-add-a-user-control-to-a-grid-column.aspx
. . . and tried to implement the solution therein, but when I tried defining a variable of type GridViewDataColumn I got the following design-time error message:
'New' cannot be used on a class that is declared 'MustInherit'.
I also tried defining a variable of GridViewColumn, but got the same error message.
Is there a way to add a User Control to a GridView?
As a separate, but related issue, can I add a LinkLabel control to the GridView, and can the GridViewComboBoxColumn display multiple selections?
Hi,
We need to remove the local row option in scheduler from the day view. Screenshot mentioned below for your reference.