
Hi,
I am using a drop down button on the command bar. The number of main menu items unknown in advance, it depends on the number of year of records are stored in the local database. On each main menu item, there are fixed amount of submenu items representing 12 months of a year as shown in the attached image.
My question is how can I know a user has pressed the submenu item from its corresponding parent? Let's say user pressed the submenu item 'January' from the the main menu item '2017', hence, I can show each record stored in the database related to January not January 2016 or January 2018 and vice versa.
I have these line of codes in my application which me to detech which month a user has click a subitem. I just can't figuer out how to detech the click is from which parten..
menuItem[j].Items[m].Click += WonderingRecordsForm_MouseDown;
RadMenuItem clickedMenuItem = (RadMenuItem) sender;
Console.WriteLine(clickedMenuItem.Text);


Hi, I have a problem with a document, here is what it's going on:
I copy some text from MS Word (THIS TEXT HAS SOME BULLETS) and paste it to the richtexteditor, then I save the content of the document into the database, in a byte array field (this I do it with RTFFORMATPROVIDER).
RtfFormatProvider rtf = new RtfFormatProvider();<br> string rtfS = rtf.Export(rtfEditor.Document);<br> byte[] bytes = System.Text.Encoding.Default.GetBytes(rtfS);Next when I want to show in another screen the document I saved, I show it with RTFFORMATPROVIDER, here what it happens is that I lost the format of the bullets, the bullets are still there but they have a different size and family.
<p>byte[] _doc;</p><p>String eTexto = System.Text.Encoding.Default.GetString(_doc);</p><p>RtfFormatProvider rtf = new RtfFormatProvider();<br> rtfEditor.Document = rtf.Import(eTexto);</p>
I know that this is probably because of the way I save the document since the one in MS Word is in .DOC format, and I am saving it in .RTF format.
What I need, is that to find all bullets after the richTextEditor.Import, so I can set the family and size that I want(which is always the same one, TimesNewRoman Size10).
Is there a way to achieve this?
Thanks in advanced.

How can this be done without looping over all the appointments in the appointments collection? Is there a method like "GetAppointmentsInRange"?
Thanks.


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.
constintnumberOfRows = 5;publicForm1(){InitializeComponent();for(introwCount = 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}}
