Telerik Forums
UI for WinForms Forum
2 answers
138 views
I'm trying to populate the right site of the start menu on the rad ribbon bar with recently access documents. I see how I can load items into there, but how do I handle the events for the clicks if they are being added at run time? Here is my code for adding an item:

 

 

Dim Item As New Telerik.WinControls.UI.RadMenuItem

 

Item.Name =

 

"TestItem"

 

Item.Text =

 

"This is a test menu item"

 

RadRibbonBar1.StartMenuRightColumnItems.Add(Item)


So now how do I programaticly handle the click even for that menu item? Usually I add a click handler through the visual studio IDE for items that already exist... Any help would be appreciated!

Stefan
Telerik team
 answered on 23 Sep 2010
3 answers
257 views
Hello,

I was wondering if there are any examples of how to list recently opened documents by my app in the ribbon menu?  I am using C# .net 3.5.

Thanks,
Dave
Peter
Telerik team
 answered on 23 Sep 2010
1 answer
53 views
I'm new to Telerik controls. Two days back only I dowmloaded the control. I'm trying to create the report
I'm calling the Stored Procedure which will retrun Status Desc and the count
(Completed - 2 , Pending - 3 Inprocess - 5 Submitted - 10) I need to create the Chart to give overview of the status.

Dim

 

cmdSQL As SqlCommand = New SqlCommand("ExecutiveReportOverView", sqlcon)

 

cmdSQL.CommandType = CommandType.StoredProcedure

cmdSQL.Connection.Open()

 

Dim da As SqlDataAdapter = New SqlDataAdapter(cmdSQL)

 

 

Dim ds As DataSet

 

ds =

New DataSet

 

da.Fill(ds)

I tried the Following Statements for RadChart it doesn't work.

 

RadChart1.DataManager.DataSource = ds

RadChart1.DataManager.DataBind()

What should I do to get the values in the chart?

Thanks

Ves
Telerik team
 answered on 23 Sep 2010
4 answers
224 views
Hi, 

I need to change the font colour of a cell value when I don't have access to CellElement (I understand that in the new version of the grid, this is a problem)

Is it possible to apply conditional formatting to a column based on the value of a different column?

For example: 
If in Row 1, the value of Cell X = 123 then add a conditional formatting object to Cell Y

Thanks
Richard
Richard Slade
Top achievements
Rank 2
 answered on 23 Sep 2010
3 answers
152 views
We are trying to bind 100K records with 300 columns to GridView. First time the Data is loaded fine. For the second time we get the out of MemoryException. I am Binding the grid with dataset. Please advise.

Any help is appreciated!!!
Jack
Telerik team
 answered on 23 Sep 2010
4 answers
238 views
Hey guys,

Not sure if this is a bug or if I'm just doing something wrong.

I'm using a multiColumnComboBox with AutoFilter set to true.
  1. Open the drop-down box (optional, see 3)
  2. Type some text into the box.
  3. Open the drop-down box (optiona, either 1 or 3 is same)
  4. Select an entry with mouse or keyboard - same effect
  5. Try to type new text into the box.

After step 5, my box is looking up for each individual character I type, and selecting the first entry on each return..

After step 5, if I open the box first and then type, the box will select and close after I hit a single character. 

After step 5, if I hit the semicolon, no character will appear in the box - but the fiddly behaviour goes back to normal.

