I'm trying to add rows automatically and the columns are already created manually in Telerik radgridview, I couldn't add rows dynamically and couldn't make the first row as read only.
const
int
numberOfRows = 5;
public
Form1()
{
InitializeComponent();
for
(
int
rowCount = 0; rowCount < numberOfRows; rowCount++)
{
radGridView1.Rows.Add();
// Problem Here - Index out of range was unhandled
//radGridView1.Rows[0].ReadOnly = true; // problem here
}
}
How can i make certain cell alone as read-only in radGridView? Thank you.
I'm open to any idea besides using a ListView for this. (I've thought of using a flow layout panel and RadButton as one alternative.)
In my project where we are picking items for customer orders a "License Plate" is a number that uniquely identifies the box that we are using to put the items that we pick for the order. There are normally three license plates per order and there could be a few more added as we pick. The user would like to see all of the license plates in a horizontal row (scrolling won't be a problem) and have the person click one of them to assign whatever quantity of an item to that box. (That is as simple as a button or something that looks like a button with the license plate number for its text.)
So, if a ListView is a good idea here, I'm trying to use one in IconsView mode to take advantage of the horizontal orientation. I did this so far...
lvLicensePlates.ViewType = ListViewType.IconsView;
lvLicensePlates.AllowArbitraryItemWidth =
true
;
lvLicensePlates.AllowArbitraryItemHeight =
true
;
lvLicensePlates.AllowEdit =
false
;
lvLicensePlates.AllowRemove =
false
;
lvLicensePlates.SelectLastAddedItem =
false
;
lvLicensePlates.ListViewElement.ViewElement.Orientation = Orientation.Horizontal;
lvLicensePlates.ListViewElement.ViewElement.ItemSpacing = 20;
I would like to give the items more of the RadButton appearance. I started experimenting with VisualItemFormatting...
private
void
LvLicensePlates_VisualItemFormatting(
object
sender, ListViewVisualItemEventArgs e)
{
e.VisualItem.BorderBoxStyle = BorderBoxStyle.SingleBorder;
e.VisualItem.DrawBorder =
true
;
}
but that hasn't produced a border for me.
If you could first tell me if a different control would be a better choice and, if not, can you help me make the item look like a RadButton (or better, since I suspect that you have better ideas than I would).
Thank you,
Gary
Hi,
we are using the TextBoxControl instead of the TextBox because of the performance. Now I need to add a button/Icon in my TextBoxControl. I have found a solution for the Textbox but could not find any solution for the TextBoxControl.
How can i add a simple Button in my TextBoxControl ??
Sincerely,
Dominik
I'm using a RadRichTextEditor for WinControls (2017.1.117.40) in my WinForms application and i want to use the RTF text later on in a Stimulsoft Report.
First i import an RTF (created by Winword) from my local machine, it is displayed fine in the TextEditor and in a report designed with Stimulsoft. After i edit the text and try to display it in the report again, the report can't render it anymore as RTF.
I've attached the original text and the changed text as texxtfiles and you can see that there have been put some more tags into the file than in the original.
I'm not using any special propertysettings for the texteditor as far as i know.
So i need the structure as in the Original text, can you help me to figure out what is going wrong here?
Original text:
{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1043\deflangfe1043{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}}
{\colortbl ;\red0\green0\blue0;}
{\*\generator Riched20 6.3.9600}{\*\mmathPr\mnaryLim0\mdispDef1\mwrapIndent1440 }\viewkind4\uc1
\pard\nowidctlpar\cf1\b\f0\fs20 TESTTEKST\b0\par
}
Changed text after adding "test2" in Texteditor:
{\rtf\ansi\ansicpg1252\uc1\deff0\deflang1033{\fonttbl{\f0 Verdana;}{\f1 Arial;}}
{\colortbl\red0\green0\blue0 ;}
{\*\defchp\ltrch\f0\fs24\i0\b0\strike0\cf0\ulc0\ulnone}
{\*\defpap\sl276\slmult1\ql\sa180\ltrpar}{\stylesheet{\s0\sqformat\spriority0\ltrch\f0\fs24\i0\b0\strike0\cf0\ulc0\ulnone\sl276\slmult1\ql\sa180\ltrpar Normal;}{\*\ts2\tsrowd\spriority59\trbrdrt\brdrnone\trbrdrb\brdrnone\trbrdrl\brdrnone\trbrdrr\brdrnone\trbrdrh\brdrnone\trbrdrv\brdrnone\trgaph0\trpaddl75\trpaddr75\trpaddt0\trpaddb0\clpadft3\clpadt0\clpadfr3\clpadr0\clpadfl3\clpadl0\clpadfb3\clpadb0\tsvertalt\ltrch\f0\fs24\i0\b0\strike0\cf0\ulc0\ulnone\sl276\slmult1\ql\sa180\ltrpar Table Normal;}}\nouicompat\viewkind4\paperw12240\paperh15840\margl1425\margr1425\margt1425\margb1425\deftab720\sectd\pgwsxn12240\pghsxn15840\marglsxn1425\margrsxn1425\margtsxn1425\margbsxn1425\headery720\footery720\pard\s0\sl240\slmult1\ql\ltrpar{\ltrch\f1\fs20\i0\b\strike0\cf0\ulc0\ulnone TESTTEKST test2}{\ltrch\f1\fs20\i0\b0\strike0\cf0\ulc0\ulnone\par}}
Hi
I want to customise the available filter operators and change the default operator in my RadGridView
For example in a string column, I'd like to default to 'Starts With' instead of 'Contains' and want to remove the 'Ends With' operator.
Thanks
Tung
I have a Ribbon bar in Outlook view on which I want to change programmatically the font
I have managed to change the font on the bottom buttons with the following code
outlookElement = TryCast(pvMain.ViewElement, RadPageViewOutlookElement)
outlookElement.Font = MyPreference.Font
However the font of the title does not change (see attached image)
How cant I change the title font as well ?
thanks
Hello guys/girls, how are you?
I hope you can help me.
I need to use RadGridView to insert / update / delete data from MySql. VB.NET
I've used this code :
-------------------------------------------------------------------------------------------------
statustestera = Me.RadGridView1.SelectedRows.Item(0).ToString
statuspantograf = Me.RadGridView1.SelectedRows.Item(1).ToString
statusdispecer = Me.RadGridView1.SelectedRows.Item(2).ToString
statusproizvodnja = Me.RadGridView1.SelectedRows.Item(3).ToString
statusdokumentacija = Me.RadGridView1.SelectedRows.Item(4).ToString
comm.Connection = cn
comm.CommandText = "INSERT INTO TBL_Priprema_GROB(StatusTeseta, StatusPantograf, StatusDispecer, StatusProizvodnja, StatusDokumentacija) VALUES('" & statustestera & "','" & statuspantograf & "''" & statusdispecer & "','" & statusproizvodnja & "',' " & statusdokumentacija & "')"
comm.ExecuteNonQuery()
------------------------------------------------
but it returns with the Index can not be negative or less..... error.
Can you please help