Telerik Forums
UI for WinForms Forum
3 answers
91 views

Hello all,

I'm looking for an option that allow to get the date of the current week with an input by the start of the nameday.

example : 

we are the 16 oct

I write on the keyboard 'f'

I wish an autocompletion with 'friday 20 october'

this is possible ?

with Tuesday and Thursday 2 keypress are required.(tu or th)

Thanks.

Hristo
Telerik team
 answered on 18 Oct 2017
1 answer
124 views

Good day,

the viewer (2017 R3) crash if you try to copy the selected text.

1. select text in viewer

2. open the context menu 

3. click on 'Copy'

You have the exception:

System.NullReferenceException occurred
  HResult=0x80004003
  Message=Riferimento a un oggetto non impostato su un'istanza di oggetto.
  Source=Telerik.Windows.Documents.Fixed
  StackTrace:
   at Telerik.Windows.Documents.Fixed.FormatProviders.Old.Pdf.Utils.Helper.get_Dispatcher()
   at Telerik.Windows.Documents.Fixed.Selection.TextSelection.GetSelectedText(Object param)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart(Object obj)

Thank you.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Oct 2017
2 answers
200 views

Hello,

I've added a custom shape with an image to the toolbox and can put them into the diagram. With this thread: http://www.telerik.com/forums/create-custom-items I could implement it.

Now I would like to open the settingspane, resize und rotate the shape, but it does not work... this is my code:

private void radDiagramToolbox1_VisualItemFormatting(object sender, ListViewVisualItemEventArgs e)
{
    DiagramListViewDataItem dataItem = e.VisualItem.Data as DiagramListViewDataItem;
    if (dataItem != null)
    {
        DiagramListViewVisualItem el = e.VisualItem as DiagramListViewVisualItem;
 
        if (dataItem.Key.Equals("MyShape"))
        {
            // on toolbox
            el.Image = new System.Drawing.Bitmap(@"blabla.png");
            el.ImageLayout = ImageLayout.Zoom;
            el.ShapeElement.Opacity = 0;
            el.Text = "";
            el.TextElement.Text = "";
 
            // on diagram
            el.ShapeElement.BackColor = System.Drawing.Color.Transparent;
            el.ShapeElement.Image = new System.Drawing.Bitmap(@"blabla.png");
            el.ShapeElement.ImageLayout = ImageLayout.Stretch;
            el.ShapeElement.Text = "";
            el.ShapeElement.Size = new Size(80, 80);
            el.ShapeElement.BorderThickness = new Padding(0);
        }
    }
}
private void DragDropService_PreviewDragDrop(object sender, RadDropEventArgs e)
{
    DiagramListViewVisualItem dragItem = e.DragInstance as DiagramListViewVisualItem;
    RadDiagramElement dropTarget = e.HitTarget as RadDiagramElement;
    if (dragItem != null && dropTarget != null && dragItem.Data.Key.Equals("MyShape"))
    {
        e.Handled = true;
        RadDiagramShape shape = dropTarget.Shapes.Last() as RadDiagramShape;
        shape.DiagramShapeElement.Shape = null;
        shape.BackColor = System.Drawing.Color.Transparent;
        shape.DiagramShapeElement.Image = dragItem.Image;
        shape.DiagramShapeElement.ImageLayout = dragItem.ImageLayout;
 
    };
}

 

Thank you!

Regards,

Larissa

 

Larissa
Top achievements
Rank 1
 answered on 17 Oct 2017
3 answers
200 views

Hi,

I have a grid view having search filter button on and need to filter the date column with a custom filter. When I click on the 'Custom' option, the Filter Dialog will get popped up and I can give my search values and click on 'OK', If user gives the date as '31/12/2017' then my application is crashing after it raises a validation error message. I don't know where to catch this exception and act upon. Please help me providing solution for at least one of the below things or any other better way to handle this.

1. Validate the date value as per the format expecting by the application before closing the Filter dialog box.

2. Catch the exception raised by the wrong format/OK button click

3. Restrict the user to not enter the values except in the specified format

 

Thanks in advance.

Chandra

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Oct 2017
4 answers
533 views
Hello,
I need to add the background highlight for grid row(s), please help me to implement it!
Thanks
Paul
Top achievements
Rank 1
 answered on 16 Oct 2017
3 answers
111 views

Hello,

One of RadMenuItem constructors is new RadMenuItem("TEXT", object Tag)..
How do I retrieve that Tag value in code?

Thanks

Роберт
Top achievements
Rank 1
 answered on 14 Oct 2017
5 answers
3.8K+ views
I am new to Telerik Winforms/ASP toolkit.  I have been previously using infragistics.  I am trying to hide a column in a gridview after I send a datatable to the datasource of the grid.  I am trying to find a visible property of the column, but unable to do so.  All the posts I have seen show that you have to loop through the entire grid setting the cell's visible property to false. 

Is there an easy way to do the following or do I really have to loop through the entire grid?

RadGridView1.Columns("id").visible = false 
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Oct 2017
1 answer
246 views
I am using a RadLayoutControl and I would like show a RadStatusStrip with a progressbar at the bottom of the form while loading data into the forms RadGridView. I want the status strip to go away when loading has finished though and I expect the grid to resize properly when addingthe status strip and when removing it. How can I accomplish this?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Oct 2017
1 answer
345 views

I have a grid that is populated from a BindingList (I am working with the EntityFramework)

The CellValueChanged event does apply the changes to the underlying database

But When I add a new row, the UserAddedRow (which is fired) does not add the row to the underlying database (and does not generate an error)

Despite long hours of research I have not found the solution to add a new row to my table by typing it's value in the "New Row" of the grid

Thanks in advance

The code snipet:

'Populate the Grid
 Dim mArena As New mArena(context)
        Dim allArenas As BindingList(Of Arena) = mArena.GetArenasByShowId(idShow)
        gvArena.AutoGenerateColumns = True
        gvArena.DataSource = allArenas

   Public Function GetArenasByShowId(ByVal idShow As Integer) As BindingList(Of Arena)
        Try
            Dim Query = (From aArena As Arena In context.Arenas
                         Where aArena.idShow = idShow
                         Order By aArena.Name)
            Return New BindingList(Of Arena)(Query.ToList())
        Catch ex As Exception
            RaiseEvent msg("F", ex.Message)
            Return Nothing
        End Try
    End Function

'Grid Events
    Private Sub gvArena_CellValueChanged(sender As Object, e As GridViewCellEventArgs) Handles gvArena.CellValueChanged
        Try
            context.SaveChanges()
        Catch ex As Exception
            RaiseEvent msg("F", "CellValueChanged: " & ex.Message)
        End Try
    End Sub

    Private Sub gvArena_UserAddedRow(sender As Object, e As GridViewRowEventArgs) Handles gvArena.UserAddedRow
        Try
            gvArena.EndEdit()
            context.SaveChanges()
        Catch ex As Exception
            RaiseEvent msg("F", "AddedRow: " & ex.Message)
        End Try
    End Sub

Dimitar
Telerik team
 answered on 13 Oct 2017
2 answers
325 views

Hello,

Is there a way to implement conditional formatting of rows of RadMultiColumnComboBox or set back color of its row depending on a condition while row is added (the control is unbound)?

Thanks

Wojciech

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Oct 2017
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
CheckedDropDownList
ProgressBar
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?