Telerik Forums
UI for WinForms Forum
1 answer
105 views

In the RadEditor for ASP.NET there are Disable Filters that can be applied like the following:
    RadEditor1.DisableFilter(

EditorFilters.ConvertFontToSpan);

 

    RadEditor1.DisableFilter(

EditorFilters.ConvertToXhtml);

 

    RadEditor1.DisableFilter(

EditorFilters.FixUlBoldItalic);

Are there similar filters that can be applied to RadMarkupDialog to keep it from converting font to span, Bold, Italic and Underline to style, etc? 





 

Peter
Telerik team
 answered on 13 Jul 2011
1 answer
113 views
Hi!
Don't know how to describe this but I give it a go ..

I reinstalled my PC and installed Telerik WinForms ... ofc same version as I used pre-reinstall.

I open my project and try to select a radcontrol currently on form but it refuses to be selected.

Whern I try to add a new control by db-cklick lets say RadPageView .. it never end up on my form. Instead I see it belowq the form as a control (control widowd where I use to see BackGroundWorker etc)

Normal controls work fine.

Pls help ...
//Henrik
Nikolay
Telerik team
 answered on 13 Jul 2011
19 answers
447 views

Hi

I have Telerik Q3 2010. I used radDatetimePicker in my form but it does not work.

when I click any date in datetimepicker it does not show date in that. 

I used this code in main() function of my program.cs file to have persian calander.

Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("fa-IR");
Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture;
when I delete this code,radDatetimePicker works correctly. (but not in fa-IR culture)

when I delete this code and set the culture of radDatetimePicker to fa-IR, it displays an error (I attached the picture of that error)

how can I solve this problem?

thanks in advance

Peter
Telerik team
 answered on 13 Jul 2011
1 answer
171 views
I want to find a way to programatically detect if a PageViewPage has just loaded so that I could bind the controls that are on that page?
Method SelectedPageChanged works great when you click on the handle of a Page, but it is not what I am needing.

Just so you understand my situation; I have a top level RadPageView with many PageViewPages (Section A, Section B, Section C, Section D, Section E...etc...etc). Inside each one of the PageViewPages, I have another RadPageView control with many PageViewPages of its own (Section E - Page 1, Section E - Page 2). Please see attached screenshot for details.

For instance, when I click on one of the PageViewPages (Section E) of the top level RadPageView; I want to detect which PageViewPage of the lower level RadPageView control is visible and active, so that I can popluate all controls on that PageViewPage only, with values from the database.
How can this be accomplished?

Boryana
Telerik team
 answered on 13 Jul 2011
2 answers
152 views
I get an error message when trying to set up a project for the BusinessCard Example that you show under Integration for Winform Examples.
I get an error when I double-click on Form1.cs.

The designer cannot process the code at line 56: this.panel1.BackgroundImage = global::Telerik.Examples.WinControls.Properties.Resources.brushedMetal; The code within the method 'InitializeComponent' is generated by the designer and should not be manually modified. Please remove any changes and try opening the designer again.
Hide    Edit

at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.CreateQuoteExpression(XmlElementData xmlElement)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.XmlElementData.get_CodeDomElement()
at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.EndElement(String prefix, String name, String urn)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.Parse(XmlReader reader)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.ParseXml(String xmlStream, CodeStatementCollection statementCollection, String fileName, String methodName)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.OnMethodPopulateStatements(Object sender, EventArgs e)
at System.CodeDom.CodeMemberMethod.get_Statements()
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)
jack
Top achievements
Rank 1
 answered on 12 Jul 2011
2 answers
239 views
Hello,

How can we hide the titlebar of a floating toolwindow? The titlebar is very large and on a laptop with numerous windows, takes up too much screen realestate. If we can just reduce the height of it to a half or a third, that would be better too.

I wasn't able to find anything in the properties of the toolwindow. I tried to change this in the Visual Style Builder too, but was unable to find the correct element to adjust.

Thanks,


Michelle
Michelle
Top achievements
Rank 1
 answered on 12 Jul 2011
2 answers
108 views
Hi,

     I  want a checked  combo box there is no such control so how can i get it work .

If i  check the first item then all my below items shld get checked ,and if i uncheck my first item then the below all items should get uncheck .How can i implement this functionality.can anyone please explain how to achieve this functionality.



Thanks
Hema
Svett
Telerik team
 answered on 12 Jul 2011
2 answers
185 views
In my RadGridView, I've marked one column as pinned.  Without any formatting, this column shows up as a sky blue color.  When I apply some cell formatting in the RadGridView's CellFormatting event, the cells in the pinned column are white.  I presume this is because I'm resetting cell element formatting values for cells that don't meet the formatting criteria.  When I mouse over any cells in the RadGridView, it causes the cells in the pinned column to turn blue again.  I've thought about adding a check for IsPinned in the CellFormatting event and changing the color to blue myself, but it seems that this should be handled by the ResetValue method.  But, before I submit a bug report, I wanted to make sure I shouldn't be doing something differently.

