Hi, I have radpageview with 2 pages and i use view mode as "ExplorerBar" , once run and i click and expand each page, when i click , the clicked page name appear in title of the radpage and i want to hide that title, bcz it occupy space, so want to remove or hide title of radpageview. Here i attach screenshot.
This is currently appear title.
I want to show without title like this
Pls reply asap.
Regards
Aravind
I'm using a split container to display or hide a "comment history" list view element in a details view. One column contains created DateTime values and the other contains string values of comments a user of the application left.
I use the following cell formatting event code to enable text wrapping on my cells.
private void radListView1_CellFormatting(object sender, ListViewCellFormattingEventArgs e)
{
e.CellElement.TextWrap = true;
}
When the form loads everything, the cells look correct. Fully expanded and no clipped text. When I collapse the panel with the splitter buttons and "hide" the list view element and reopen the panel using the splitter buttons then the text is clipped. See attached files for reference of how I want them to look.
I've tried using RadListView.Refresh() in a dozen different event calls, RadListView.ListViewElement.Update(UpdateLayout) in a dozen different event calls, a synchronizationContext.Post() of the Refresh method in a dozen different event calls, and even direct formatting of the UI hierarchy elements Text Wrap property to true to no avail.
I have the following properties set as indicated in various tutorials for the ListView control:
I have the following properties set for the parent SplitPanel control:
For other relevant properties, I can confirm on a case by case basis since I'm not sure what I'm missing in my problem. Any guidance or advice is very appreciated.
Hi Team,
We are planning to migrate Telerik.WinControls.RichTextEditor.dll (2023.1.314.40) in visual studio 2022.
We are unable to compile the program and getting an errors like below.
What is an equivalent namespaces for following references? Could you please help on this below?
Note: Its working fine in the Telerik.WinControls.RichTextBox.dll (2013.3.1127.40)
example program:
private void InitializeCurrentFontStyles(StyleDefinition styleDefinition) { try { UnderlineType underlineType = (UnderlineType)styleDefinition.GetPropertyValue(Span.UnderlineTypeProperty); this.radBtnUnderlineStyle.ToggleState = underlineType != UnderlineType.None ? ToggleState.On : ToggleState.Off; string fontFamiliy = (string)styleDefinition.GetPropertyValue(Span.FontFamilyProperty); this.radDropDownListFont1.SuspendSelectionEvents = true; this.radDropDownListFont1.Text = fontFamiliy; this.radDropDownListFont1.SelectedValue = fontFamiliy; this.radDropDownListFont1.SuspendSelectionEvents = false; float fontSize = (float)styleDefinition.GetPropertyValue(Span.FontSizeProperty); fontSize = (float)Math.Round(Unit.DipToPoint(fontSize), 1); this.EnsureFontSize(fontSize.ToString()); TextStyle fontStyle = (TextStyle)styleDefinition.GetPropertyValue(Span.FontStyleProperty); this.radBtnBoldStyle.ToggleState = fontStyle.HasFlag(TextStyle.Bold) ? ToggleState.On : ToggleState.Off; this.radBtnItalicStyle.ToggleState = fontStyle.HasFlag(TextStyle.Italic) ? ToggleState.On : ToggleState.Off; } catch (Exception ex) { RadMessageBox.SetThemeName("Office2007Silver"); RadMessageBox.Show(ex.Message, res_man.GetString("ProposalEntityMaster", PNxt_BL.Common.CultureInfo), MessageBoxButtons.OK, RadMessageIcon.Error); } using (InsertTableForm insertForm = new InsertTableForm()) { insertForm.Owner = this; insertForm.ThemeName = "Office2007Silver"; if (insertForm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.radRichTextBox1.InsertTable(insertForm.RowsCount, insertForm.ColumnsCount); } } this.radRichTextBox1.DocumentView.Caret.Hide(); }
Thanks,
Rajkannan
Hello,
is it possible to somehow activate a funktion to drag and hold an appointment to the latest possible date and the scheduler will after a few seconds of holding the appointment in this position automatically change the displayed calender to for example the next week so that you can drop the appointment here?
Regards,
Paul
Hi,
I'm having a problem while exporting a GridView containing some GridViewCommandColumns to a XLS.
I get a FormatException error in Telerik.WinControls.GridView.dll on these columns.
The code I use for export:
GridViewSpreadExport spreadExporter = new GridViewSpreadExport(gridView);
spreadExporter.ExportChildRowsGrouped = true;
spreadExporter.HiddenColumnOption = Telerik.WinControls.UI.Export.HiddenOption.DoNotExport;
spreadExporter.HiddenRowOption = Telerik.WinControls.UI.Export.HiddenOption.DoNotExport;
SpreadExportRenderer exportRenderer = new SpreadExportRenderer();
spreadExporter.RunExport(sDialog.FileName, exportRenderer);
I don't necessarily need these columns in a XLS, so I tried to hide them before exporting, set some export properties and even set values:
gridView.Columns["column1"].IsVisible = false;
gridView.Columns["column1"].ExcelExportType = Telerik.WinControls.UI.Export.DisplayFormatType.None;
foreach (var row in gridView.Rows)
{
row.Cells["column1"].Value = 1;
}
The only way a grid exports correctly is when GridViewCommandColumns are deleted from the grid.
Any idea what should I try? I use version 2021.2.511.40.
Thanks in advance.
Regards,
Tomáš
I'm trying to make a clear distinction between the parent and child rows. I tried the following to change the background color of the child rows:
CellFormatting += (sender, args) =>
{
if (args.Row.HierarchyLevel > 0)
args.CellElement.BackColor = Color.Aquamarine;
};
It works, but only when my mouse hovers over a child row.
Also, I'm wondering why the rows in the child grid have plus signs to their left (see the attached image) when there is no third level.
I have not found it easy to figure this out from the API documentation. There are probably properties that could get me what I want, but are they in the row class? The template? The child template? The grid? The view? <shrug>
I once came across a document on your site that describes the overall grid structure and the relationships between these components. Whether or not I can get help on these specific issues I'd appreciate a link to that document.
Thanks.
Never did this before, but I need to make a custom change to a control that will affect all instances of it throughout the application. If the user clicks in a masked edit control at any position and the control is empty, the cursor should jump to position 1. It works fine when I use the event handler of the control directly like this:
private void mtbHomePhone_Click(object sender, EventArgs e)
{
if (mtbHomePhone.Value?.ToString()?.Length == 0)
{
mtbHomePhone.SelectionStart = 1;
mtbHomePhone.SelectionLength = 0;
}
}
I'm trying to inherit from the control like this (using MyMaskedEdit in the designer.cs in place of RadMaskedEditBox) but the event is not firing. What am I doing wrong?
using Telerik.WinControls.UI;
namespace VisionUI.Common
{
public class MyMaskedEdit : RadMaskedEditBox
{
protected override void OnClick(EventArgs e)
{
base.OnClick(e);
if (this.Value?.ToString()?.Length == 0)
{
this.SelectionStart = 1;
this.SelectionLength = 0;
}
}
}
}
Thanks
Carl
Hi Team,
We are using RadDropDownList control version (2023.1.314)
We are getting 'System.StackOverflowException' exception while assigning value in the dropdownlist (its keep on recursion).
Could you please help on this?. Please find sample program below.
We are using visual Studio 2022 and Telerik.WinControls.UI.dll(2023.1.314)
Note: Its working fine in 2013.3.1.1127 version.
private void comboBox1_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
{
setOldValue();
}
private void setOldValue()
{
comboBox1.SelectedValue = 2;
}
private void button1_Click(object sender, EventArgs e)
{
comboBox1.SelectedValue = 1;
}
Thanks
Rajkannan
For some reason - probably due to me doing some re-sizing of columns - my sheets are now opening scrolled a bit to the right, which means my important left-hand columns are not visible without scrolling.
I assume this will be annoying to users - It certainly took me an hour to figure out what had happened to my left-hand columns. :-(
I tried to make the sheet scroll left in the control.load event:
mySpreadsheetControl.HorizontalScroll.Value = 0
...but that didn't seem to work.
Does anyone know the right way to scroll left in a sheet?
Thanks