Telerik Forums
UI for WinForms Forum
1 answer
153 views

Hello,

I have a RadTreeView with a context menu showing different options depending on the node level. However, I need to reset the context menu after ContextMenuOpening because once a menu item is removed from the context menu it doesn't display again.

 

01.void radTreeEmployers_ContextMenuOpening(object sender, Telerik.WinControls.UI.TreeViewContextMenuOpeningEventArgs e){
02.    if (e.Node.Level == 1 || e.Node.Level == 2)
03.    {
04.        for (int i = 0; i <= e.Menu.Items.Count - 1; i++)
05.        {
06.            if (e.Menu.Items[i].Name == "addEmployer")
07.                e.Menu.Items.Remove(e.Menu.Items[i]);
08.        }
09.    }
10.}

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Aug 2016
3 answers
79 views

Dear all,
i need really your help for out this issue, i used Theme From Mediacl App sa example of your teleric product For WinForms,
in this case issue on GridCommandCellElement , the issue is a button very small, i can't show my text on button, which DefaultText is "PRINT" the grid GridCommandCell just Show "Pic" only, i don't know hy this happen,
but i am so tired to out his problem, please help me to out this shit problem, thanks.
please see my attachment, i was send a zip include screenshot and the themes too.
Please Fast Response, i need your solving really.

I just rename extension of TapeLibTheme.png, please rename to TapeLibTheme.tssp again

Dimitar
Telerik team
 answered on 01 Aug 2016
1 answer
239 views

I am calling LoadLayout on a RadGridView then using a factory class todynamically gets the properties of an object passed in and determines what properties should be shown. Based on what properties should be shown, the factory adds columns if they don't exist from the LoadLayout or  gets the column if it does exist and configures it. But if a column was created from the LoadLayout and there is no property associated with it anymore, I need to hide or remove the column.

Based on other forum posts, I've tried:

gridView.MasterTemplate.Columns.Remove(name);
gridView.Columns.Remove(name);
 
if (gridView.MasterTemplate.Columns.Contains(name)) // returns false
{
    var col = gridView.MasterTemplate.Columns[name];
    col.VisibleInColumnChooser = false;
    col.IsVisible = false;
}
 
if (gridView.Columns.Contains(name)) // returns false
{
    var col = gridView.Columns[name];
    col.VisibleInColumnChooser = false;
    col.IsVisible = false;
}

If I break after the code above runs, I can see that the column is not longer in the the gridView's column collection, but when its rendered the column is displayed. How do I hide or remove a column immediately after calling LoadLayout?

Dimitar
Telerik team
 answered on 01 Aug 2016
1 answer
105 views
I have Main categories Sales and Return, in this categories I have sub-categories like snacks, tobacco products, vaporizer etc., into each of these sub-categories I have items. I want 3 level drilldown by binding chartview from backend. Please let me know which type of chartview will be suitable for this example and also can you please provide me a small working example covering this scenario.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Jul 2016
0 answers
102 views

Dear friends,
I am trying to add run time page in pageview things working well but when I am trying to add windows forum as control it will not show, if I convert it to user control it show in pageview any specific reason behind it?

 CustomerMain customerMain = new CustomerMain(); // this one is windows forum if I change it to user control it work fine 
            customerMain.SelectedCustomerId = CustomerID;
            customerMain.Dock = DockStyle.Fill;
            customerMain.TopLevel = false;
            ((Forms.Test.TestCustomerForum)this.ParentForm).ShowParentTab(customerMain, "[" + customer._Owner + "]", CustomerID);

 

 

 

 public void ShowParentTab(Control form, string title,int customerID)
        {
            RadPageViewPage pageOne = new RadPageViewPage();
            pageOne.Text = title;
            string pageName =  customerID.ToString()+ title.Replace(" ","").Trim();
            pageOne.Name = pageName;
            pageOne.Controls.Add(form);
            radPageViewParent .Pages.Add(pageOne);
            radPageViewParent.SelectedPage = pageOne;
           
           
        }

Shakti SIngh Dulawat
Top achievements
Rank 1
 asked on 29 Jul 2016
4 answers
144 views
Hi,

I have form which TopMost property is true. Now I have added one RADGrid View and assign data into it.

The custom filter dialog is not displayed because my form is TopMost = true.
I think that filter dialog is hidded because my form is always on top !

Regards,
Divyesh Chapaneri
Ronald Bouras
Top achievements
Rank 1
 answered on 29 Jul 2016
2 answers
133 views

Hi,

I am using code based on the project found here: http://www.telerik.com/forums/charts-inside-gridview-cells-problems-during-the-scrolling. It works for the most part, but SetContentCore gets called repeatedly and for whatever reasons. I'd like to manually add rows to the grid and disable the autogeneration of new rows on scrolling. For some reason this behaviour causes bugs on my end like duplicating rows multiple times, although the bindinglist passed to it as datasource doesn't contain duplicates. Note the sample project provided in the reference works just fine, so I couldn't reproduce the error.

BR
Christian
Top achievements
Rank 1
 answered on 28 Jul 2016
7 answers
136 views

Hi,

I am trying to load documents to a radDocument[] array. When executing below code i  get "exception has been thrown by the target of an invocation c#" error.  Kindly Help.

Here is my code:

RadDocument[] Rd_Ary = new RadDocument[2];
            
Rd_Ary[0]=ImportHtml(Convert.ToString("<P>String1</P>"));
Rd_Ary[1] = ImportHtml(Convert.ToString("<P>String2</P>"));

Alternative code:

 Rd_Ary.SetValue(ImportHtml(Convert.ToString("<P>String1</P>")), 0);
 Rd_Ary.SetValue(ImportHtml(Convert.ToString("<P>String2</P>")), 1);

Dimitar
Telerik team
 answered on 27 Jul 2016
5 answers
130 views

Hello,

How can I remember and restore IsExpanded state in bound self-referencing hierarchy grid when source collection (BindingList<T>) is updated? 

Basically I see 2 solutions, remember the rows state before update and restore it after, or make IsExpanded property in bound object and update it accordingly.

The problem with first approach is that I don't know, which events I should handle to remember and restore IsExpanded state for all updates.

For the second approach I was able to handle RowFormatting event and set initial expanded state for the row. But then I was not able to find a correct event to update IsExpanded value in corresponding object when row is expanded or collapsed by user.

Could someone help?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Jul 2016
1 answer
293 views

Hi,

When running on high DPI screens, with scaling set to e.g. 200%, the checkbox portion of RadCheckBox does not scale. It stays at the 16x16 px checkbox. The text and the width and height scales perfectly, but theactual checkbox stays at the 100% / 96dpi size on all DPI settings and all scale values.

All other parts of the Telerik WinForms controls scale as expected, so it's only the checkbox that doesn't behave as expected.

 Is this a bug, or is there some way to tell the checkbox section to increase size?

Here is the code I use to tell theform that it must scale (which works perfectly on all other controls):

this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.AutoSize = true;

// m_DpiScale is the sxaling size of the users screen, 1.0 for 100%, 1.5 for 150% and so on.
this.Scale(new SizeF(m_DpiScale, m_DpiScale));

I'm using Telerik version 2016.2.608.40.

Best regards

Thomas

 

Dimitar
Telerik team
 answered on 27 Jul 2016
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)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?