Not sure if this is to do with my code or not. Here's the section where I bind to the multiColumn:

        internal void FillDropDowns(bool bRefill) 
        { 
            string sSuburbText = this.mcboSuburb.Text; 
            // string sTownText = this.cboTown.Text; 
 
            if (bRefill) 
            { 
                this.LocationsSentTo.Clear(); 
                this.LocationsSentToTableAdapter.Fill(this.DataSet, "LocationsSentTo"); 
            } 
 
            this.mcboSuburb.DataSource = this.LocationsSentTo; // This is a wrapper property around the DataSet table referred to above. 
            this.mcboSuburb.DisplayMember = "postCode_prefix"
            this.mcboSuburb.ValueMember = "postCode"
 
            RadGridView gridView = this.mcboSuburb.MultiColumnComboBoxElement.EditorControl; 
 
            GridViewDataColumn prefixColumn = gridView.Columns["postCode_prefix"]; 
            prefixColumn.HeaderText = "Suburb"
            prefixColumn.Index = 0; 
            prefixColumn.BestFit(); 
 
            GridViewDataColumn postCodeColumn = gridView.Columns["postCode"]; 
            postCodeColumn.HeaderText = "PostCode"
            postCodeColumn.Index = 1; 
            postCodeColumn.BestFit(); 
 
            GridViewDataColumn sentToColumn = gridView.Columns["sentTo"]; 
            sentToColumn.HeaderText = "SentTo (D)"
            sentToColumn.Index = 2; 
            sentToColumn.IsVisible = Program.DebugMode; 
            sentToColumn.BestFit(); 
 
            GridViewDataColumn siteIdColumn = gridView.Columns["siteId_fk"]; 
            siteIdColumn.HeaderText = "Site ID (D)"
            siteIdColumn.Index = 3; 
            siteIdColumn.IsVisible = Program.DebugMode; 
            siteIdColumn.BestFit(); 
 
            if (this.mcboSuburb.EditorControl.MasterGridViewTemplate.FilterExpressions[this.mcboSuburb.DisplayMember] == null
            { 
                FilterExpression filter = new FilterExpression( 
                    this.mcboSuburb.DisplayMember, FilterExpression.BinaryOperation.AND, 
                    GridKnownFunction.Contains, GridFilterCellElement.ParameterName); 
 
                filter.Parameters.Add(GridFilterCellElement.ParameterName, true); 
 
                this.mcboSuburb.EditorControl.MasterGridViewTemplate.FilterExpressions.Add(filter); 
            } 
 
            this.mcboSuburb.SelectedItem = null
            this.mcboSuburb.Text = sSuburbText; 
        } 

Note that the FillDropDowns is not being called by any events while the typing or opening is taking place.
Jack
Telerik team
 answered on 23 Sep 2010
1 answer
73 views
Hi,

I have a label updating a value from a plc, sometimes the formatting of this radLabel seems to get lost and it will only show 3 out of 6 numbers.

It is alligned MiddleRight.

Is there a kind of Telerik log showing if something went wrong with formatting and other Telerik controls??
Peter
Telerik team
 answered on 23 Sep 2010
1 answer
161 views
Hello everybody,

can anybody tell me if it is possible (and if how) to use windows default spellchecking feature?

Below there is a complete codesippit how to accomplish this with a standard control. In this sample a textBox will be added on Form1.vb. I want to do exactly the same with a radTextBox. Type some missspelled text an you will see the spellCheck feature.

Thanks for answering.
Mat

###

'Reference:
'          PresentationCore.dll
'          PresentationFramework.dll
'          WindowsFormsIntegration.dll
'          WindowsBase.dll


Imports System.Windows.Forms.Integration


Public Class Form1

    Private WithEvents txt As New MySpellCheck

    Public Sub New()
        InitializeComponent()

        Me.Controls.Add(txt.ElementHost)

    End Sub

End Class


Public Class MySpellCheck
    Inherits System.Windows.Controls.TextBox


    Public Sub New()
        Dim eh As ElementHost = New ElementHost
        System.Windows.Controls.SpellCheck.SetIsEnabled(Me, True)
        With eh
            .Child = Me
        End With
        Me.ElementHost = eh
    End Sub


    Private _elementhost As ElementHost
    Public Property ElementHost() As ElementHost
        Get
            Return Me._elementhost
        End Get
        Set(ByVal value As ElementHost)
            Me._elementhost = value
        End Set
    End Property

End Class
Jack
Telerik team
 answered on 23 Sep 2010
1 answer
120 views

When populating a schedule with appointments from my database, i want to have the appointments automatically have their resources (people) assigned.  How does this work?  Am I to assign the ResourceID of the AppointmentMappingInfo object the resource ID from my database?  I am using a business object for my appointments and populating the Resources collection of the RadScheduler manually with the resource name and ID.

What are the options of getting the appointments and resources to be related to each other so when the schedule is displayed, the resource drop down in the Edit Appointments Dialog is assigned the resource?  Also, when viewing the schedule in resource grouping mode, the resources are assigned to their appointments.  

Me.RadScheduler1.AppointmentFactory = New CustomAppointmentFactory

 

 

 

 

dataSource.EventProvider.AppointmentFactory = RadScheduler1.AppointmentFactory

 

 

 

Dim appointmentMappingInfo As New AppointmentMappingInfo()

 

appointmentMappingInfo.Start =

 

"Start"

 

 

 

 

appointmentMappingInfo.[End] = "End"

 

 

 

 

appointmentMappingInfo.Summary = "Subject"

 

 

 

 

appointmentMappingInfo.Description = "Description"

 

 

 

 

appointmentMappingInfo.Location = "Location"

 

 

 

 

appointmentMappingInfo.UniqueId = "Id"

 

 

 

 

appointmentMappingInfo.Exceptions = "Exceptions"

 

 

 

 

appointmentMappingInfo.ResourceId = "EmpID"

 

 

 

 

dataSource.EventProvider.Mapping = appointmentMappingInfo

 

 

 

' assign the generic List of MyAppointment as the EventProvider data source

 

 

 

 

dataSource.EventProvider.DataSource = appointments

 

 

 

Me.RadScheduler1.DataSource = dataSource

 

Dobry Zranchev
Telerik team
 answered on 23 Sep 2010
4 answers
200 views

Hi,

In the DateTimePicker I'm looking for an event which happens when a user changes the date (by mouse or keyboard) but not when a date is set- (for example:  DateTimePicker1.Value=DateTime.Now)

In other controls I found events or properties which supported this scenario, but in this case I couldn't find.

 

Thanks

Dobry Zranchev
Telerik team
 answered on 23 Sep 2010
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
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?