I am using a RadDiagram control to place custom RadDiagramsShapes on it (C#). One of my requirements is to display a Form by double-clicking on a Shape. I followed the rationale of https://www.telerik.com/forums/assigning-raddiagramshape-mouseclick-eventhandler-programmatically, but I have not been capable of implementing the necessary event handler. I checked the documentation and looked for examples that could help me. However, I have not found anything useful to solve this issue.
I am just starting in winForms and C#, so I would be very grateful if you could help me with this problem.
Thank you.
Greetings,
In order to apply fade-in effect to rad controls (if possible), a nice approach is to increase the opacity of RootElement from 0 to 1 gradually with a timer. It works just fine with most of the rad controls including radbuttons, but there is an issue when I apply this method to a rad group box.
I attached a gif file that illustrates the issue (please notice that the blue background is actually the background of radgroupbox itself, not the container form).
Changing opacity of Radgroupbox.RootElement only affects the border frame of the box, not the whole box itself (background color stays still even with RootElement.Opacity = 0 ).
Any suggestion to fade in a radgroupbox ?
Thanks in advance.
Hello ,
I need to change the selected value in my parent form but the component is in the user controller .
So when I set the value to the multicombobox does not work knowing that the text and selected index take the value well .
Dim page As New RadPageViewPage()
Dim panel As New MyPanel()
strip= TryCast(RadPage1.ViewElement, RadPageViewStripElement)
page.Text = "page" & (strip.Items.Count + 1)
Dim Liste1 As List(Of object)
panel.RadMultiColCmbo1.DisplayMember = "Name"
panel.RadMultiColCmbo1.ValueMember = "PK"
panel.RadMultiColCmbo1.DataSource = Liste1
dim object 1 = myobject
panel.RadMultiColCmbo1.Selectedvalue =myobject.PK
Please help!
Thank you
Hello Telerik,
I linked a radPivotFieldList with a radPivotGrid. All of my radPivotFieldList's Controls used the CustomName expect the FieldList.
Is there any way to use Custom Name instead of Property Name ?
I try this code too but it doesn't work
radPivotFieldList1.FieldsControl.Nodes[0].RootNode.Text="my text0";
Finally I try to remove a Node and adding another but it doesn't work because of the FielList is automaticaly updating after :
Telerik.WinControls.UI.RadTreeNode test = new RadTreeNode(){Value =radPivotFieldList1.FieldsControl.Nodes[0].Value, Text="test" } ;
radPivotFieldList1.FieldsControl.Nodes.Remove(radPivotFieldList1.FieldsControl.Nodes[0]);
radPivotFieldList1.FieldsControl.Nodes.Add(test);
Best regards
Hi guys,
Is it possible to change the RadFormTitleBarElement default context menu (Minimize, Maximize, Restore, etc.) for a customized one? I have seen that RadTitleBar has a ContextMenuProperty property exposed, but I cannot find it in my RadForm embebed title bar.
Thank you very much.
Hi,
How can I do to have a simple RadRichTextEditor. See attached image please.
Best regards.
Eusebio.
I accidentally deleted a top level menu item in the RadMenu control on the main form of the project. This action could not be undone. Attempts to add the menu element back resulted in errors about duplicate entries. VS2019 subsequently crashed and restarted. Further attempts to open the main form of the application resulted in errors upon opening the form.
With all efforts to recover the form proving futile, I deleted the form and attempted to add a new RadForm to replace it. However, instead of a new form being added only a VB code module is created. It is now impossible to add any new type of RadForm to this project, though it is possible to create a new project.
Is there a known solution to this problem? If not, then I will create a new project and main form and import the other project modules.
The grid does not seem to be subscribing to PropertyChanged on INotifyPropertyChanged. All the bound data objects provide INotifyPropertyChanged, but when they go to fire this event the event handler is null; meaning no one is listening. The grid keeps showing the old data until I select the row.
Here is code to reproduce it:
public
partial
class
RadForm1 : RadForm
{
private
Timer _timer;
private
ObservableCollection<GridData> _data;
public
static
bool
GridBound =
false
;
public
RadForm1()
{
InitializeComponent();
}
protected
override
void
OnLoad( EventArgs e )
{
base
.OnLoad( e );
var gv =
new
RadGridView();
gv.Dock = DockStyle.Fill;
Controls.Add( gv );
_data =
new
ObservableCollection<GridData>()
{
new
GridData { First =
"A"
, Second =
"B"
, Third =
"C"
},
new
GridData { First =
"AA"
, Second =
"BB"
, Third =
"CC"
},
new
GridData { First =
"AAA"
, Second =
"BBB"
, Third =
"CCC"
}
};
gv.DataSource = _data;
GridBound =
true
;
_timer =
new
Timer();
_timer.Tick += _timer_Tick;
_timer.Interval = 1000;
_timer.Start();
}
private
void
_timer_Tick(
object
sender, EventArgs e )
{
_data[0].First =
"D"
;
_data[1].Second =
"EE"
;
_data[2].Third =
"FFF"
;
_timer.Stop();
}
private
class
GridData : INotifyPropertyChanged
{
public
event
PropertyChangedEventHandler PropertyChanged;
private
void
OnPropertyChanged(
string
name )
{
if
( PropertyChanged ==
null
&& RadForm1.GridBound )
{
Debug.WriteLine( $
"PropertyChanged is null, grid has not subscribed! Name = '{name}'"
);
}
PropertyChanged?.Invoke(
this
,
new
PropertyChangedEventArgs( name ) );
}
private
string
_first;
private
string
_second;
private
string
_third;
public
string
First {
get
=> _first;
set
{ _first = value; OnPropertyChanged(
"First"
); } }
public
string
Second {
get
=> _second;
set
{ _second = value; OnPropertyChanged(
"Second"
); } }
public
string
Third {
get
=> _third;
set
{ _third = value; OnPropertyChanged(
"Third"
); } }
}
}