Telerik Forums
UI for WinForms Forum
5 answers
195 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
275 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
132 views
Hi all,

Is it possible to synchronize the RadScheduler with MS Exchange?

Dobry Zranchev
Telerik team
 answered on 17 Feb 2011
5 answers
149 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
233 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
185 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
133 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
59 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
188 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
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
CheckedDropDownList
ProgressBar
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?