Telerik Forums
UI for WinForms Forum
0 answers
220 views

Only users that have Telerik installation version 2021.1.122 are affected.

Symptoms:

Clients that have Telerik installation version 2021.1.122 can not build successfully .NET Core/.NET 5.0 projects. The following error occurs while compiling the project:

The problem is a missing NuGet fallback folder.

Solution:

You should create the missing ToolboxNuGetPackages folder in the installation folder of the controls, usually at C:\Program Files (x86)\Progress\ToolboxNuGetPackages.

Nadya
Top achievements
Rank 1
 asked on 28 Jan 2021
3 answers
8 views

Hello, sorry, maybe I am too new to Telerik, but I was wondering how to do basic tasks with SyntaxEditor. I wanted to replace classic TextBox with SyntaxEditor and I thought it would be straightforward, but I got stuck on very basic tasks. Can you please help me, or navigate me?

1. How to get text from SyntaxEditor? I know how to set text by setting new document, but how to get text? I read whole SyntaxEditor part of documentation, but haven't found this, how is it possible? I was trying to find this out for about hour, but without success. I am wondering if am too new to Telerik or how it's possible I couldn't find this, I think this basic thing must be like "look and see".

2. Classic WinForms TextBox has Modified property indicating the text was changed. Is it also somewhere here? Also, TextBox has Lines property, is it somewhere here?

3. I tried the Cut/Copy/Paste commands, they are working, but I was wondering why CanExecute methods return always true. For example, I expect if there is no selection, CanExecute for Cut and Copy has to return false. Also, if there is no text in clipboard, Paste command has to return false, etc.

Marian
Top achievements
Rank 1
Iron
 updated answer on 25 Jun 2022
0 answers
3 views
 ListViewDropDownListEditor showpop with any operations
Nani
Top achievements
Rank 1
Iron
 asked on 24 Jun 2022
5 answers
182 views

I have a rad data entry in a form that when I change the data through it's bindings it doesn't clear all the fields.  Usually check boxes and dates or dropdowns leave their current selected value if the new data set has null values.

!. is there a way to fix that?

2. If not how can I loop through all the controls in the rad data entry to clear all the controls?

Below only shows 4 controls instead of the many that textboxes, etc.  *Rde is the name of the rad data entry item

foreach (Control c in Rde.Controls)
{
MessageBox.Show(c.Name);
}

 

julie
Top achievements
Rank 1
Iron
 updated answer on 16 Jun 2022
2 answers
12 views

Hello, I want to use SyntaxEditor for coloring and folding of my very simple custom language for defining sequence of steps. I have already made some tests and have no problem with coloring. But I have two questions to SyntaxEditor folding. My language is very simple, it's just sequence of steps, but now I have to implement if/else/endif handling.

1. If I add folding pair if/endif, it works ok, but what if I want to fold if and else branches separately? Is it possible to do folding somehow like on this screenshot? I tried similar code it in Visual Basic, VB folds whole section from if to endif, but I would like to do it like on the screenshot, if it's possible.

