Telerik Forums
UI for WinForms Forum
2 answers
290 views
I’m using WinForms RadMaskedEditBox  MaskType: Numeric, Mask: c2, whenever I try to type negative number example: -$1.00 I get ($1.00), the minus sign - disappears and I get parenthesis () instead.
Is there a way to get negative currency number in MaskedEditBox?
Mujaqo
Top achievements
Rank 1
 answered on 09 Jul 2020
4 answers
967 views

Hello

I have a grid that is bound to a view of my SQLdatabase (using Entity frame work)
In order to process a change in a cell value I can not use "context.savechanges" since the Binding is to a Query (view) and not a table
I have Search in two directions:
1. Discard the pending changes in the context and write a function to apply the cell change 
but I have not found a way to discard the changes in the context

2. the other direction I have searched is  to get the changes before the value changed event is fired and process it through my function
But here also I have not managed to make it work

I hope this is understandable ...

 

Thanks in advance for any suggestion

Pierre-Jean

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 08 Jul 2020
1 answer
182 views

Hi Guys

The Grid looks perfect in size and style in the VS designer.. but when the app is run, the rows and the headers almost double in size. I am not even populating the grid with data and the header is already double in size.

Of course I could manually adjust all the row heights.. but I am guessing I have something set wrong with is causing this? ( some scaling or DPI option?)

 

Image attached is starting the app and having it side by side with the VS designer.

Any thoughts?

Many thanks

Rob

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Jul 2020
1 answer
150 views

Hello

I want if toolwindow is floating mode, toolwindow title text to be in the middle.

 

 

            if (mapDockWindow.IsInFloatingMode)
            {

                    // What should I do?
            }

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 07 Jul 2020
2 answers
342 views

Hello, i need to change the suggest mode of GridViewComboBoxColumn to SuggestMode.Contains. just like we can do it on dropdown control, how can i dot it. 
i am using winforms q2 2014 sp1 version controls. 
also sharing snippet of my code.

var column= new GridViewComboBoxColumn
                {
                    DataSource = ClsProducts.GetActiveProducts(),
                    DisplayMember = "ProductName",
                    ValueMember = "ProductID",
                    Width = 280,
                    HeaderText = "Product",
                    Name = "ColProduct",
                    DropDownStyle = RadDropDownStyle.DropDown,
                    AutoCompleteMode = AutoCompleteMode.SuggestAppend
                };
                dgvTrade.Columns.Insert(1, column);

thanks..

Usman
Top achievements
Rank 2
 answered on 06 Jul 2020
1 answer
99 views

Hi.

I take the table on a web page with C # and Selenium and show it in radGridView.
I add a GridViewCheckBoxColumn before the first column of each row, and I add GridViewDateTimeColumn and GridViewComboBoxColumn after the last column.
I want to equalize the initial value of the DatePicker object in GridViewDateTimeColumn to the value in column 7 of the row where it is located.

However, the initial value of DatePickers in all rows is equal to the value in the 7th column of the last row.

Here is my code:

01.public void FillRadGridView(List<IWebElement> rows, List<IWebElement> columns,  int rowCount, int columnCount, RadGridView rgv)
02.        {
03. 
04.            List<Visit> lst = new List<Visit>();
05.            Visit v = new Visit();
06.            for (int i = 0; i < rowCount; i++)
07.            {
08.                for (int j = 1; j <= columnCount; j++)
09.                {
10. 
11.                    v.Tckn = columns[1].Text;
12.                    v.AdSoyad = columns[2].Text;
13.                    v.Vaka = columns[3].Text;
14.                    v.RaporTakipNo = columns[4].Text;
15.                    v.RaporSiraNo = columns[5].Text;
16.                    v.RaporBaslamaTarihi = DateTime.Parse(columns[6].Text).ToShortDateString();
17.                    v.RaporBitisTarihi = DateTime.Parse(columns[7].Text).AddDays(-1).ToShortDateString();
18.                    v.IsBasiKontrolTarihi = DateTime.Parse(columns[7].Text).ToShortDateString();
19.                    v.CezaDurumu = columns[8].Text;
20. 
21.                }
22.                lst.Add(v);
23.            }
24.            rgv.Columns.Clear();
25. 
26.            GridViewCheckBoxColumn checkBoxColumn = new GridViewCheckBoxColumn();
27.            checkBoxColumn.DataType = typeof(int);
28.            checkBoxColumn.Name = "ColumnSelect";
29.            checkBoxColumn.FieldName = "select";
30.            checkBoxColumn.HeaderText = "Seç";
31.            rgv.Columns.Add(checkBoxColumn);
32. 
33.            rgv.DataSource = lst;
34.            AddColumnToRgv(rgv);
35.             
36.        }

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Jul 2020
2 answers
375 views

