Telerik Forums
UI for WinForms Forum
3 answers
245 views
Hi,

I am looking at creating the columns dynamically and one of the column should be link column. How do we create link button type column in rad grid view? Please help.
Nikolay
Telerik team
 answered on 15 Dec 2011
5 answers
85 views
I am doing a schedule and found the next problem with the control RadDateTimePicker when i press the key suppress in the keyboard and then i go back to the control and try to choose the number 12, its doesn't work or i can't see the number 12 and of fact i checked the telerik Demo and found the same..

do you know if its is a problem with the control..or what i can do in this case?

Thanks for your Help.

Peter
Telerik team
 answered on 14 Dec 2011
2 answers
116 views

Has anyone here managed to upgrade a RadTabStrip to a RadPageView?


Jack
Telerik team
 answered on 13 Dec 2011
1 answer
410 views
I know it's an unusual situation, but I have a case where I'm adding the items to the context menu's items collection in code... I build the context menu when the form loads. When I call the .show method, it works fine when there are not many items in the .items collection... maybe >20. In many cases, I have 100+ and it effectivly does not work.... minutes later, the context menu finally pops.

I replaced the control w/ the free one that ships from Microsoft and it works fine with no other changes to the code.

In the form's load event....
cm = new RadContextMenu();
foreach (string g in groups)
      {
          RadMenuItem mnu = new RadMenuItem();
          mnu.Text = g;
          mnu.Click += new EventHandler(cmclick);
          cm.Items.Add(mnu);
      }

showing the context menu...
cm.Show(radChart1, new Point(0, 0));
Jack
Telerik team
 answered on 13 Dec 2011
1 answer
122 views
Hi

Is there a way to capture a mouse event on a tilegroupelement ? I have tried the obvious but it doesn't fire any events that I could see.

Thanks in advance for any help.


Regards


Paul.
Ivan Todorov
Telerik team
 answered on 13 Dec 2011
1 answer
114 views
Hi ALL,
    I want to impliment search to radscheduler and
OPEN the Appointment that the text is in how to do?
                                              Any Help Apperciated!
                                                         Jeff Link

   
Private Sub RadButton3_Click(sender As System.Object, e As System.EventArgs) Handles RadButton3.Click
        If RadTextBox.Text = "" Then
            MessageBoxEx.ButtonsDividerVisible = False
            MessageBoxEx.Show("Please Enter some text to search for!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Warning)
        Else
            FindAppointment()
        End If
 
    End Sub
 
    Private Sub FindAppointment()
 
 
        For Each app As Appointment In Me.RadScheduler1.Appointments
 
 
            If app.Subject.Contains(Me.RadTextBox.Text) Or app.Location.Contains(Me.RadTextBox.Text) Or app.Description.Contains(Me.RadTextBox.Text) Then
 
                Me.RadScheduler1.ActiveView.StartDate = app.Start
 
                Me.RadScheduler1.SchedulerElement.InvalidateMeasure(True)
 
                SchedulerUIHelper.SelectAppointment(Me.RadScheduler1, app, True)
 
                Exit For
 
            End If
        Next
    End Sub
          
Ivan Todorov
Telerik team
 answered on 13 Dec 2011
1 answer
115 views

Hello!

I've been wanting to implement a copy function for appointments but I can't get it quite right.

The idea is simple, you have a form with a scheduler, which views multiple resources. When you start dragging and keep the control key pressed, you don't actually move the appointment but you copy it.

My code looks like this:

void rdSchedule_AppointmentDropping(object sender, AppointmentMovingEventArgs e)
        {
            if (ModifierKeys == Keys.Control)
            {
                if (e.Appointment is AmfAppointment)
                {
                    AmfAppointment copiedAppointment = ((AmfAppointment)e.Appointment).Copy();
                    copiedAppointment.Start = e.NewDate;
                      
                    this.rdSchedule.Appointments.Add(copiedAppointment);
                    e.Cancel = true;
                }
            }
        }

rdSchedule is the Scheduler control.

AmfAppointment is my own inheritance of an Appointment and Copy() is a function to duplicate the Appointment.

This only (seems to, still some bugs to work out) work for copying an appointment to the same resources.

When dragging the appointment to another resource nothing happens.

Also; the AppointmentMovingEventArgs has a NewDate but no NewResource (i.e.)? And the e.Appointment.ResourceId is the old ResourceId so I can't get it from there either.


What is the right approach here? And if so how can I make this work for copying between different resources as well?

Thank you!

Ivan Todorov
Telerik team
 answered on 13 Dec 2011
1 answer
107 views
Hi, this is my second post about this since my first was not answered and then I guess removed.

I am using MS Visual Studio Professional.  The code is ASP.net.  I am using Telerik's RadGrid (latest versions I assume, I don't know how to tell..)

