Telerik Forums
UI for WinForms Forum
3 answers
174 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
274 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
142 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
69 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
192 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
158 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
1 answer
122 views
Hi,

I am using GridView control to display data in a nested grid view format. I am loading data dynamically as shown in 'Load On Demand' sample for GridView control. I need to display the data in nested grid view format and for that I am creating a child template and adding it to 'Templates' collection in RowSourceNeeded event handler. Upt o this point, everything works fine.

The problem I am facing is I need to display a checkbox column only at the leaf level in the nested grid. And the leaf node can appear at different level for each parent node. For e.g. node 1 can have just 1 child which is leaf as well. Node 2 can have 1 child which further has 1 child [grandchild], which is the leaf node.

If I add GridViewCheckBoxColumn into child template, it gets displayed for all the nested grids, which is not required.

Can you please advise me how to display checkbox column only for the leaf nodes in all the nested grids in GridView control.

Thanks.
Dimitar
Telerik team
 answered on 16 Jun 2014
1 answer
120 views
Hi, Is it possible to not expand the panel when I create it at runtime ?  If I set the property "isExpanded" to false after adding to my controls (me.controls.add(collapsiblepanel)) I see the panel closing when the form is loading....

Thanks !
George
Telerik team
 answered on 16 Jun 2014
2 answers
184 views
Hi,
I'm trying to find out how to get the tooltip to display when the mouse is over the main part of the control. With:

ToolTip1.SetToolTip(RTPExpiresOn, "Leaving this as 1/1/1901 will set no expiration date for this document.")

The tooltip will on display when the mouse hovers over the part of the control where you click to select the date. Thanks!

J
Jeffrey
Top achievements
Rank 1
 answered on 16 Jun 2014
3 answers
246 views
Hello.

Can you help me with an example of databinding GanttViewDataItem to not radproperty. like textbox.Text property?

Thank you.
Dimitar
Telerik team
 answered on 16 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)
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
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
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?