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.
}
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
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?
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;
}
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.
BRHi,
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);
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?
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