Thanks,
Robert

Private Sub RadGridView1_CellFormatting(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles RadGridView1.CellFormatting
 
   Dim equationFont As New Font("Cambria", 9, FontStyle.Bold Or FontStyle.Italic)
 
   If e.Row.DataBoundItem.Row("EQUATION") = "Y" Then
            e.CellElement.Font = equationFont
            If gbUseColorCoding Then ' global boolean variable for users to disable colors
                e.CellElement.DrawFill = True
                e.CellElement.NumberOfColors = 1
                e.CellElement.BackColor = Color.PaleGoldenrod
            Else
                e.CellElement.ResetValue(LightVisualElement.DrawFillProperty)
                e.CellElement.ResetValue(LightVisualElement.NumberOfColorsProperty)
                e.CellElement.ResetValue(LightVisualElement.BackColorProperty)
            End If
        Else
            e.CellElement.ResetValue(LightVisualElement.FontProperty)
            e.CellElement.ResetValue(LightVisualElement.DrawFillProperty)
            e.CellElement.ResetValue(LightVisualElement.NumberOfColorsProperty)
            e.CellElement.ResetValue(LightVisualElement.BackColorProperty)
        End If
End Sub
Robert
Top achievements
Rank 1
 answered on 12 Jul 2011
3 answers
282 views
1.How to set radPageViewPage Font Color?

2.How to set border for strip?

Thanks

Abhay
Top achievements
Rank 1
 answered on 11 Jul 2011
5 answers
218 views

Hi,
I have seen variations of this question asked on several different posts, but either the fix has either been irrelevant to my particular situation or the question has gone unanswered. I have created a simplified example that you can run on your own computer, so as to easily demonstrate my problem.

I have a simple class "dog" which contains a property "Breed" of enum type "DogBreeds". I wish to display this value in a GridView combo box, but using more user-friendly text than the enum values.

This is my data class:


Public Class Dog
 
    Private dmName As String
    Private dmColour As String
    Private dmBreed As DogBreeds
 
    Public Sub New(ByVal _name As String, ByVal _colour As String, ByVal _breed As DogBreeds)
        MyBase.New()
        dmName = _name
        dmColour = _colour
        dmBreed = _breed
    End Sub
 
    Public Property Name() As String
        Get
            Return dmName
        End Get
        Set(ByVal value As String)
            dmName = value
        End Set
    End Property
 
    Public Property Colour() As String
        Get
            Return dmColour
        End Get
        Set(ByVal value As String)
            dmColour = value
        End Set
    End Property
 
    Public Property Breed() As DogBreeds
        Get
            Return dmBreed
        End Get
        Set(ByVal value As DogBreeds)
            dmBreed = value
        End Set
    End Property
 
End Class

And my Enum:

Public Enum DogBreeds
    Staff
    Husky
    GShep
End Enum

To demonstrate the problem, create a GridView on a form called "dgv" and add the following code:

'Add some example data      
dogs = New List(Of Dog)
dogs.Add(New Dog("Sacha", "Brown", DogBreeds.Staff))
dogs.Add(New Dog("Nimbus", "Black/Brown", DogBreeds.GShep))
dogs.Add(New Dog("Chinook", "White", DogBreeds.Husky))
 
'Set the grid data source:
dgv.DataSource = dogs
 
'Create the data source for the combo column, comprosed of a column of the enum and a column of the
' "friendly" string represetion for that enum value
Dim dtBreeds As New DataTable
dtBreeds.Columns.Add("BreedEnum", GetType(DogBreeds))
dtBreeds.Columns.Add("BreedName", GetType(String))
dtBreeds.Rows.Add(DogBreeds.GShep, "German Sheppard")
dtBreeds.Rows.Add(DogBreeds.Husky, "Icelandic Husky")
dtBreeds.Rows.Add(DogBreeds.Staff, "Staffordshire Bull Terrier")
 
'Set the column display and value members and the data source for the combo
With DirectCast(dgv.Columns("Breed"), GridViewComboBoxColumn)
        .DisplayMember = "BreedName"
        .ValueMember = "BreedEnum"
        .DataSource = dtBreeds
End With

Run the form. All the combos are blank, but when you click on a combo cell, the correct value is displayed, but disappears again when focus is lost from the cell, so it looks like a display bug. I have successfully used this method on a DataGrid, so not sure why it does not work here.

Any help much appreciated

Shane

Dimitrina
Telerik team
 answered on 11 Jul 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)
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?