I am trying to add a Required validation to a bound Drop Down Box in the RadGrid.  I am thinking my problem is a syntax issue because I can get it to work for a regular text box, but the dropdown box just does not work.

This is the code I use for the textbox which works (trying to use the code block format):
    Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated
 
 
        If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then
 
 
            Dim item As GridEditableItem = TryCast(e.Item, GridEditableItem)
            Dim editor As GridTextBoxColumnEditor = DirectCast(item.EditManager.GetColumnEditor("CurrencyTarget_NativeCurrent"), GridTextBoxColumnEditor)
            Dim cell As TableCell = DirectCast(editor.TextBoxControl.Parent, TableCell)
            Dim validator As New CompareValidator ' RequiredFieldValidator()
 
 
            editor.TextBoxControl.ID = "NCReqValidator"
            validator.ControlToValidate = editor.TextBoxControl.ID
            validator.Operator = ValidationCompareOperator.GreaterThanEqual
            validator.ValueToCompare = "0"
            validator.ErrorMessage = "* Native Current is a required field"
            cell.Controls.Add(validator)
 
        End If
End Sub


But when I add the same code for a drop down box, it does not work:
Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated
 
 
    If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then
        Dim item2 As GridEditableItem = TryCast(e.Item, GridEditableItem)
        Dim editor2 As GridDropDownListColumnEditor = DirectCast(item2.EditManager.GetColumnEditor("ddCountryCode"), GridDropDownListColumnEditor)
        Dim cell2 As TableCell = DirectCast(editor2.DropDownListControl.Parent, TableCell)
        Dim validator2 As New CompareValidator ' RequiredFieldValidator()
 
        editor2.DropDownListControl.ID = "CCReqValidator"
        validator2.ControlToValidate = editor2.DropDownListControl.ID
        validator2.Operator = ValidationCompareOperator.NotEqual
        validator2.ValueToCompare = "XXX"
        validator2.ErrorMessage = "* Country Code is a required field"
        cell2.Controls.Add(validator2)
 
    End If
 
 
End Sub


Milena
Telerik team
 answered on 13 Dec 2011
5 answers
109 views
Hello,

I was going through the course documentation and searched through the forums a bit but can't find anything telling how to do basic cell manipulation of the radgrid (which means I probably overlooked something or this is so basic, it's not covered).  

So, if in vb.net I wanted to move something from column 1 row 4 to column 2 row 5 of a grid we'll call "VoltageGrid", is there an easy command to do that?  Do I have to give each cell a unique name in order to do this?  I know in basic gridview (the standard grid), it would look like this:

VoltageGrid.Rows.Item(2).Cells(5).Value = VoltageGrid.Rows.Item(1).Cells(4).Value

Could someone let me know a) how to do this and b) where I can find this info so I don't have to bug anyone with basics of these grids?  I can go back to using just the standard vb.net but it sounds like there are a lot of good features in telerik's grid.  I just need to learn how to use them.  Thanks!

-Jay
Nikolay
Telerik team
 answered on 13 Dec 2011
4 answers
132 views
Is it possible to have the timeline on top and resources on the left?
Ivan Todorov
Telerik team
 answered on 13 Dec 2011
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
ProgressBar
CheckedDropDownList
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?