Telerik Forums
UI for WinForms Forum
4 answers
157 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
297 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
205 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
277 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
172 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
450 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
150 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
109 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
1 answer
102 views
Hello Support

I have an Radchart need to change the XAxis label color. I have wincontrol Radchart

RadChart1.DefaultView.ChartArea.AxisX

Please do needful

Regards

Asif
Evgenia
Telerik team
 answered on 31 Aug 2011
9 answers
452 views

Hoping someone can help me with this. I just upgraded my WinForms controls to version 2010.3.10.1215 from 2010.3.10.1109 and my composite filters have stopped working. They do not cause an exception or break anything else, it's as if they are completely ignored. Indidual filters work perfectly still, but they are insufficient to my needs. So... I'm checking with the community before posting a ticket. Example composite filter below. Thanks

  

CompositeFilterDescriptor

 

compositeFilter = new CompositeFilterDescriptor();

 

 

compositeFilter.FilterDescriptors.Add(

new FilterDescriptor("IsDeleted", FilterOperator.IsEqualTo, false));

 

 

compositeFilter.FilterDescriptors.Add(

new FilterDescriptor("FolderLocation", FilterOperator.IsEqualTo, selectedFolder));

 

 

compositeFilter.LogicalOperator =

FilterLogicalOperator.And;

 

 

 

rgvEmails.FilterDescriptors.Clear();

rgvEmails.FilterDescriptors.Add(compositeFilter);

 

 

 

Christ
Top achievements
Rank 2
 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)
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
+? 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?