Telerik Forums
UI for WinForms Forum
1 answer
255 views

I have many Collapsible Panels in my Scrollable Panel, what I need it to do, is if the user expands a panel, I need that panel to scroll to the top of the scrollable panel.   Is there a way to pragmatically do this?

 

TIA.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Jun 2023
2 answers
98 views

hi

 i have a radgridview in windows form that it has been messed up

its worked good but after a time its not work. i did not change any code

for example cant groupby by drag and drop

i read this post but its not help me

or when i right click and open context menu its freeze and not hide

and has other problem

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 05 Jun 2023
1 answer
228 views

Hi Team,

While inserting a new row in the radgridview, we are getting an error (Data Exception 'Column' does not allow nulls) in RadGridview 2023.1.314.40.

Except first 2 parameters the remaining params are throwing an error. Please refer the attached screenshot and code block below . Could you please help to solve this issue?

Note: Its working fine in Telerik.WinControls.GridView.dll 2013.3.1127.40

private void BtnInsertNPAPrice_Click(object sender, EventArgs e)
{
   try
   {
	   if (GridView.Rows.Count > 0)
	   {
		   if (GridView.DataSource != null && ((DataTable)GridView.DataSource).Rows.Count > 0)
		   {				 
			   this.GridView.Rows.Add("Test", "875", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);										 
		   }
	   }                  
   }
   catch (Exception ex)
   {
	  RadMessageBox.Show(ex.Message, Common.ErrorMsgHeader, MessageBoxButtons.OK, RadMessageIcon.Error);
   }
}

Thanks

Rajkannan

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Jun 2023
1 answer
399 views

Hi, i have radtreeview, in  that dynamically i loaded node upto 4 levels, from that i want to select and expand specific node only,

Here i attach sample treeview structure, from that i want to select and expand "11\20\8" and others should be collapsed by button click.



Please reply asap.

Regards
Aravind

Dinko | Tech Support Engineer
Telerik team
 answered on 01 Jun 2023
1 answer
149 views

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

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Jun 2023
1 answer
133 views

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:

  • AllowArbitraryItemHeight & ...Width = True
  • AutoSizeColumnsMode = Fill
  • Dock = Fill
  • ViewType = DetailsView

I have the following properties set for the parent SplitPanel control:

  • Dock = Fill

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.

Dinko | Tech Support Engineer
Telerik team
 answered on 01 Jun 2023
3 answers
256 views

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.

  • The type or namespace name 'RadDocument' could not be found (are you missing a using directive or an assembly reference?)
  • The type or namespace name 'StyleDefinition' could not be found (are you missing a using directive or an assembly reference?)
  • The type or namespace name 'BaselineAlignment' could not be found (are you missing a using directive or an assembly reference?)
  • The type or namespace name 'UnderlineType' could not be found (are you missing a using directive or an assembly reference?)
  • The type or namespace name 'Paragraph' could not be found (are you missing a using directive or an assembly reference?)
  • The type or namespace name 'RadTextAlignment' could not be found (are you missing a using directive or an assembly reference?)
  • The type or namespace name 'ListNumberingFormat' could not be found (are you missing a using directive or an assembly reference?)
  • The type or namespace name 'InsertTableForm' could not be found (are you missing a using directive or an assembly reference?)
  • The type or namespace name 'ListStyle' could not be found (are you missing a using directive or an assembly reference?)
  • The type or namespace name 'RtfFormatProvider' could not be found (are you missing a using directive or an assembly reference?)
  • The type or namespace name 'ITextBasedDocumentFormatProvider' could not be found (are you missing a using directive or an assembly reference?)
  • The type or namespace name 'TxtFormatProvider' could not be found (are you missing a using directive or an assembly reference?)
  • The name 'DefaultListStyles' does not exist in the current context
  • The name 'Span' does not exist in the current context
  • The name 'Unit' does not exist in the current context
  • The name 'TextStyle' does not exist in the current context
  • 'RadRichTextEditor' does not contain a definition for 'DocumentView' and no accessible extension method 'DocumentView' accepting a first argument of type 'RadRichTextEditor' could be found (are you missing a using directive or an assembly reference?)

What is an equivalent namespaces for following references? Could you please help on this below?

  • using Telerik.WinControls.RichTextBox;
  • using Telerik.WinControls.RichTextBox.FileFormats.Rtf;
  • using Telerik.WinControls.RichTextBox.Layout;
  • using Telerik.WinControls.RichTextBox.Lists;
  • using Telerik.WinControls.RichTextBox.Model;
  • using Telerik.WinControls.RichTextBox.Model.Styles;
  • using Telerik.WinControls.RichTextBox.UI;
  • using Telerik.WinControls.RichTextBox.FormatProviders;
  • using Telerik.WinControls.RichTextBox.FormatProviders.Txt;

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


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 May 2023
2 answers
137 views

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

Paul Dell
Top achievements
Rank 1
Iron
 answered on 30 May 2023
1 answer
195 views

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áš

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 May 2023
1 answer
207 views
While loading the form by default collapse all the page(pages and sub pages) and expand only default page. 
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 May 2023
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)
Form
Chart (obsolete as of Q1 2013)
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?