Telerik Forums
UI for WinForms Forum
3 answers
304 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
66 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
256 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
179 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
267 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
98 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
192 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
155 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
244 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
2 answers
148 views
Hi there,

I have just upgraded my application to the latest version and discovered a weird bug with the GridView_CellFormatting event.

The previous version was trying to format the colors of the current cell depending on the value of another cell in the same row.

To simplify this behaviour, we can just look at 3 columns in a grid. Column 1: ID, Column 2: Name, Column 3: Status

If the status is True, Column 1's colour would be Blue and if the status is False, then column 1's colour would be Red.

in the previous version, the code was working fine..but with the new version, it seems that the Name column would also be affected.

and everytime the grid is refreshed through some random action e.g. moving of scrollbars, the name column's forecolor would change randomly..to either Red or Blue when those colours should only be affecting column 1.

private void gvDocuments_CellFormatting(object sender, CellFormattingEventArgs e)
        {
            
                if (e.CellElement.RowIndex >= 0)
                {
                    GridViewColumn col = e.CellElement.ColumnInfo as GridViewColumn;
                    GridViewRowInfo row = e.CellElement.RowInfo;
                     
                    string fieldName = col.Name;
                    if (fieldName == "Id")
                    {
                        if (row.Cells["Status"].Value.ToString() == "T")
                        {
 
                            e.CellElement.ForeColor = Color.Blue;
                            e.CellElement.Font = font;
                        }
                        else
                        {
                            e.CellElement.ForeColor = Color.Red;
                            e.CellElement.Font = font;
                        }
                    }    
                }
          }

P.s. I think The #2 example in http://www.telerik.com/help/winforms/formatting_cells.html is wrong... RowInfo.Cells[ColumnName] does not contain the CellElement property.

e.CellElement.RowInfo.Cells["column1"].CellElement.ForeColor
Jack
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)
Form
Chart (obsolete as of Q1 2013)
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
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?