Telerik Forums
UI for WinForms Forum
1 answer
118 views
Hello
Using the Event Line Create Row in one of the cells in the grid code is written Grid View then called event data taken from the database. If the number of records about the event call will not be more than 25
Hristo
Telerik team
 answered on 22 May 2017
0 answers
105 views

Hello All.... 

i have this code .. 

    Private Sub GridBarang_CellEndEdit(sender As Object, e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles GridBarang.CellEndEdit
        If e.ColumnIndex = 0 Then
            If GridBarang.CurrentCell.Value = Nothing Then
                MsgBox("test")
            Else
                Dim strSQL As String
                strSQL = Nothing
                strSQL = "SELECT KodeBarang, NamaBarang FROM MstBarang WHERE KodeBarang='" & GridBarang.CurrentRow.Cells(0).Value.ToString & "' ORDER BY KodeBarang"

                Using conn As New OleDbConnection(str)
                    conn.Open()
                    cmd = New OleDbCommand(strSQL, conn)
                    rd = cmd.ExecuteReader
                    rd.Read()

                    If Not rd.HasRows Then
                        MsgBox("Tidak ada kode tersebut ")

                    Else
                        With GridBarang
                            .CurrentCell.Value = rd.GetString(0)
                            .CurrentRow.Cells(1).Value = rd.GetString(1)
                        End With
                    End If

                    rd.Close()
                    conn.Close()
                End Using
            End If
        End If
    End Sub

How to prevent add new row when after inserting new data ... and go to column(3) after edited column(0)  

Thanks before.... 

 

Hengky
Top achievements
Rank 1
Veteran
 asked on 22 May 2017
2 answers
264 views

Is it possible to cancel a Drag and Drop Operation like on TreeView?
http://docs.telerik.com/devtools/winforms/treeview/drag-and-drop/cancel-a-drag-and-drop-operation

I'd like to impose some restrictions on drop operation based on from/destination rows.

Thank you.

Leonardo

Leonardo
Top achievements
Rank 1
 answered on 19 May 2017
6 answers
280 views
Hi

How to do i Display multiple fields in Display/Select Box?

Basically  is there way do display selected row, instead of just one filed Selected Filed

Thank you.
fabrizio
Top achievements
Rank 1
Veteran
 answered on 19 May 2017
8 answers
134 views
Is it possible to attach the column chooser to a panel?

Or a way to set the location of the column chooser.

Thanks in advance.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 May 2017
11 answers
149 views
appointments are not placed in the correct time slot when using a custom MonthTimescale


public RadRibbonForm1()
{
InitializeComponent();

this.radScheduler1.FocusedDate = new DateTime(2016, 1, 1);
this.radScheduler1.ActiveViewType = Telerik.WinControls.UI.SchedulerViewType.Timeline;
SchedulerTimelineView timelineView = this.radScheduler1.GetTimelineView();
timelineView.RangeStartDate = new DateTime(2016, 1, 1, 00, 00, 00);
timelineView.RangeEndDate = new DateTime(2016, 12, 31, 23, 59, 59);
timelineView.StartDate = new DateTime(2016, 1, 1, 00, 00, 00);

Appointment appointment = new Appointment(new DateTime(2016, 1, 1, 00, 00, 00), new DateTime(2016, 1, 10, 00, 00, 00), "Quarter 1");
Appointment appointment2 = new Appointment(new DateTime(2016, 2, 1, 00, 00, 00), new DateTime(2016, 2, 10, 00, 00, 00), "Quarter 1");
Appointment appointment3 = new Appointment(new DateTime(2016, 4, 1, 00, 00, 00), new DateTime(2016, 4, 10, 00, 00, 00), "Quarter 2");
Appointment appointment4 = new Appointment(new DateTime(2016, 5, 1, 00, 00, 00), new DateTime(2016, 6, 10, 00, 00, 00), "Quarter 2");
Appointment appointment5 = new Appointment(new DateTime(2016, 7, 1, 00, 00, 00), new DateTime(2016, 7, 10, 00, 00, 00), "Quarter 3");
Appointment appointment6 = new Appointment(new DateTime(2016, 8, 1, 00, 00, 00), new DateTime(2016, 8, 10, 00, 00, 00), "Quarter 3");
Appointment appointment7 = new Appointment(new DateTime(2016, 11, 1, 00, 00, 00), new DateTime(2016, 11, 10, 00, 00, 00), "Quarter 4");
Appointment appointment8 = new Appointment(new DateTime(2016, 12, 1, 00, 00, 00), new DateTime(2016, 12, 10, 00, 00, 00), "Quarter 4");

this.radScheduler1.Appointments.Add(appointment);
this.radScheduler1.Appointments.Add(appointment2);
this.radScheduler1.Appointments.Add(appointment3);
this.radScheduler1.Appointments.Add(appointment4);
this.radScheduler1.Appointments.Add(appointment5);
this.radScheduler1.Appointments.Add(appointment6);
this.radScheduler1.Appointments.Add(appointment7);
this.radScheduler1.Appointments.Add(appointment8);

QuarterTimescale qTimeScale = new QuarterTimescale();
qTimeScale.DisplayedCellsCount = 4;
timelineView.SchedulerTimescales.Add(qTimeScale);
this.radScheduler1.GetTimelineView().ShowTimescale(qTimeScale);
}

class QuarterTimescale : MonthTimescale
{
public override int ScalingFactor
{
get
{
return 3;
}
}

public override string Name
{
get
{
return "Quarter";
}
}
}
Hristo
Telerik team
 answered on 18 May 2017
1 answer
152 views

Hi,

I have a very special question.

Need to do this:
The user changes the "RecurrenceRule" of an appointment. Standard is, that the complete appointment series changes - the past, too. I have to identify the selected date of changing the recurrence and change the appointment from this day to all future occurences. Past must be unchanged. How can we get that?

Please see my examples attached.

I want to select Saturday 27th. Open the recurrence edit dialog. Then change the series to one hour later. Save. The result must be the same as in my screenshot. Is that possible?

Thanks for your help.

Sascha

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 May 2017
3 answers
226 views
Rad Scheduler - how to set different appointment different  height in timeline view control. and I am using two different scheduler element provider so,how to maintain every appointment with different height.And also any solution for day duration wise automatically appointment height set using winforms.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 May 2017
6 answers
85 views
Is it possible to add extra button to the GroupPanelElement of a radgridview?
See attached picture.
Hans Heuvelman
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 May 2017
2 answers
142 views

Hello,

I tried to use RadListView to make component just like user preference.

The idea are:

  1. We have dynamic columns to display in a table (RadGridView)
  2. We have a list of user preference for these columns and user can change the position of columns by change the position of user preference

Then in step 2, I tried to use RadListView to display a list of user preference with checkboxes, drag/ drop feature to support these requiredment

But when I open this RadListView, if there are many preferences (one preference is one column) then RadListView have a scrollbar and have padding bottom too long (attachment #1) although it have space to display items. Then I have to scroll down to view.

My question is, how to remove this long padding?

My video to demonstrate is: https://drive.google.com/file/d/0B-bxiBfBubRgSi1PRVRmWUV2YWs/view?usp=sharing

My code are:

private RadListView lvUserPreference = new RadListView();
 
// Styles
lvUserPreference.Dock = System.Windows.Forms.DockStyle.Fill;
lvUserPreference.Margin = new System.Windows.Forms.Padding(0);
lvUserPreference.Name = "lvUserPreference";
lvUserPreference.ListViewElement.DrawBorder = false;
lvUserPreference.ShowCheckBoxes = true;
lvUserPreference.ViewType = ListViewType.ListView;
lvUserPreference.AllowDragDrop = true;
lvUserPreference.Padding = new Padding(20);
lvUserPreference.Margin = Padding.Empty;
lvUserPreference.ItemSpacing = 15;
lvUserPreference.AllowEdit = false;
lvUserPreference.AutoScroll = true;
 
lvUserPreference.ListViewElement.DragDropService.PreviewDragStart -= OnPreviewDragStart;
lvUserPreference.ListViewElement.DragDropService.PreviewDragStart += OnPreviewDragStart;
 
lvUserPreference.ListViewElement.DragDropService.PreviewDragOver -= OnPreviewDragOver;
lvUserPreference.ListViewElement.DragDropService.PreviewDragOver += OnPreviewDragOver;
 
lvUserPreference.ListViewElement.DragDropService.PreviewDragDrop -= OnPreviewDragDrop;
lvUserPreference.ListViewElement.DragDropService.PreviewDragDrop += OnPreviewDragDrop;
 
lvUserPreference.VisualItemFormatting += OnVisualItemFormatting;
 
// Item formatting event
private void OnVisualItemFormatting(object sender, ListViewVisualItemEventArgs e)
{
    e.VisualItem.ToggleElement.Margin = new Padding(10);
    e.VisualItem.BackColor = ComponentSettings.DefaultBorderColor;
    e.VisualItem.GradientStyle = GradientStyles.Solid;
    e.VisualItem.Margin = new Padding(0);
    e.VisualItem.MinSize = new Size(200, 30);
    e.VisualItem.Font = ComponentSettings.DefaultFont;
 
    var itemAttrId = (int)e.VisualItem.Data.Value;
    var field = _fields.FirstOrDefault(x => x.AttrId == itemAttrId);
    if (field != null && (field.IsTreeField || field.IsRequired))
    {
        e.VisualItem.ToggleElement.Enabled = false;
    }
    else
    {
        e.VisualItem.ToggleElement.Enabled = true;
    }
}

 

Regard,

Paul

Paul
Top achievements
Rank 1
 answered on 18 May 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?