Telerik Forums
UI for WinForms Forum
1 answer
354 views
Excuse me, 
I have a field which I use to input URL type.
I use RadMaskedEditBox.

I try to browse maskType, but no URL option.
Just Regex available.

How can I prevent invalid URL input?
Maybe using regex?

The telerik documentation is not describing clearly about how to use the regex.

Please help

Regards
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Apr 2015
1 answer
176 views
Hi

I have made codes to show live data in RadGridView.

So, I set the VirtualMode property to true, and set ColumnCount.

But, I can't set RowCount, because I don't know how many data will be shown.

I set the RowCount to 0. When I received data, I increased RowCount( ex. RowCount++)

I know this code is wrong, because occurred exception.

Please let me know how to show live data in RadGridView.
Hristo
Telerik team
 answered on 01 Apr 2015
2 answers
71 views
Hello - I am trying to use RadMarkupDialog for HTML editing; however, it strips wrapping P tags. This behavior occurs when I click Save from the Markup tab, and also when I switch from the Markup tab to the Design tab. I've seen information on stopping this behavior in ASP.Net, but not in WinForms. Is there a way to make it behave correctly?
Thanks,
Matt

For examples:
1.
currentText = "<p>some text</p>"
Dialog is shown and Value is set to currentText; Design mode shows "some text"; switch to Markup and it shows "some text" (no wrapping P tag)

2.
currentText = "some text"
Dialog is shown; switch to Markup and edit text to "<p>some text</p>"; click save
Code is returned "<html>some text</html>" (that it is wrapped in the HTML tag is expected from what I understand)

3.
currentText = "some text"
Dialog is shown; switch to Markup and edit text to "<p>some text</p>";
Switch to Design mode and then back to Markup mode; editor now shows "some text"

4.
currentText = "some text"
Dialog is shown; switch to Markup and edit text to "<p>some text</p><p>some other text</p>"
Code is returned "<html><p>some text</p><p>some other text</p></html>
Hristo
Telerik team
 answered on 01 Apr 2015
2 answers
382 views
Hi.
I'm trying to print/preview the radrichtexteditor where document orientation of the document is landscape and contains table. In radrichtexteditor table is displaying good,
but in Preview mode table is truncating. I dont know why...
It`s my code:

radRichTextEditor1.ChangeSectionPageOrientation(PageOrientation.Landscape);
RadPrintDocument document = new RadPrintDocument();
document.PrinterSettings.Duplex = System.Drawing.Printing.Duplex.Simplex;
document.PrinterSettings.DefaultPageSettings.Landscape = true;
document.Landscape = true;
radRichTextEditor1.PrintPreview(document);
 
thank you in advance.
Hristo
Telerik team
 answered on 01 Apr 2015
4 answers
178 views
Hi,
   i would like to Auto BestFit all columns after data loading, is it possible?

Thank you 


Manuele
Dimitar
Telerik team
 answered on 31 Mar 2015
2 answers
561 views
cant seems to get gridview to pay attention to multiple key fields in the relationship hierarchy
code is like this

GridViewRelation relation = new GridViewRelation(this.radGridStatement.MasterTemplate);
            relation.ChildTemplate = template;
            relation.ParentColumnNames.Add("DealerID");
            relation.ParentColumnNames.Add("Month");
            relation.ParentColumnNames.Add("Year");
            relation.ChildColumnNames.Add("DealerID");
            relation.ChildColumnNames.Add("Month");
            relation.ChildColumnNames.Add("Year");
            this.radGridStatement.Relations.Add(relation);
relationship requires three key columns
gridview only uses first one (dealerid)
Hristo
Telerik team
 answered on 31 Mar 2015
13 answers
4.1K+ views
I am experiencing very tuff problem with the applicaions designed using Win forms telerik suit as the application is loading very very slow. We thought it was because of the data it is being loaded but not, even the empty win form designed using Telerik suit is loading very slow. I am getting regrets from my clients. Is there any way that we can minimize this loading time. Please suggest us as soon as possible.

Thank you.
Hristo
Telerik team
 answered on 31 Mar 2015
2 answers
376 views
Hey all

I'm trying to add a background color to a RadGridView cell. I often did it before and it always works perfectly, just in this case it's not working properly. Here you can see my code:

if (e.Column.Name == "BM")
{
    foreach (string rs in BmList)
    {
        if (rs == e.Row.Cells["RS"].Value.ToString())
        {
            e.CellElement.DrawFill = true;
            e.CellElement.BackColor = Color.FromArgb(238, 127, 0);
            e.CellElement.NumberOfColors = 1;
        }

        else
        {
            e.CellElement.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local);
            e.CellElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local);
            e.CellElement.ResetValue(LightVisualElement.NumberOfColorsProperty, ValueResetFlags.Local);
        }
    }
}

This code is just coloring 1 cell, even if there are more in the list. The debugger says, in my list called "BmList" are 18 items. But it colors just one. So I'm wondering why its not coloring every cell. When I remove the foreach loop, it works fine. And when I use this code instead of "e.CellElement" it works as well:

e.Row.Cells["BM"].Style.BackColor = Color.FromArgb(238, 127, 0);
e.Row.Cells["BM"].Style.DrawFill = true;
e.Row.Cells["BM"].Style.CustomizeFill = true;

Does anyone know about that behaviour? Or am I doing something wrong?

I hope someone can help me

Regards,
Danilo
Danilo
Top achievements
Rank 1
 answered on 31 Mar 2015
2 answers
81 views
1. When using the Office2013Light theme, the styles that are applied to PageView tabs do not match
the styles of child hierarchy template tabs. Please see attached. Is there a workaround to get the child
template tabs to match the PageView tabs (as occurs when using other themes)?

2. When more than one child hierarchy template is added, all rows are
expanded by default, whereas when a single child template is added, the rows are
collapsed. How do I ensure that the rows remain collapsed when adding more
than one child template in a hierarchy?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Mar 2015
9 answers
761 views
Hello -

I have one of my gridview columns set to wrap text. What I would like to see happen is that when the text wraps in a row, the row resizes itself to show all the text. However, it isn't doing that, so my text in the column that wrapped is all scrunched up. Is there a way to tell the grid to either resize the rows where the text in a column has wrapped, or at least, set each row to be 2 rows high?
Niloofar
Top achievements
Rank 1
 answered on 30 Mar 2015
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?