Telerik Forums
UI for WinForms Forum
3 answers
555 views

Hello!

Is it possible to set the font of the dropdown grid other then default "Segoe UI" ?

The expected behavior is that the grid must use the same font as RadMultiColumnComboBox.

The code I tried to use is similar to this:

RadMultiColumnComboBox combo = new RadMultiColumnComboBox();
combo.Font =new System.Drawing.Font("Microsoft Sans Serif", 8.25F); 
combo.EditorControl.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);

But the dropdown grid still uses Segoe UI Font.

Richard Slade
Top achievements
Rank 2
 answered on 28 Mar 2011
2 answers
67 views
FYI...you might already know this, but there appears to be a slight alignment bug in the GridView property builder.  I tried resizing the window but it did not fix it.  No real issue but just a friendly heads up.  See screenshot.

Stefan
Telerik team
 answered on 28 Mar 2011
1 answer
88 views
I'm making a system that takes data from the database and export pro excel. But that has hours of this error and can no longer export. Can anyone help me?

See end of this message for details on invoking
debugging just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

   em Sistema.bll.clnRelatorio.relatoriosEmpresas(String numgEmprsas)
   em Sistema.frmImportacao.relatorios(List`1 numg_Empresas, String empresa)
   em Sistema.frmPesquisa.btnImportar_Click(Object sender, EventArgs e)
   em System.Windows.Forms.Control.OnClick(EventArgs e)
   em Telerik.WinControls.RadControl.OnClick(EventArgs e)
   em Telerik.WinControls.UI.RadButton.ButtonElement_Click(Object sender, EventArgs e)
   em Telerik.WinControls.RadItem.OnClick(EventArgs e)
   em Telerik.WinControls.UI.RadButtonItem.OnClick(EventArgs e)
   em Telerik.WinControls.RadItem.DoClick(EventArgs e)
   em Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   em Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   em Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   em Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   em Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)
   em Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e)
   em Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)
   em System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   em System.Windows.Forms.Control.WndProc(Message& m)
   em System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   em Telerik.WinControls.RadControl.WndProc(Message& m)
   em System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   em System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   em System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Conjuntos de Módulos (Assemblies) Carregados **************
mscorlib
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.4062 (QFE.050727-4000)
    Base de Código: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
mscorlib.resources
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.4062 (QFE.050727-4000)
    Base de Código: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Sistema
    Versão do Conjunto de Módulos (Assembly): 2010.2.713.0
    Versão do Win32: 2010.2.713.0
    Base de Código: file:///C:/Program%20Files/AUD_EFD/AUD_EFD/Sistema.exe
----------------------------------------
System.Windows.Forms
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Telerik.WinControls.UI
    Versão do Conjunto de Módulos (Assembly): 2010.2.10.713
    Versão do Win32: 2010.2.10.0713
    Base de Código: file:///C:/Program%20Files/AUD_EFD/AUD_EFD/Telerik.WinControls.UI.DLL
----------------------------------------
Telerik.WinControls
    Versão do Conjunto de Módulos (Assembly): 2010.2.10.713
    Versão do Win32: 2010.2.10.0713
    Base de Código: file:///C:/Program%20Files/AUD_EFD/AUD_EFD/Telerik.WinControls.DLL
----------------------------------------
TelerikCommon
    Versão do Conjunto de Módulos (Assembly): 2010.2.10.713
    Versão do Win32: 2010.2.10.0713
    Base de Código: file:///C:/Program%20Files/AUD_EFD/AUD_EFD/TelerikCommon.DLL
----------------------------------------
System.Xml
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3074 (QFE.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
ptauwmit
    Versão do Conjunto de Módulos (Assembly): 2010.2.10.713
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms.resources
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_pt-BR_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
System.Data
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
ExportExcel
    Versão do Conjunto de Módulos (Assembly): 1.0.0.0
    Versão do Win32: 1.0.0.0
    Base de Código: file:///C:/Program%20Files/AUD_EFD/AUD_EFD/ExportExcel.DLL
----------------------------------------
System.Data.resources
    Versão do Conjunto de Módulos (Assembly): 2.0.0.0
    Versão do Win32: 2.0.50727.3053 (netfxsp.050727-3000)
    Base de Código: file:///C:/Windows/assembly/GAC_MSIL/System.Data.resources/2.0.0.0_pt-BR_b77a5c561934e089/System.Data.resources.dll
----------------------------------------

************** JIT Debugging **************
To enable debugging just-in-time (JIT), the. config this
application or computer (machine.config) must have the value
jitDebugging defined in section system.windows.forms.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
     <system.windows.forms jitDebugging="true" />
</ configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

 

Richard Slade
Top achievements
Rank 2
 answered on 28 Mar 2011
4 answers
123 views
Ok, I don't know if this is an issue with RadControls, or just Visual Studio in general, but basically, I can't select different pages on a pageview, or anything that has child controls within the designer. Also, the bottom gray area of the designer now shows ALL controls that are on the form, instead of just things like timers, background workers, etc. (see screenshot).

If anyone has run into this before, any ideas what's up?

Thanks!!

Stefan
Telerik team
 answered on 28 Mar 2011
2 answers
324 views
Dim col = New GridViewDecimalColumn()
col.Name = "Calculated Column"
col.HeaderText = "Order value"
RadGridView1.Columns.Add(col)
RadGridView1.Columns("Calculated Column").Expression = "UnitsOnOrder * UnitPrice"
'=========================================================
I want to use Function math.round("UnitsOnOrder * UnitPrice",3) in Column("Calculated Column").Expression
How can i calculate ?

Thank you.
Daniel
Top achievements
Rank 1
 answered on 28 Mar 2011
1 answer
115 views
After upgrading to Q1 2011, drag and drop within a single treeview is no longer working in an existing project.  The treeview is bound to a DataTable.

 

 

 

tv.AllowDragDrop = true;
tv.DataSource = _subOptions;
tv.DisplayMember = "optionDesc";
tv.ValueMember = "OptionID";

According to the documentation, this simple example should work. Any idea why it doesn't?

Svett
Telerik team
 answered on 28 Mar 2011
2 answers
73 views
I've added all the themes manually to Visual Basic 2010 Express, and I add a theme to the form1.vb, and it does nothing! Do you have to code it out to tell it to run the theme on that form manually? If so please tell me the code becuase it took forever downloading the installation for it. So if someone can just help me, please do.....
Ivan Petrov
Telerik team
 answered on 28 Mar 2011
1 answer
267 views
HI

I have a Gridview with 5 columns one of them is  "Posted" column. it has 'Yes' or 'No'  ,only two possible values...
If value of a perticular row is 'Yes' for Posted column then the row should be readonly....

Let me know How can I achive this....

Thanks
Richard Slade
Top achievements
Rank 2
 answered on 28 Mar 2011
2 answers
142 views
On a standard bar chart the item's value sits on top of the bar (see pic).  That's fine if you have a lot of space.  Does anyone know how or if it's possible to have the item value popup when the mouse is moved over the item.  Same can be said for the spleen mode and some of the over chart types in fact,
Nick Jones
Top achievements
Rank 1
 answered on 28 Mar 2011
3 answers
158 views
The problem boils down to the RadRichTextBox crashing as soon as you try to use an image loaded from an invalid URL. The sample code below should reproduce it. This is quite serious because it takes down the entire application.

MainWindow.xaml:

<Window x:Class="TelerikWPFEditorTest.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Documents"
Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded">
    <Grid>
        <Controls:RadRichTextBox Grid.Row="1" x:Name="editor" IsSpellCheckingEnabled="False" BorderThickness="0" />
    </Grid>
</Window>

MainWindow.xaml.cs:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Telerik.Windows.Documents.FormatProviders.Html;


namespace TelerikWPFEditorTest
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
        
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            HtmlFormatProvider provider = new HtmlFormatProvider();
            var doc = provider.Import("<html><body><h1>test</h1><p><img src=\"http://foo.bar.com/332423432.jpg\"</p></body></html");
            editor.Document = doc;
        }
    }
}


Mike
Telerik team
 answered on 28 Mar 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)
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
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
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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?