Telerik Forums
UI for WinForms Forum
1 answer
138 views
I want to hide top row created by default. How do I do that ?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Jun 2014
1 answer
166 views
Hi!
Is possibile put a radTextField into a RadMessageBoxForm, below MessageText?
Tks.
Maia.
Dimitar
Telerik team
 answered on 19 Jun 2014
2 answers
197 views
I've used RowFormatting event to change text color (in order of checking condition based on Tag of the row):

Private Sub GridView_RowFormatting(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.RowFormattingEventArgs) Handles GridView.RowFormatting
    Dim dataRow As Telerik.WinControls.UI.GridRowElement = e.RowElement
    If dataRow IsNot Nothing Then
        Try
            If dataRow.RowInfo.Tag IsNot Nothing Then
                If Is_Check_Some_Condition(dataRow.RowInfo.Tag) Then
                    dataRow.ResetValue(Telerik.WinControls.UI.LightVisualElement.ForeColorProperty, Telerik.WinControls.ValueResetFlags.Local)
                Else
                    dataRow.ForeColor = Color.Blue
                End If
            End If
        Catch ex As Exception
        End Try
    End If
End Sub

It works fine if version 2013.2.724. But when I changed it to 2014.1.402 - it is not working anymore. I mean, event is fired and dataRow.ForeColor = Color.Blue executed but text color is not changed.

Did I miss something for new version?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Jun 2014
2 answers
131 views
can Setting it? tks.
Stefan
Telerik team
 answered on 18 Jun 2014
3 answers
150 views
I've followed every example I can find and I must be missing something.

When I group, I see scheduler shows the resources in the columns, but there are no appointments. I notice that "ConvertResourceToDataSource" and "ConvertResourceToScheduler" never fire.

This is my code to group by the "LocationID" field:
Private Sub ButtonGroupLocation_Click(sender As System.Object, e As System.EventArgs) Handles ButtonGroupLocation.Click
        Grouped = True
 
        Dim AppointmentMapping As New AppointmentMappingInfo()
        Dim ResourceMapping As New ResourceMappingInfo()
 
        AppointmentMapping.Start = "Start"
        AppointmentMapping.End = "Stop"
        AppointmentMapping.Duration = ""
        AppointmentMapping.Summary = "Summary"
        AppointmentMapping.Description = ""
        AppointmentMapping.Location = "LocationID"
        AppointmentMapping.Visible = ""
        AppointmentMapping.AllDay = ""
        AppointmentMapping.AllowDelete = ""
        AppointmentMapping.AllowEdit = ""
        AppointmentMapping.UniqueId = "ID"
        AppointmentMapping.BackgroundId = "BackgroundID"
        AppointmentMapping.StatusId = "StatusID"
        AppointmentMapping.RecurrenceRule = "RecurrenceRule"
        AppointmentMapping.MasterEventId = ""
        AppointmentMapping.ResourceId = "LocationID"
        AppointmentMapping.RecurrenceId = ""
        AppointmentMapping.Resources = ""
        AppointmentMapping.Exceptions = ""
 
        AppointmentMapping.FindBySchedulerProperty("ResourceId").ConvertToDataSource = AddressOf ConvertResourceToDataSource
        AppointmentMapping.FindBySchedulerProperty("ResourceId").ConvertToScheduler = AddressOf ConvertResourceToScheduler
 
        ResourceMapping.Name = "Name"
        ResourceMapping.Id = "ID"
 
        SchedulerBindingDataSource1.ResourceProvider.Mapping = ResourceMapping
        SchedulerBindingDataSource1.ResourceProvider.DataSource = ExecuSuitePMSDataSet.ActLocations
 
        SchedulerBindingDataSource1.EventProvider.Mapping = AppointmentMapping
        SchedulerBindingDataSource1.EventProvider.DataSource = ExecuSuitePMSDataSet.ActActivitySchedule
 
        RadScheduler1.DataSource = Me.SchedulerBindingDataSource1
 
        RadScheduler1.GroupType = GroupType.Resource
        RadScheduler1.ActiveView.ResourcesPerView = 10
 
    End Sub
Jeff
Top achievements
Rank 1
 answered on 17 Jun 2014
2 answers
211 views
I am creating a RadMenu and in that RadMenu I have a few RadMenuItems. My question is when you hover over it the color changes, but doesn't when I click. Is there any way of messing with these on hover and on click events to change the color for example on the hover, or auto drop down the list onHover?
Neal
Top achievements
Rank 1
 answered on 17 Jun 2014
