Telerik Forums
UI for WinForms Forum
1 answer
133 views
I'm sure this is something very small and silly but I can't figure it for some reason.

  1. I've copied "TMDBTheme.tssp" to my "C:\" drive.
  2. Right click on my project and "Add Existing Item"
  3. Find the file on my "C:\" drive and add it
  4. Right click on the file in my project explorer and select "Properties".
  5. Set "Build Action" to "Embedded Resource"
  6. Add the following two lines to my form constructor:
  7. ThemeResolutionService.LoadPackageFile("TMDBTheme.tssp");
  8. ThemeResolutionService.ApplicationThemeName = "TMDBTheme";
  9. Build my project
  10. Run my project
  11. I get a FileNotFoundException error: "File 'TMDBTheme.tssp' does not exist."

What am I missing?
Boryana
Telerik team
 answered on 14 May 2012
3 answers
362 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
463 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
243 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
50 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
274 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
432 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
192 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
221 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
103 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
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
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
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
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
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?