Telerik Forums
UI for WinForms Forum
1 answer
111 views

Hi,

when calling the Initialize method WebCam fires an exception.

This is also in your demo application.

Version 2022.2.511.40, WinUI

Regards

Hardy

Todor
Telerik team
 updated answer on 01 Jul 2022
2 answers
119 views

Hi.

I want the user to be able to sort the tabs as they want.

Is there any way to sort the tabs programmatically?  

levenzer
Top achievements
Rank 1
Iron
 answered on 30 Jun 2022
1 answer
544 views

Is there some simple method to stacking custom controls inside of a radpanel (or other element)?  I have a Radpanel that I want to add strips of custom FileUploadRecord Controls to that vertically stack.

I still need to wrap my head around docking, floating, anchoring, position, auto size, etc, but my current method of adding is:

pnlFiles.Controls.Add(new FileUploadRecord());

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

Hello! Telerik for Winform has been really nice so far. I'm trying to see how these things can be accomplished with the Scheduler.

I hope it is okay to ask multiple questions in a single post since it is all related to the same control. If not, I can make a new post for each question.

1. Only show the Dates that are within X month.

Bad Paint edit of what I'd like to achieve

I want to be able to only show the dates that are for the selected month (or programmatically set month)

Ex: User selects July 2022, the scheduler should only show July 1 through July 30 and nothing from June or Aug.

I can hide the dates/cells from showing up, but that leaves empty spaces. It would be nice to fill up those spaces

If e.CellElement.Date.Month <> Date.Now.Month Then
    If Not (TypeOf e.CellElement Is SchedulerHeaderCellElement) Then
        e.CellElement.Visibility = ElementVisibility.Hidden
    End If
End If

2. Change all cell colors to be the same instead of the default where its alternates between light/dark colors

3. Showing full month shrinks the cells, it only fits 1  appointment.

I'm guessing if #1 is possible, there will be more room to change the size of the cells?

I'm hoping some of these questions can be answered, it would greatly help me not waste the trial times

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

After binding the data to GridView, the background color of a specific row was changed through row formatting.
But there are two problems.
First, I can only see the changed background color if I click on the row.
I want the background color of the row to remain changed by the cell value even if it is not focused.
Second, when I scroll, the changed color remains where the background color of the row has changed.

ex) 1step -> 3 row

                     1column

1row                 x                         >> backColor : red(changed)

2row                o                          >> backColor : white

3row                o                           >> backColor : white

 

>>>>> down scoll

                      1column

4row                o                            >>backColor : red ???

5row                o                             >>backColor : white

6row                x                             >>backColor : red(changed)

 

>>>>> up scroll

                      1column

1row                 x                         >> backColor : red(changed)

2row                o                          >> backColor : white

3row                o                           >> backColor : red??

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Jun 2022
2 answers
114 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;
            }
        }
levenzer
Top achievements
Rank 1
Iron
 answered on 27 Jun 2022
1 answer
134 views
First of all, I link with Oracle db and receive datalist as object through linq.
And
> source :
> IEnumerable<object> func(){ var a = linq... return a; }
> object list = func().ToList();
> radGridView.datasource = list;
Apply it like this.

However, changing the GridView Decimal Column value in RadGridView does not apply.
The value disappears when entered...

If you add newRow, you get an error such as "RadListSource needs a parameterless Constructor for <>f__AnonymousType41`5~~~~".

What I wrote above is all I coded.
I haven't solved it for two weeks.
Please help me...
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Jun 2022
0 answers
95 views
 ListViewDropDownListEditor showpop with any operations
Naresh
Top achievements
Rank 1
Iron
 asked on 24 Jun 2022
0 answers
538 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
367 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
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
ProgressBar
CheckedDropDownList
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
Accessibility
VirtualKeyboard
NavigationView
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
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?