Telerik Forums
UI for WinForms Forum
3 answers
325 views
Hi,

I work in public safety and building fast applications is critical. We have to rebuild a VB6 application in .NET, and we want to use Telerik to do so. However, while trying the RadDock control, I found that it is not really fast, and not efficient at all. I have to load a couple of tool windows, containing labels textboxes, comboboxes and sometimes gridviews, 

 Maybe I'm not using the proper controls, but I want you guys to have a look at it, and explain to me why it is so slow, and how could I improve the performances.

The control I'm loading in the ToolWindow is a RadForm. Here is the call opening the ToolWindow : 

private void radMenuItem2_Click(object sender, EventArgs e)
      {
          RadForm1 form = new RadForm1();
 
 
          radDock1.DockControl(form, Telerik.WinControls.UI.Docking.DockPosition.Left, Telerik.WinControls.UI.Docking.DockType.ToolWindow);
      }


It takes about 3-4 seconds to load.
My biggest concern is that the app is already very slow, and there is not even a single data fetched and display in the form...


Thanks a lot for your help! 
Julian Benkov
Telerik team
 answered on 01 Sep 2011
4 answers
172 views
Hi,
i want a special display of my selecteditem.
I don't speak english very well so i took a screenshot of what i have, and a second of what i want.
I only want to change the state of the selecteditem, i want to keep the orginal state when i click arrow to change the element.
OD
Top achievements
Rank 1
 answered on 01 Sep 2011
4 answers
158 views
Hi All,

       I have a grid with large number of records and child rows attached. If I scroll down to even one page and chagne the value of a child row's cell, as soon as i leave the cell scroll bar goes back to the top which is causing hard time because you have to scroll down again and find the record to update other cells. 

       I have tested with another project as soon as we execute 'e.Row.ViewTemplate.Refresh(); ' it took the scroll bar back to top I have tried other functions too but problem persist. It is a bug in Q2 2011?

Thanks
Alexander
Telerik team
 answered on 01 Sep 2011
1 answer
310 views
How conditions have to exist that ScrollControlIntoView work?

I've set AutoScroll = true for radTreeViewControl and I call :

       tn  - is a found node

    DirectoryRadTreeView.SelectedNode = tn;
    DirectoryRadTreeView.BringIntoView(tn);
    DirectoryRadTreeView.ScrollControlIntoView(DirectoryRadTreeView);
Ivan Petrov
Telerik team
 answered on 01 Sep 2011
4 answers
208 views
I'm trying to use the mouse click event on a RadMaskedEditBox, however nothing fires. Is this a bug?

thanks,

Bret
Ivan Petrov
Telerik team
 answered on 01 Sep 2011
4 answers
280 views
Hi I was using the following with a standard listBox

Private Sub RadListControl1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.Data.PositionChangedEventArgs) Handles RadListControl1.SelectedIndexChanged
        If RadListControl1.SelectedIndex > -1 Then
            Dim tenants As Tenant = RadListControl1.SelectedItem
 
            RadTextBox5.Text = tenants.ID
            RadTextBox6.Text = tenants.FirstName
            RadTextBox7.Text = tenants.Existing
            RadTextBox8.Text = tenants.LastName
 
        End If
    End Sub

however when I try to use the RadListControl I get an error on this line
Dim tenants As Tenant = RadListControl1.SelectedItem
error Value of Type telerik.win.controls.UI.RadListDataItem ' cannot be converted to mainSystem.Tenant?

please advise
Ivan Petrov
Telerik team
 answered on 01 Sep 2011
7 answers
179 views
Then what is the counterpart of RowIndex?

I have a form with a GridView on it and it displays the data i want it to perfectly, However I want to bring up an Add/ Edit form using a context menu strip to edit or add a record to the database. To fill the form for the edit part I need to do something like this(actually works when using the standard Data Grid)
Private Sub EditToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EditToolStripMenuItem.Click
        Dim frm As New frmAddEdit
        frm.GUID_User = Me.dgvUsers.Item(0, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
        frm.GUID_Group = Me.dgvUsers.Item(1, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
        frm.txtADName.Text = Me.dgvUsers.Item(2, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
        frm.txtUserName.Text = Me.dgvUsers.Item(3, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
        frm.txtEmail.Text = Me.dgvUsers.Item(4, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
        frm.txtLogin.Text = Me.dgvUsers.Item(5, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
        frm.txtPassword.Text = Me.dgvUsers.Item(6, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
        frm.txtTelNo.Text = Me.dgvUsers.Item(7, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
        frm.txtFax.Text = Me.dgvUsers.Item(8, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
        frm.cbActive.Checked = IIf(Me.dgvUsers.Item(9, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString() = "True", True, False)
        frm.GUID_Company = Me.dgvUsers.Item(10, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
        frm.cbLead.Checked = IIf(Me.dgvUsers.Item(11, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString() = "True", True, False)
        frm.cbSplit.Checked = IIf(Me.dgvUsers.Item(12, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString() = "True", True, False)
        frm.cbTelesales.Checked = IIf(Me.dgvUsers.Item(13, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString() = "True", True, False)
        frm.cboOffice.SelectedValue = Me.dgvUsers.Item(14, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
        frm.txtAddress.Text = Me.dgvUsers.Item(15, Me.dgvUsers.SelectedCells(0).RowIndex).Value.ToString()
        frm.Text = "Edit User"
        frm.ShowDialog()
    End Sub
The Problem is that the Rad GridView doesn't recognize the RowIndex.

Can Anyone help me with a solution?
What is the Telerik Grid's counterpart to the standard DataGrid's RowIndex


Stefan
Telerik team
 answered on 01 Sep 2011
2 answers
457 views
Hi !
I have a grid with some columns.
If I double click a cell I want to open a window chose some values and update the cell value. Is working fine for rows already in the table.
For new rows "Click here to add new row " is not working.
 I've seen something strange.

I have this code
Dim currentRow As GridViewRowInfo = CType(sender, RadGridView).CurrentRow
if currentRow.DataBoundItem Is Nothing
     do something

But even if I seen in watch screen this as having nothing value
the "do something" line is not executed .It jumps over it. Is like is a value there, even I see in watch window this currentRow.DataBoundItem = nothing.

Why is that ?
How I can access the current NEW line and modify cell values through code ?

Regards,
Mihai



Jamie
Top achievements
Rank 1
 answered on 31 Aug 2011
2 answers
155 views
Hi, how can i change the headertext forecolor of some columns of my radgridview.
Some columns are required and i want to put the headertext in red.
thanks
Stefan
Telerik team
 answered on 31 Aug 2011
1 answer
114 views
Hi,


Actually in RadDateTimePicker,  I want to restrict the user to enter date from keyboard .
i.e permit user to select date using drop down not by typing.
please give solution ASAP.. urgent!!!!


Best regards
Saikiran Ch
Stefan
Telerik team
 answered on 31 Aug 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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?