Telerik Forums
UI for WinForms Forum
5 answers
567 views

Hello,

I have the same issue like this post:

https://www.telerik.com/forums/rad-grid-view-position-after-reload-of-the-data

 

The TableElement.VScrollBar.Value is saved/restored well in the gridview. But the vScroll.Maximum is changed dynamically depending upon the 

In order to reproduce the issue, I've modified the telerik's approach, please download the demo in the link:

https://www.dropbox.com/s/gyypdzzvjvmck08/gridscollrefresh.rar?dl=0

In the demo, the gridview is refreshing every second by a backgroundworker and a timer. When all hierarchcal grid are collapsed, the scroll position is saved/restored well because vScroll.Maximum stays the same.

But If you click the button "Expand all", and then scroll, the scrolling bar or the gridview will jump a little bit, because the vScroll.Maximum is changing. That means the VScrollBar.Value/vScroll.Maximum ratio is changing when I restore the old VScrollBar.Value.

 

Regards,

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Nov 2019
3 answers
361 views

Hello,
I need to load appointment data and resources using datatable, Here I leave the code, the resources are loading, but the appointments are not loading, they help me that I am doing wrong..

      SqlDataAdapter da = new SqlDataAdapter("Select ID, Summary, Start, End, RecurrenceRule,Location,Description, BackgroundId, StatusId From Appointments", DConexion.CnConexion);
            DataTable dtAppointments = new DataTable();
            da.Fill(dtAppointments);

            SqlDataAdapter da1 = new SqlDataAdapter("SELECT IdPerson, Name,  FROM Persons", DConexion.CnConexion);
            DataTable dtResources = new DataTable();
            da1.Fill(dtResources);

            SchedulerBindingDataSource source = new SchedulerBindingDataSource();

            AppointmentMappingInfo appointmentMappingInfo1 = new AppointmentMappingInfo();
            appointmentMappingInfo1.BackgroundId = "BackgroundId";
            appointmentMappingInfo1.Description = "Description";
            appointmentMappingInfo1.End = "End";
            appointmentMappingInfo1.Location = "Location";
            appointmentMappingInfo1.RecurrenceRule = "RecurrenceRule";
            appointmentMappingInfo1.ResourceId = "ResourceID";
            appointmentMappingInfo1.Start = "Start";
            appointmentMappingInfo1.StatusId = "StatusId";
            appointmentMappingInfo1.Summary = "Summary";
            appointmentMappingInfo1.UniqueId = "ID";
            source.EventProvider.Mapping = appointmentMappingInfo1;

            ResourceMappingInfo resourceMappingInfo1 = new ResourceMappingInfo();
            resourceMappingInfo1.Id = "IdPerson";
            resourceMappingInfo1.Name = "Name";
            source.ResourceProvider.Mapping = resourceMappingInfo1;

            source.EventProvider.DataSource = dtAppointments;
            source.ResourceProvider.DataSource = dtResources;

            this.radSchedulerCitas.DataSource = source;

 

I think I need to relate to the other AppointmentsResources table, if that's how I do it

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Nov 2019
1 answer
635 views

hi every one  

i using data-table to bind data-source of radgridview from SQL database . one of my radgridview column is a numeric . i want to apply thousand separator to that column (like 91000 => 91,000).

i change radgridview formatstring properties to "{0:n0}" and datatype to "System.Decimal" from design view . and set thousand-seperator properties to true.

but still noting change and number on than column view without thousand separator , please help .

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 31 Oct 2019
6 answers
789 views

Hello, I have some question when I'm doing data validation.

Too big to attch, Please see gif on https://drive.google.com/file/d/1EVPmQXUDcdogYR6cas_nQZztAwCMySD8/view

As my url, I hope can add rows only if column2 has value.

It's work perfect when I'm clicking other space area.

But when I'm clicking Close Button, It's will fired RowValidating and AddRow at the same time, and I can't closed this form by close button.

Is there anything I doing wrong? Or there have other solution to let me solve this problem?

Thanks for your assistance.

 
Fish
Top achievements
Rank 1
 answered on 31 Oct 2019
4 answers
246 views

Hi *,

how is it possible to define the Location of the Forms Control box (Close, max, min) for the form to be right, the form Icon in the left and the title in the middle?

I use Crystal Dark theme and there is by Default the locaiton on the left side of the Dialog as it should be :)

 

Thanks

Rostislaw

 

 

Dimitar
Telerik team
 answered on 31 Oct 2019
13 answers
2.2K+ views
Hello,

How do you get and set the selected index on a RadGridView control.
There is no such thing as .SelectedIndex on the grid.

Thanks,
Stephan
Dimitar
Telerik team
 answered on 30 Oct 2019
2 answers
453 views

Hi

I have tried to rotate the text in the column text as per your instructions on the web but it doesn't work, what am I doing wrong (VB Net)

 

     RadGridView1.ViewCellFormatting += radGridView1_ViewCellFormatting()
        RadGridView1.TableElement.TableHeaderHeight = 90
        RadGridView1.Rows(0).IsSelected = True

 

Nadya | Tech Support Engineer
Telerik team
 answered on 29 Oct 2019
5 answers
1.0K+ views

Hello

I wonder if I make the correct use of the CellFormatting Event:

I have a grid that contains only one line

In the CellFormatting event I modify the cell text as following:

        If cell.ColumnInfo.Name = "licence_type_id" Then
            Dim LicenceType As wsWSTLicence.licence_type = wsLicenceTypes.Find(Function(x) x.id.Equals(cell.Value))
            cell.Text = LicenceType.Code & " (" & LicenceType.Description & ")"
            cell.TextAlignment = ContentAlignment.MiddleCenter
        End If

It works fine, however I realized that the code within the If Statement is called 6 times (which is the number of columns in my grid ..)
Is this normal ?
I would think that if my processing was heavy this would negatively impact the performance.

 

Also what is the difference between then CellFormatting Event and the ViewCellFormatting Event

 

Thanks in advance

Pierre-Jean

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 28 Oct 2019
2 answers
264 views

Good Morning All,

I am developing an application that has a main Ribbon Form as the base form.

I have added a CrystalDark theme to the form and applied it and everything is displaying as i would expect in the designer.  However when i run the application the control buttons at the top of the form and the ribbon change to a standard default windows buttons. 

I have included before and after images to this post.

Can anyone please assist in how i can get this not to happen and the theme ones to override and always show even at run-time.

Tanks in advanced

Frosty

Luke
Top achievements
Rank 1
Veteran
 answered on 28 Oct 2019
8 answers
373 views

How do I setup a RadTimePicker to allow the user to enter seconds (as well as hours and minutes)?

Thanks,

 -Lou
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Oct 2019
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
DateOnlyPicker
TimeOnlyPicker
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?