Telerik Forums
UI for WinForms Forum
3 answers
320 views
Hi, 

i am having RadGridView, where i have "GridViewHyperlinkColumn", i need to remove Hyperlink based on some conditions, how to do that.

Note:- i don't want to make visible as false, just need to remove link alone.




Anton
Telerik team
 answered on 13 May 2013
15 answers
713 views
hi....

in  my text box i have to enter only integer values.
so what mask i have to give its properties?
Stefan
Telerik team
 answered on 13 May 2013
9 answers
194 views
I have a multi threaded single form WinForms application using mostly(all) Telerik controls. Recently i have experienced a problem that seems to be at random. Sometimes, when giving focus to the application it throws a NullReferenceException and causes the application to shutdown.

I captured the detail from the exception this time which has been pasted below. I found another post that may be related.

http://www.telerik.com/community/forums/winforms/general-discussions/net-runtime-2-0-error.aspx 

I have not always had this problem as it just appeared in the past few days. Some of the recent changes i have made that may or may not be related:

Recently upgraded to the latest controls package.
Added additional RadButtons
Added columns to an existing RadGridView's (I found another error here but wasn't able reproduce after i corrected it where my control was not being recognized at runtime.)

Also, although my application has multiple threads the error seems to be related to me giving the application focus or clicking on a button(or attempting to) and it doesn't seems to be related to any specific button, other thread changes\events.

Is anyone else experiencing this or know a solution? 

Thanks!

Exception Detail:
-----------------------------------------------------------------------------------------------------------------------------------
System.NullReferenceException was unhandled
  Message=Object reference not set to an instance of an object.
  Source=Telerik.WinControls
  StackTrace:
       at Telerik.WinControls.RadControlAnimationTimer.Stop()
       at Telerik.WinControls.ElementValuesAnimator.Stop()
       at Telerik.WinControls.ElementValuesAnimator.AnimationTimer_Tick(Object sender, EventArgs e)
       at Telerik.WinControls.RadControlAnimationTimer.OnTick(EventArgs e)
       at Telerik.WinControls.RadControlAnimationTimer.internalTimer_Tick(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Windows.Forms.Timer.OnTick(EventArgs e)
       at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
       at Home_Automation_Server.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 
Peter
Telerik team
 answered on 13 May 2013
3 answers
181 views

I like to have the caret shown when the RichTextBox gets the focus, i.e., when tabbing into it. I use the following approach.

Private Sub RadRichTextBox_GotFocus(sender As Object, e As System.EventArgs) Handles RadRichTextBox.GotFocus

    Me.RadRichTextBox.Document.Insert("", RadRichTextBox.CurrentEditingStyle)

End Sub


While the caret size is smaller than usual it achieves my goal.

Art Colman
www.drybridge.com
Stefan
Telerik team
 answered on 13 May 2013
2 answers
319 views
My font little special. It's little bit upper.So when I use my font , the form icon image and form text Not align. the font Font than the picture.
and for fixed it , I use visual Style builder. RadForm--->RadFormElement--->but there is not have any option Individually modified the label padding of form. I think if can, I change the title text label padding: 0,0,0,-5 . and let the label and icon Align. so can u help me ? or give me a solution?
Qakmak
Top achievements
Rank 1
 answered on 11 May 2013
4 answers
212 views
I'm use Visual Style Builder change the RadButton--->RadButtonElement--->TextPrimitive---> Margin:0,0,0,-6

and use in vs, like this:

public RadForm1()
       {
            
           InitializeComponent();
 
           ThemeResolutionService.LoadPackageFile(@"C:\Users\mamatjan\Desktop\xxxxxxxxxxxxxxxxxxxx\xx\MyTheme5.tssp");
           ThemeResolutionService.ApplicationThemeName = "MyTheme5";
            
            
       }


but when I'm run it. the button not use the style what I'm change, Until the mouse over the button, and button text margin is change.
why? and how I'm fixed it?(I just use font, and the font not change too)
Qakmak
Top achievements
Rank 1
 answered on 11 May 2013
5 answers
211 views
If I set the gridview columnheader.text alignment to middle right when using ExcelType filtering, it overlays the filter button image.  How can I avoid this?
Anton
Telerik team
 answered on 10 May 2013
2 answers
201 views
In my app a use can load a text file in a radTextbox (logs, etc.)  I want to print/preview the contents but get this error;

    "Unable to cast object of type 'Telerik.WinControls.UI.RadTextBox' to type 'Telerik.WinControls.UI.IPrintable'."

I presume the RadPrintDocument cannot handle this type of control.  Is there anyway to do this or any other rad control I could use to load the contents of a text file that would work with the RadPrintDocument/print preview feature
Ivan Petrov
Telerik team
 answered on 10 May 2013
2 answers
146 views
Hi guys!

I have RadListControl with Countries list, that contains images(countryflags) and Custom country name as HTML text, to understand what I mean, check the attached screenshot please!

So what I want to do is:

When I press key I want radlistcontrol to scroll to necessary country

Example: when I press key "G" I want to scroll to "Germany" and so on...

Is it possible to do this??

Thanks very much for the answer!
Magix
Top achievements
Rank 1
 answered on 10 May 2013
3 answers
209 views
Hi Guys

I have a RadGridView with only one editable column
The editable column is a GridViewDecimalColumn.  I have set the FormatString property to be "{0:P}" and it successfully appears as a Percentage.  However when I set the DataEditFormatString to be"{0:P}", it does not appear as a Percentage when editing.

How is the DataEditFormatString meant to work as I cannot find much information about what it is meant to do or how to use it?

Thanks

Bran
Stefan
Telerik team
 answered on 09 May 2013
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?