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
Hi.
I want the user to be able to sort the tabs as they want.
Is there any way to sort the tabs programmatically?
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());
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
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??
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.
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
hello i want example code to select camera with combobox
i use RadWebCam winforms