Hi, I'm having the following problem. When calling

 

pdfProvider.Export(document, stream);

 

where pdfProvider is PdfFormatProvider and document is RadFlowDocument, I sometimes get an Illegal Path exception with this stack trace:

 

   at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
   at System.IO.Path.GetExtension(String path)
   at Telerik.Windows.Documents.Media.UriImageSource.UpdateExtensionFromUri()
   at Telerik.Windows.Documents.Media.UriImageSource.GetImageData()
   at Telerik.Windows.Documents.Media.UriImageSource.get_Data()
   at Telerik.Windows.Documents.Flow.FormatProviders.Pdf.Export.PdfExportContext.GetImageSource(ImageSource imageSource)
   at Telerik.Windows.Documents.Flow.FormatProviders.Pdf.Export.PdfExporter.ExportImageInline(ImageInline imageInline, Block block)
   at Telerik.Windows.Documents.Flow.FormatProviders.Pdf.Export.PdfExporter.ExportInline(RadFixedDocumentEditor editor, InlineBase inline, Block block)
   at Telerik.Windows.Documents.Flow.FormatProviders.Pdf.Export.PdfExporter.ExportInlines(RadFixedDocumentEditor editor, Paragraph paragraph, Block block)
   at Telerik.Windows.Documents.Flow.FormatProviders.Pdf.Export.PdfExporter.ExportParagraph(RadFixedDocumentEditor editor, Paragraph paragraph, Paragraph nextParagraph, Boolean isFirstBlockInContainer)
   at Telerik.Windows.Documents.Flow.FormatProviders.Pdf.Export.PdfExporter.ExportBlock(RadFixedDocumentEditor editor, BlockBase block, BlockBase nextBlock, Boolean isFirstBlockInContainer)
   at Telerik.Windows.Documents.Flow.FormatProviders.Pdf.Export.PdfExporter.<ExportBlockContainer>d__5.MoveNext()
   at Telerik.Windows.Documents.Flow.FormatProviders.Pdf.Export.PdfExporter.ExportSection(Section section, RadFixedDocumentEditor editor)
   at Telerik.Windows.Documents.Flow.FormatProviders.Pdf.Export.PdfExporter.ExportDocument(RadFlowDocument document, RadFixedDocumentEditor editor)
   at Telerik.Windows.Documents.Flow.FormatProviders.Pdf.Export.PdfExporter.Export()
   at Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider.ExportOverride(RadFlowDocument document, Stream output)
   at Telerik.Windows.Documents.Common.FormatProviders.FormatProviderBase`1.Export(T document, Stream output)
   at LS.TMMsgViewer.Services.PdfGenerator.ExportToStream(Stream stream) in C:\ls\pvminiserver\LS.TMMsgViewer\Services\PdfGenerator.cs:line 63

 

The HTML contains this fragment, I suspect the URL in the "src" attribute is what's causing the problem:

 

<p class=MsoNormal>
            <img border=0 width=1 height=1 id="_x0000_i1033" src="https://t.myvisualiq.net/sync?prid=Test&amp;ao=0&amp;red=https://ad.doubleclick.net/ddm/trackimp/N7121.2426714VISUALIQ0/B20904629.217713024;dc_trk_aid=415907722;dc_trk_cid=99313089;ord=%20180907151105;u=25_CE_35_NFA180907|VIQ_$%7bUUID%7d|;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=?" alt=Advertisement>
            <o:p></o:p>
         </p>

 

Is there a setting to ignore malformed URLs (instead of crashing)?

Thanks.

Marcel
Top achievements
Rank 1
Iron
 answered on 06 Jul 2020
0 answers
172 views
Hi
 
is it possible to change the font in the ReportViewer at run time ?
 
Did it in the RadGridView at run time with the following code and functioned:
 
Private Sub RadFontDropDownList1_TextChanged(sender As Object, e As EventArgs) Handles RadFontDropDownList1.TextChanged
Dim fnt As Font
fnt = RadGridView1.Font
RadGridView1.Font = New System.Drawing.Font(RadFontDropDownList1.SelectedFont, RadDropDownList2.Text)
End Sub
 
I would like to change the font in the RadGridView that it also
in the ReportViewer.
Andi
Top achievements
Rank 1
 asked on 04 Jul 2020
1 answer
305 views

Hello,

In run-time how to rotate a "Radlabel" in 90°, 180°, 270° angle in c# code? 

Nadya | Tech Support Engineer
Telerik team
 answered on 03 Jul 2020
4 answers
280 views
Hey,
Is it possible to display a radlabel with a 45° angle ?
thanks
Nadya | Tech Support Engineer
Telerik team
 answered on 03 Jul 2020
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
CheckedDropDownList
ProgressBar
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
NavigationView
Accessibility
VirtualKeyboard
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
+129 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?