1 answer
116 views
What DLL or references do I need to have access to RowCount and Rows when using my RadGridView1?
Also GridViewDecimalColumn isn't available.

I'm working in silverlight and I have in me references:

Telerik.Windows.Controls.dll
Telerik.Windows.Controls.Gridview.dll
Telerik.Windows.Controls.Input.dll
Telerik.Windows.Controls.Navigation.dll
Telerik.Windows.Data.dll

Thanks
Nick
Telerik team
 answered on 17 Jun 2014
1 answer
54 views
I have create a dynamic RadGridView and I load the data in the itemsource and add the RadGridView to a stackpanel.
I can see the data and sort it on the grid.
But when i use
foreach (GridViewColumn column in Firstcontrol.RadGridView1.Columns)

I only get the column name and not the data below the column.

Am I missing a binding somewhere?
This is the code where I create the collection and send it to itemsource.

int xxx = 0;
for (int j = 0; j < Rownum; j++) // Load Rows
{
var row = new ObservableCollection<dynamic>();
for (int ii = 0; ii < Colnum; ii++)
{
row.Add(statisticViewModelObect.StatisticCollection[TbCount].Rows.ElementAt(j).GetValue(xxx));
xxx++;
}
statisticCollection.Add(row);
xxx = 0;
}
Firstcontrol.RadGridView1.ItemsSource = statisticCollection;

StackPanel1.Children.Add(Firstcontrol);

//Rigth here is where I try to read the data that has been created on the grid.

foreach (GridViewColumn column in Firstcontrol.RadGridView1.Columns)


This is my xaml.--------------------------


<telerik:RadGridView x:Name="RadGridView1" HorizontalAlignment="Stretch"
ItemsSource="{Binding statisticCollection ,Mode=TwoWay}"
AutoGenerateColumns="False" ShowGroupPanel="False" Height="250"
VerticalAlignment="Top" IsReadOnly="True" CanUserSortColumns ="true" >
</telerik:RadGridView>

Nick
Telerik team
 answered on 17 Jun 2014
1 answer
159 views

Hi, I'm trying to use the autocomplete feature to populate a dropdownlist with permit numbers from a database.  I'm using the Winforms controls and Visual Studio.  Instead of permit numbers appearing in the list I keep getting the following string:  "System.Data.Common.DataRecordInternal"  Here is the code I'm using to pull the data:

 Private Sub txtProjectNumber_TextChanged(sender As Object, e As EventArgs) Handles txtProjectNumber.TextChanged
        If txtProjectNumber.Text.Length >= 7 Then
            
            Dim SQLConnect As New SQLite.SQLiteConnection
            Dim SQLCommand As New SQLite.SQLiteCommand
            Dim SQLReader As SQLite.SQLiteDataReader = Nothing
            Dim strSQL As String = ""

            SQLConnect.ConnectionString = DataAccess.sqliteConnString
            SQLConnect.Open()
            SQLCommand = SQLConnect.CreateCommand

            Dim autoCompleteProjectNumber As New AutoCompleteStringCollection
         
            strSQL = "select distinct JobSiteNo from Projects "
            strSQL = strSQL & "where  modulename NOT in ('clrkdata','licndata' ,'stckdata')  "
            strSQL = strSQL & "and placenameprefix = '" & CommonCalls.GetCurrentPNP & "' "
            strSQL = strSQL & "and JobSiteNo not like 'BHP%' "
            strSQL = strSQL & "and JobSiteNo like " & MakeSafeSQL(txtProjectNumber.Text, True) & " "
            strSQL = strSQL & "order by JobSiteNo"
            SQLCommand.CommandType = CommandType.Text
            SQLCommand.CommandText = strSQL

            SQLReader = SQLCommand.ExecuteReader()
    
            txtProjectNumber.DataSource = SQLReader
            
            
            txtProjectNumber.AutoCompleteMode = AutoCompleteMode.Suggest
            txtProjectNumber.AutoCompleteDataSource = autoCompleteProjectNumber
            SQLConnect.Close()
        End If
    End Sub

Does anyone know what I'm doing wrong here?  I've checked bunch of forums but the fixes I've found don't work.

Thanks in Advance!!

George
Telerik team
 answered on 17 Jun 2014
1 answer
127 views
Hi,
there is a way to programmatically unbind a radchart control from a radpivotgrid ?
I've try to set the chart DataSource to null but seems that is not working.
Thank you.
Dimitar
Telerik team
 answered on 17 Jun 2014
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?