Telerik Forums
UI for WinForms Forum
1 answer
82 views
I am implementing telerik's radschedular and loading resources in it with grouping functionality.
i have multiple docotrs and i want to distingvished their data by different colors.

Is there any mapping field for colors in ResourceMappingInfo class to map colors from resources object
for better understanding i m attaching some part of my code over here


        For i As Integer = 0 To resourceNames.Length - 1
            Resources.Add(New PanaceaBuisnessLayer.AppointmentResource(resourceNames(i), i + 1))
            Resources(0).Color = Color.Black
   Resources(1).Color = Color.Red
        Next i

        Dim resourceMappingInfo As New ResourceMappingInfo()
        resourceMappingInfo.Id = "Id"
        resourceMappingInfo.Name = "Name"
resourceMappingInfo.Color= ??????

        dataSource.ResourceProvider.Mapping = resourceMappingInfo
        dataSource.ResourceProvider.DataSource = Resources

        RadSchdAppView.GroupType = GroupType.Resource
        RadSchdAppView.DataSource = dataSource
Dobry Zranchev
Telerik team
 answered on 17 Feb 2011
5 answers
191 views
Hello,

I come to you because I meet a special behavior with the Pageview with viewMode set at Explorer bar.

This code resize the pageview at the loading of the form in order to have no scroll and autosize the pageview following pages extanted or not
The main aim is to stop the number of extanded pages at 2. If 2 are extanded and you extand one more, it's cancelled.

I've uploaded an example solution on a private ftp. Please take it there:

Solution

Simply launch it, extand the first page, the second, then the 3rd.
You'll see the pages are displayed in a weird way, and this is occurring only if you cancel on the last Page.
(wrongDisplay.jpg attached)
if you collapse all, and extand 1, 3 then 2, 2 is correctly stopped and display is good. (goodDisplay.jpg attached)

Do you have any workaround for that? because it's really important in my application and tons of users are meeting this behavior.

Thanks a lot for your lights

Regards
Alexander
Telerik team
 answered on 17 Feb 2011
2 answers
267 views
Hello!

Here is a peice of code that allows us to add a Button in a TextEdit:

private void SetupSpecialControls() {
    RadButtonElement buttonElement = new RadButtonElement("...");
    buttonElement.Click += buttonElement_Click;
 
    RadTextBoxItem textBoxItem = Text_Update_BI_BatchNo.TextBoxElement.TextBoxItem;
    textBoxItem.Alignment = ContentAlignment.MiddleLeft;
 
    Text_Update_BI_BatchNo.TextBoxElement.Children.Remove(textBoxItem);
 
    DockLayoutPanel.SetDock(textBoxItem, Telerik.WinControls.Layouts.Dock.Left);
    DockLayoutPanel.SetDock(buttonElement, Telerik.WinControls.Layouts.Dock.Right);
 
    DockLayoutPanel dockLayoutPanel = new DockLayoutPanel();
 
    dockLayoutPanel.Children.Add(buttonElement);
    dockLayoutPanel.Children.Add(textBoxItem);
 
    Text_Update_BI_BatchNo.TextBoxElement.Children.Add(dockLayoutPanel);
 
  }

Now, I need to add a button next to the drop-down-arrow-button in a DropDownList control
Peter
Telerik team
 answered on 17 Feb 2011
5 answers
126 views
Hi all,

Is it possible to synchronize the RadScheduler with MS Exchange?

Dobry Zranchev
Telerik team
 answered on 17 Feb 2011
5 answers
142 views
I am using Telerik RadTreeView. I have 2 treeviews on my page. I want to assign the checked nodes from the first Treeview to a Node in the Second TreeView. I dont get a event that will capture the 2nd treeview's node i.e the node that we want to drop onto. Some sample code will be useful.

Thanks in Advance.
Dobry Zranchev
Telerik team
 answered on 17 Feb 2011
5 answers
226 views
I noticed a few issues with the DropDownList control. 

1) When using HTML, if the DropDownList's DropDownStyle is set to DropDown, the HTML source is displayed as the text. See the attached screenshot for an example of this.

2) When using autocomplete, I cannot get the autocomplete to work on part of the item (the first part is a number) and have it select the item appropriately based on the value. It doesn't seem like it works. Again, see the second screenshot. Here's a code snippet:

Public Class Form1
    Private Sub Form1_Load() Handles Me.Load
        Dim x As New ItemModel
        RadDropDownList1.DataSource = x.ListItems
        RadDropDownList1.ValueMember = "ItemNumber"
        RadDropDownList1.AutoCompleteMode = AutoCompleteMode.SuggestAppend
        RadDropDownList1.AutoCompleteValueMember = "ItemNumber"
    End Sub
  
    Private Sub radDropDownList1_ItemDataBound(ByVal sender As Object, ByVal args As Telerik.WinControls.UI.ListItemDataBoundEventArgs) Handles RadDropDownList1.ItemDataBound
        Dim view As DataRowView = CType(args.NewItem.DataBoundItem, DataRowView)
        args.NewItem.Text = "<html><b>" & view("ItemNumber") & " • " & view("ItemName") & "</b><br/>" & view("Description") & "</html>"
        args.NewItem.Height = 40
    End Sub
  
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        MessageBox.Show(RadDropDownList1.SelectedValue)
    End Sub
End Class

Nikolay
Telerik team
 answered on 17 Feb 2011
12 answers
1.0K+ views
Hi,

Is it possible to change the deafult arrow icon used to navigate in the hierarchical structure in RadGridView winform control?

Regards,
Reshu

min
Top achievements
Rank 1
 answered on 17 Feb 2011
1 answer
178 views
Hi,

The current display format for an appointment on scheduler is  appointment time and appointment subject,
eg:  10:00 am - 10:30 am  test

How can we make it display what we want to display for a custom appointment? 
eg: patientName

Thanks,
Burhan Eyimaya
Richard Slade
Top achievements
Rank 2
 answered on 17 Feb 2011
2 answers
127 views

Hello

I have three tables(Person, Phones, Type). I attached a picture for these tables and relationships.

I want to show the Person table as Parent grid and the Phones table as a Child grid in radGridView and I want to show the Phone Types in a combobox column in child grid too. So I Binded the child grid to the Phones table and added a ComboboxColumn to the child grid then binding it (Combobox Column) to the Type  table.

There is no trouble with it while Inserting a new row but When it loads the data form database it does not show the Phone Type I Selected before.

How can I load data and show the PhoneType Selected (and saved in database)?

I hope you can get me

Regards

hosein
Top achievements
Rank 1
 answered on 16 Feb 2011
4 answers
58 views
Hi

This is a piece of code we have:

private

 

void radGridView1_GroupByChanged(object sender, GridViewCollectionChangedEventArgs e)

 

 

{

 

radGridView1.ShowGroupPanel = radGridView1.Groups.Count > 0;

 

}

 

 

this

 

 

.radGridView1.GroupByChanged += new Telerik.WinControls.UI.GridViewCollectionChangedEventHandler(this.radGridView1_GroupByChanged);

 


It works propely if gris something in it, but does not on empty grid.

Thank you
Lily

Richard Slade
Top achievements
Rank 2
 answered on 16 Feb 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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
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
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
NavigationView
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?