Telerik Forums
UI for WinForms Forum
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
189 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
138 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
62 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
194 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
114 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
4 answers
113 views

Hello! I have following code:

this.systemPointsGridView.MasterTemplate.DataSource = this.systemTableBindingSource;
...
this.systemTableBindingSource.DataMember = "SystemTable";
this.systemTableBindingSource.DataSource = this.projectDataSet;
...

projectDataSet is filling somewhere and then in order the results to be displayed
I have to write:
systemTableBindingSource.DataSource = projectDataSet;

So, the question is why do I have to reassign dataset to BindingSource datasource property? I suppose that it should be done automatically, or there should be method that I must call on binding source in order to populate control with data.

It seems that I missed something in databinding mechanism...

Thanks in advance.

Richard Slade
Top achievements
Rank 2
 answered on 16 Feb 2011
8 answers
192 views
Hi, I was wondering if I could add a new button to the footer of a RadCalendar?
Ivan Todorov
Telerik team
 answered on 16 Feb 2011
4 answers
330 views
Hi,

I want to use RadListControl to display the logs of the ongoing large process in background thread. I will be adding hundred thousands of items into the control in main thread.

But to make everything simple, before adding item to the control, I am checking if the item count is more than 100, if it is more than 100 I am removing the top most Item, then only I am adding the new item. After adding I am scrolling the listbox control down to the last item.

This process may run for more than 10 hrs and my application may not respond as it is dealing with too much of items every seconds.

I am looking for most efficeint way to do this as with listboxcontrol after running for about 1 hr application is not able to handle the number of items and not responding.

I am using following code: 

            RadListDataItem newItem = new RadListDataItem(message);
            radListControl1.Items.Add(newItem);
            if (radListControl1.Items.Count > 100)
            {
                radListControl1.Items.RemoveAt(0);              
            }           
            radListControl1.ScrollToItem(newItem);

But if I am using windows listboxcontrol I am able to do without any problem.

            listBox1.Items.Add(message);

            if (listBox1.Items.Count > 100)
            {
                listBox1.Items.RemoveAt(0);               
            }
            listBox1.SelectedIndex = listBox1.Items.Count - 1;
            listBox1.ClearSelected();   

I want to use RadListControl because it can handle html syntax.

Please suggest something on this. I can even switch to another control which supports html code.

regards,

Bibek Dawadi

Ivan Petrov
Telerik team
 answered on 16 Feb 2011
3 answers
219 views
I have a grid with a custom filter, like the sample in Gridview Custom filtering. How can I select the first row in the grid after the custom filter is applied?

I've tried this code, but didn't work:

Private Sub txtBuscar_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtBuscar.TextChanged
        wFirstVisibleRow = -1
        Me.gridArticulos.MasterTemplate.Refresh()
        If wFirstVisibleRow > 0 Then
            Dim wposcode As String = gridArticulos.MasterTemplate.Rows(wFirstVisibleRow).Cells(0).Value.ToString
            If wposcode <> "" Then
                Me.ArticulosSGFBindingSource.Position = Me.ArticulosSGFBindingSource.Find("CODIGO", wposcode)
            End If
        End If
  
    End Sub
  
Private Sub gridArticulos_CustomFiltering(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCustomFilteringEventArgs) Handles gridArticulos.CustomFiltering
        If String.IsNullOrEmpty(Me.txtBuscar.Text) Then
            e.Visible = True
            For i As Integer = 0 To Me.gridArticulos.ColumnCount - 1
                e.Row.Cells(i).Style.Reset()
                e.Row.InvalidateRow()
            Next
            Return
        End If
        e.Visible = False
        For i As Integer = 0 To Me.gridArticulos.ColumnCount - 1
            If i <> 2 Then
                Dim text As String = e.Row.Cells(i).Value.ToString()
                If text.IndexOf(Me.txtBuscar.Text, 0, StringComparison.InvariantCultureIgnoreCase) >= 0 Then
                    e.Visible = True
                    If wFirstVisibleRow = -1 Then
                        wFirstVisibleRow = e.Row.Index
                    End If
                    e.Row.Cells(i).Style.CustomizeFill = True
                    e.Row.Cells(i).Style.DrawFill = True
                    e.Row.Cells(i).Style.BackColor = Color.FromArgb(201, 252, 254)
  
                Else
                    e.Row.Cells(i).Style.Reset()
                    e.Row.InvalidateRow()
                End If
            End If
  
        Next
  
    End Sub

Thanks in advance
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?