2. How can I customize the folding "title" (I don't know the exact terminology). I added a #region / #endregion to previous sample, and it's folding like on this screenshot:

I would like it like in Visual Studio, in case of if statement, you can see the condition, but region hides also the region directive, like on the next screenshot.

I know, C# is folding command block with braces, so it's different situation, but is it possible to do it like this also with my custom language?

I attached also my project, if it's needed for something.

Thanks.

Marian
Top achievements
Rank 1
Iron
 updated answer on 16 Jun 2022
0 answers
17 views

Hi

Please Help

Language: VB.Net (VS2017)

Telerik Version: 2017.3.1017

Application Type: Windows Desktop

Looking for a solution to read the PDF file stored in SqlServer as varbinary(MAX). \

I have saved the pdf file as follows.

Private Sub Save_File() Dim fd As OpenFileDialog = New OpenFileDialog() fd.Filter = "pdf file|*.pdf"

If fd.ShowDialog = System.Windows.Forms.DialogResult.OK Then

Dim filebyte AsByte() = Nothing

Dim con As SqlConnection = New SqlConnection(ConnStr) Dim cmd As SqlCommand = Nothing filebyte = File.ReadAllBytes(fd.FileName) cmd = New SqlCommand("Insert into tbl_Doc (LYR_Doc) Values(@pdf)", con) cmd.Parameters.Add("@pdf", SqlDbType.Binary).Value = filebyte con.Open() cmd.ExecuteNonQuery() con.Close() Interaction.MsgBox("File saved into database", MsgBoxStyle.Information) EndIf

EndSub

Now I need to read this data and load in the pdfviewer.

I tried as follows. But no result.

 Dim eXactConnection As New SqlClient.SqlConnection(ConnStr)
        Dim eXactCommand As New SqlClient.SqlCommand("SELECT LYR_Doc from tbl_Doc where LYR_Name =  'Arun'", eXactConnection)
        eXactConnection.Open()
        If Not IsDBNull(eXactCommand.ExecuteScalar()) Then
            Dim Docdata As Byte() = DirectCast(eXactCommand.ExecuteScalar(), Byte())
            Using stream As New IO.MemoryStream(Docdata)
                RadPdfViewer1.LoadDocument(stream)
            End Using
        End If

 

Thanks in advance.

Arun Madhav


Arun
Top achievements
Rank 2
Iron
 updated question on 15 Jun 2022
1 answer
13 views

hello i want example code to select camera with combobox 

i use RadWebCam winforms 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Jun 2022
1 answer
16 views

Hello,

I have five buttons on a custom dockable control window. When I set the dock property for the buttons to top I want there to be padding between each button. I tried changing the buttons' margins, but that does not seem to do anything.

Thank you for your help!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Jun 2022
1 answer
14 views

Hi.

How can i customize the textbox inside the filter cell? 

I want the borders of this textbox to appear all the time, not just when in edit mode.

The filter row and filter cell are easy to customize. 
 

private void rgvCompanyList_ViewRowFormatting(object sender, RowFormattingEventArgs e) { if (e.RowElement is GridFilterRowElement) { e.RowElement.RowInfo.Height = 40; e.RowElement.BorderBoxStyle = BorderBoxStyle.FourBorders; e.RowElement.BorderWidth = 4; e.RowElement.BorderColor = Color.Red; } }

 


private void rgvCompanyList_ViewCellFormatting(object sender, CellFormattingEventArgs e)
        {
            if (e.CellElement is GridFilterCellElement)
            {
                e.CellElement.DrawBorder = true;
                e.CellElement.BorderBoxStyle = BorderBoxStyle.FourBorders;
                e.CellElement.BorderWidth = 2;
                e.CellElement.BorderColor = Color.Red;
                Font font = new Font(e.CellElement.Font.Name, 9, FontStyle.Bold);
                e.CellElement.Font = font;
                e.CellElement.TextAlignment = ContentAlignment.MiddleCenter;
            }
        }


But I couldn't find how to access the text box inside the cell. 

I want the borders of this text box to be always visible, as seen in the image below.

private void rgvCompanyList_ViewCellFormatting(object sender, CellFormattingEventArgs e)
        {
            if (e.CellElement is GridFilterCellElement)
            {
                
                e.CellElement.DrawBorder = true;
                e.CellElement.BorderBoxStyle = BorderBoxStyle.FourBorders;
                e.CellElement.BorderWidth = 2;
                e.CellElement.BorderColor = Color.Red;
                Font font = new Font(e.CellElement.Font.Name, 9, FontStyle.Bold);
                e.CellElement.Font = font;
                e.CellElement.TextAlignment = ContentAlignment.MiddleCenter;
            }
        }
Dinko
Telerik team
 answered on 06 Jun 2022
2 answers
20 views

 

hello

i use radwebcam

how to chose usb webcam from combobox

 

and i want when i click in camera show live video  in picturebox

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Jun 2022
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
Calendar, DateTimePicker, TimePicker and Clock
ChartView
ComboBox and ListBox (obsolete as of Q2 2010)
Buttons, RadioButton, CheckBox, etc
DropDownList
ListView
Chart (obsolete as of Q1 2013)
PageView
Form
MultiColumn ComboBox
TextBox
Menu
PropertyGrid
RichTextEditor
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
Tabstrip (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
MaskedEditBox
CommandBar
Carousel
ListControl
PdfViewer and PdfViewerNavigator
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
AutoCompleteBox
VirtualGrid
Label
Panel
ContextMenu
TitleBar
Visual Studio Extensions
Documentation
SplitContainer
DesktopAlert
Map
Rotator
ProgressBar
TrackBar
SpinEditor
Spreadsheet
StatusStrip
MessageBox
CheckedListBox
CheckedDropDownList
ShapedForm
LayoutControl
CollapsiblePanel
TextBoxControl
CAB Enabling Kit
Conversational UI, Chat
Wizard
DateTimePicker
ScrollablePanel
GroupBox
TabbedForm
WaitingBar
BrowseEditor
ImageEditor
SyntaxEditor
Tools - VSB, Control Spy, Shape Editor
DataEntry
Gauges (RadialGauge, LinearGauge, BulletGraph)
FileDialogs
ScrollBar
ApplicationMenu
ColorDialog
CardView
DataFilter
RangeSelector
BindingNavigator
WebCam
PopupEditor
TaskBoard
Barcode
ColorBox
Callout
PictureBox
Styling
VirtualKeyboard
CalculatorDropDown
DataLayout
Localization
ToastNotificationManager
ValidationProvider
FilterView
RibbonForm
TimePicker
Accessibility
BreadCrumb
FontDropDownList
LocalizationProvider
ButtonTextBox
Licensing
Dictionary
TreeMap
StepProgressBar
Rating
Security
Separator
SparkLine
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
NavigationView
+? more
Top users last month
sun
Top achievements
Rank 2
Iron
Iron
Iron
Alan
Top achievements
Rank 2
Iron
Iron
Paul
Top achievements
Rank 2
Iron
Veteran
Iron
Ohad
Top achievements
Rank 2
Iron
Iron
Iron
arkan
Top achievements
Rank 2
Want to show your ninja superpower to fellow developers?
Top users last month
sun
Top achievements
Rank 2
Iron
Iron
Iron
Alan
Top achievements
Rank 2
Iron
Iron
Paul
Top achievements
Rank 2
Iron
Veteran
Iron
Ohad
Top achievements
Rank 2
Iron
Iron
Iron
arkan
Top achievements
Rank 2
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?