Telerik Forums
UI for WinForms Forum
2 answers
370 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
186 views
Hi all,

Is it possible to synchronize the RadScheduler with MS Exchange?

Dobry Zranchev
Telerik team
 answered on 17 Feb 2011
5 answers
220 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
266 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.1K+ 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
234 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
157 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
106 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
3 answers
252 views
I'm getting an error when I try to access a grid cell value, which has no value. I tried using the trycast function, but that didn't work.  Here is my code below.   When the code runs and there's a value the message box show without problem, but if there's no value in the cell I get an error (see attached file).   The grid is loaded from the a sub call (see below)  Need to know how to handle this situation.

Thanks,
Tom

  Private Sub grdIssued_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles grdIssued.Click
        Dim i As Integer

        If grdIssued.SelectedRows.Count > 0 Then
            '   Dim ReturnDate As String = TryCast(Me.grdIssued.Rows(Me.grdIssued.CurrentRow.Index).Cells(5).Value, String)
            MsgBox(Me.grdIssued.Rows(Me.grdIssued.CurrentRow.Index).Cells(5).Value)
        End If
        i = grdIssued.CurrentRow.Index
        clsPPE.PPEID = grdIssued.Rows(i).Cells(0).Value
    End Sub

  Private Sub LoadPPEIssuedGrid()
        Dim da As SqlDataAdapter
        Dim dt As New DataTable

        clsPPE.SelectedMemberID = Me.cboMember.SelectedValue
        da = clsPPE.GetPPEIssuedByMemberID
        da.Fill(dt)
        Me.grdIssued.DataSource = dt
        Me.grdIssued.Columns(0).IsVisible = False
        Me.grdIssued.Columns(1).Width = 100
        Me.grdIssued.Columns(2).Width = 100
        Me.grdIssued.Columns(3).Width = 100
        Me.grdIssued.Columns(4).Width = 90
        Me.grdIssued.Columns(4).FormatString = "{0: M/d/yyyy}"
        Me.grdIssued.Columns(5).Width = 90
        Me.grdIssued.Columns(5).FormatString = "{0: M/d/yyyy}"
        Me.grdIssued.CurrentRow = Nothing

    End Sub
Richard Slade
Top achievements
Rank 2
 answered on 16 Feb 2011
2 answers
162 views
Hello,

Recently I needed to hide the column that represents the slider's records RadGridView (leftmost column of the GridView) to all appearances, it was enough to indicate "AllowColumnChooser" as "false ".

But even setting the value of "AllowColumnChooser" as "false", the selector of records continued to appear.

I also realized through the method attempts ".HideColumnChooser()" and neither worked.

Finally I found it was necessary to set the property value "ShowRowHeaderColumn" to "false" to get the picker does not display records.

Questions:
1. What is the purpose of property "AllowColumnChooser" and method ".HideColumnChooser()"?
2. What is the explanation for me to use the property "ShowRowHeaderColumn" and the result is to hide the column chooser?

Control and Package Version:
* RadGridView
* Telerik WinForms VSExtensions 2010.03.1214.0
* Telerik RadControls for WinForms
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)
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?