Telerik Forums
UI for WinForms Forum
14 answers
1.5K+ views
Hi!

The Scroll event does not seem to be raised when I scroll a RadGridView. Is this a known issue?

Thank you!
Jeen
Top achievements
Rank 1
 answered on 10 Nov 2015
8 answers
242 views
Hi, plz help: how to unfreeze row headers(scroll all columns)
Hristo
Telerik team
 answered on 10 Nov 2015
10 answers
432 views
Hi:

    I want to skip to the above or the next row when I use up or down key on the gridviewdecimalcolumn.

    Now , It is not work. It is only focus the old column.

Greetings.
Look forward to your reply.
Ajing
Stefan
Telerik team
 answered on 10 Nov 2015
2 answers
265 views

Hi,
I am using a RadGridView, with a GridViewImageColumn (and some other columns). I want to let the user filter all columns, using the HeaderCellButtons.

I can get it to work on GridViewTextBoxColumns, just not the GridViewImageColumn. I use RadGridView.ShowHeaderCellButtons=true to bring out the filter icons, and I've made sure the column's AllowFiltering is true too.

Interestingly, I can get it to work with a filtering row (RadGridView.ShowFilteringRow=true), but not with just the header cells (RadGridView.ShowHeaderCellButtons=true). I've attached a pic where both filteringrow and headercellbuttons are enabled, where you can see that the headercellbutton for the image column is just not there.

I'm using Q3 2014 SP1. 

Please help: How do I filter on a GridViewImageColumn using HeaderCellButtons?

Thanks!



 

Andreas Håkansson
Top achievements
Rank 1
 answered on 09 Nov 2015
2 answers
384 views

I have 2 forms:1 is parent form and another is child form. When I click capture the active screen, the title(Black area) of the image that I captured will be in black color. I couldn't capture the whole active screen(child form) including the form title.

 

Here is my code:

 

private void btnCapture_Click(object sender, EventArgs e)

{

    Form activeChild = this.ActiveMdiChild;

if (activeChild == null){MessageBox.Show("no active form child found!");return;}else{SaveAsBitmap(activeChild, activeChild + ".Jpeg");MessageBox.Show("Screen Captured successfully.");}}public void SaveAsBitmap(Control control, string fileName){SaveFileDialog dialog = new SaveFileDialog(); dialog.Filter = "JPeg Image|*.jpg|Bitmap Image|*.bmp|Gif Image|*.gif";if (dialog.ShowDialog() == DialogResult.OK){Graphics g = control.CreateGraphics();Bitmap bmp = new Bitmap(control.Width, control.Height); control.DrawToBitmap(bmp, new Rectangle(0, 0, control.Width, control.Height)); bmp.Save(dialog.FileName, ImageFormat.Jpeg);//bmp.Save("C://test.jpg", ImageFormat.Jpeg);}}

Hristo
Telerik team
 answered on 09 Nov 2015
1 answer
329 views

I use for loop to loop 100 records and bind the DataTable(certain fields only) to the gridview. When I saw the gridview, there is a lot of empty rows will show at the bottom of last records. Also, the scroll bar still can scroll for the blank rows. I also set the page size as 20 to make the maximum rows of a page to 20 rows. Please find the attachment(see the red color box for the empty area) for the reference.

Code:

    for (int z = 0; z < 100; z++)
            {

                this.radGridView1.Rows.Add(table.Rows[z][1], table.Rows[z][2]);

            }

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Nov 2015
1 answer
182 views

Hello,

I use Radscheduler and datas are loaded from a dataset that directly calls an Oracle database through the Oracle Client and it works well.

I need to replace this loading by a webservice call.

The first ​loading is ok and I have my appointments and all my other data but when I move an appointment, the change is not reflected in the datatable so I can not intercept these changes.

I use DataRowVersion.Original ​to get the previous version of the appointment but that does not work when datas are loaded from the webservice.
When data is loaded from the dataset methods it works correctly.

Everything works by loading the data using the methods of the dataset :

1.Me.ResourcesTableAdapter.CustomFill(...)
2.Me.AppointmentsResourcesTableAdapter.CustomFill(...)
3.Me.AppointmentsTableAdapter.CustomFill(...)


But it does not work by loading the data from the webservice (just replacing the loading calls)

1.Me.Planning.Merge(WebserviceCall(...))
2.Me.Planning.Merge(WebserviceCall(...))
3.Me.Planning.Merge(WebserviceCall(...))

Data load correctly and appointments appear good.
Moving an appointment is however not impacted on the datatable match.

 

For information : bindings ​are like that  : 

1.SchedulerBindingDataSource.EventProvider.AppointmentFactory = Me.RadScheduler1.AppointmentFactory
2.SchedulerBindingDataSource.EventProvider.DataSource = Me.Planning.Appointments
3.SchedulerBindingDataSource.ResourceProvider.DataSource = Me.Planning.Resources
4.Me.RadScheduler1.DataSource = Me.SchedulerBindingDataSource

​

Do you have an idea of the problem and how to solve it ?

Thank you.

Merci.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Nov 2015
1 answer
213 views

I try to change theme default to TelerikMetro  but It not change theme

 

my code is as below

 

radbutton1.ThemeName = "TelerikMetro";

 

please let me know how to change radbutton theme default to TelerikMetro

 

thanks

Stefan
Telerik team
 answered on 06 Nov 2015
5 answers
687 views

Hello Telerik,

 I need your expertise on a situation about one GridView.

The gridview display a daily rows with a running value (3 column Date, Value, RunningValueOfValue). As it is a daily row with a few year of historical data there is a couple of thousand row in the datasource. As there is a running value, a change on one row should also update all following row.

The datasource of the grid is a WCF Service. On CellValueChanged, I send the modification to the service which will return the new set of data (as an array) for all row (The calculation of the running value is made in the WCF Service). Then I have tested two options :

  1. I set the new array as the datasource of the grid. It is fast but the position of the grid is set back on top and I don't think my user will be happy about it.
  2. I use the new array to update each object in the actual binding source. It is very slow (more than 1 min) because the binding list raise a lot of event for updating the gridview (depending on the size). If I play with RaiseListChangedEvents and ResetBindings, it become fast again but the ResetBindings will have the effect as changing the datasource...

What is the best way to handle this kind of situation ? Using an unbound datagridview ?

 

Hristo
Telerik team
 answered on 05 Nov 2015
2 answers
204 views

Hi,

 I try to use a custom image to replace the default arrow icon used to navigate in the hierarchical structure in RadGridView winform control.

No problem to set the image the cellElement does not fit to the image size.
Here's my code :

private void MyGridView_ViewCellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
       {
           Telerik.WinControls.UI.GridGroupExpanderCellElement cellElement = e.CellElement as Telerik.WinControls.UI.GridGroupExpanderCellElement;
                        
 
           if (cellElement != null)
           {
               
               cellElement.Expander.SignSize = new System.Drawing.Size(30, 30);
               cellElement.Expander.SignImage = Properties.Resources.MyCustomImage;
               cellElement.Expander.SignStyle = Telerik.WinControls.UI.SignStyles.Image;
           }
 
 
       }

       The cellElement.Expander.SignSize seems to have no effect.

 How can I achieve this please ?

 Thanks.

 

christian
Top achievements
Rank 1
 answered on 05 Nov 2015
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?