Telerik Forums
UI for WinForms Forum
3 answers
374 views
Is there any way how to refresh sorting on RadGridView easy way (i.e. force grid to re-sort according actual sorting settings)? I'm now using following code, but it's kind of ugly.
private void uxTourGrid_CellEndEdit(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)  
{  
    if (e.ColumnIndex == 0 && uxTourGrid.Columns[0].SortOrder != RadSortOrder.None)  
    {  
        RadSortOrder sort = uxTourGrid.Columns[0].SortOrder;  
 
        uxTourGrid.Columns[0].SortOrder = RadSortOrder.None;  
        uxTourGrid.Columns[0].SortOrder = sort;  
    }  
}  
 
I'm sorting according to first column.

Thanks for any help.

Regards,
Daniel
Stefan
Telerik team
 answered on 14 May 2012
5 answers
485 views
I have 4 DateTime Fields in my RadGridView.  StartDate, StartTime, EndTime, EndDate.  I need to be able to have a Time only picker when adding / editing in the grid.  I can't seem to find a way to use the RadTimePicker.  Is there a way to integrate this?  Or use the GridViewDateTimeColumn in such a manner?

I'm Using WinForms Q1 2012 (2012.1.12.215) in a .NET 4.0 framework project.

Thanks.  Matthew
Stefan
Telerik team
 answered on 14 May 2012
2 answers
264 views
Hi Team,

I have been facing this issue, whenever i show a dialog or a messagebox in the valuevalidating event . I get a null exception error in
the program.cs file . but this does not occuur if i show the dialog in anyother event .please let me know the solution for this.

Regards
Harsh
Jack
Telerik team
 answered on 14 May 2012
1 answer
54 views
Hi team,

When i try to show a dialog in the validationerror event , why does the valuevalidating event gets trigerred.
This runs the showdailog twice that way. please help me to overcome this.
I am using telerik version:2011.2.11.0831

Regards
Harsh
Jack
Telerik team
 answered on 14 May 2012
3 answers
291 views
Hi,

Is there a way to set the  font details (say, to Arial 9.35)  for ALL controls in a single place or do I need to set them all individually?

If I can do it programmtically that'd be great as that will allow me to let the users choose their font.
Stefan
Telerik team
 answered on 14 May 2012
4 answers
446 views
Hi,

I have a telerik grid view where i am showing one table from my dataset which contains total 4 tables. Now while exporting to excel, i want to export all the tables instead of just one. How can i achieve this using telerik features.


thanks
kapil
Ivan Petrov
Telerik team
 answered on 11 May 2012
1 answer
208 views
Hi,

What's the intended/best way of setting the location for RadGridView's ColumnChooser dialog box? I want to show it at the center of the calling application (ideally) or at least within the bounds of the calling application.

I tried using ColumnChooser.StartPosition = FormStartPosition.CenterParent but it didn't work. May be because its Parent or MdiParent is set to NULL (I found this while debugging).

Thus currently I am setting the DesktopLocation property of ColumnChooser to the DesktopLocation of ParentForm offset by (50, 50).

//Since workListRadGridView.ColumnChooser's Parent or MdiParent property is not set,
//setting its StartPosition to FormStartPosition.CenterParent doesn't work.
//As a workaround, get parent form's desktop location and offset it 50 pixels from
//both X and Y co-ordinates to keep the column chooser within the bounds of the application.
//Parent form desktop location.
//DesktopLocation property is idle choice because of the following remark in its documentation on MSDN:
//"If your application is running on a multimonitor system, the coordinates of the form are the coordinates for the combined desktop."
//Telerik's documentation for ColumnChooser also has the mention for DesktopLocation property.
//(though not in the context of "setting the location")
 
if (this.ParentForm != null
    && this.ParentForm.DesktopLocation != null)
{
    Point columnChooserDesktopLocation = new Point(this.ParentForm.DesktopLocation.X, this.ParentForm.DesktopLocation.Y);
    columnChooserDesktopLocation.Offset(50, 50);
    radGridView.ColumnChooser.DesktopLocation = columnChooserDesktopLocation;
}


But I am bit apprehensive of ParentForm being NULL or this approach not working correctly for some reason. Thus needed to know if there exists a better way of specifying the location of the ColumnChooser.

Also, more importantly, I want the above code to work even if the user has more than one monitor/display unit.

Thanks,
~Abhay
Svett
Telerik team
 answered on 11 May 2012
1 answer
237 views
Hi guys,

I'm having a little trouble trying to get the RadDock working.

Here is my scenario:
I have a windows form which contains a RadPageView. Inside one of those tabs I have multiple RadSplitContainers which are giving me left, center, right and bottom panels. The left, right and bottom ones are fixed with the center expanding with the form/window. In each of these I need to house UserControls or Forms.

But how?

I've dropped a RadDock into a panel and set it to fill the parent. I've then created both a UserControl and a Form which at run time (Form1_Load) either one gets inserted into the RadDock. Something like this (ucBBMain is my UserControl):

UserControl uc = new ucBBMain();
radDock1.DockControl(uc, DockPosition.Fill);

But I get an  error:
"Invalid DockTabStrip for a DockPosition.Fill operation."

I also tried this but get the same error:
UserControl uc = new ucBBMain();
HostWindow host = new HostWindow(uc, DockType.Document);
radDock1.DockControl(host, DockPosition.Fill);

Very same happens with a Form.

So how can I put UserControls or Forms into a RadDock where their size is expanded to the RadDock they are inside?

Or in fact is a RadDock the correct control to use? Can I put a UserControl directly into the SplitContainer panels?
Julian Benkov
Telerik team
 answered on 11 May 2012
1 answer
111 views
Hi,

I'm using a ShapedForm that has a PageView in it. When I set the PageView to Dock Fill, it covers the TitleBar completely.

How can I have the PageView just fill the form but not the TitleBar?

Thanks.

Sacha
Sacha
Top achievements
Rank 1
 answered on 11 May 2012
1 answer
97 views
We are facing several problems when persisting properties changed at design time. Sometimes with no apparent reason the properties changes are not saved to disk nor showed at run time.
It happens with radtreeview, radmenu, radmaskededit.
Working with imagelist in radtreeview is a nightmare. Changing fonts in radmenu does not work anymore. ExcludePromptsandLiterals works in one machine but not in the other.
Theses problems are driving us insane, since it happens in different projects and different machines.
These machines are running windows 7 and visual studio 2010.
I just can´t believe simple things like these do not work properly. I would like to hear from you what could possibly be happening. 
Peter
Telerik team
 answered on 11 May 2012
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?