I have a radform with 3 panels. The middle panel displays the initial window and any called child forms as this is the mdi parent. I found I could disable floating in each window by placing the following code:
this-object:radcenterWindow:AllowedDockState = Telerik.WinControls.UI.Docking.AllowedDockState:All and not Telerik.WinControls.UI.Docking.AllowedDockState:Floating.
How can I disable floating on any loaded child form?
define variable r-object as class Telerik.WinControls.UI.RadForm.
define variable r-program as character no-undo.
r-program = "programs.POSPRO".
r-object = dynamic-new r-program().
r-object:MDIParent = this-object.
r-object:show().
Thanks
Mark
Dear forum,
I would like to know if it is possible to change the background color of the ActionButton of a RadSplitButtonElement when it is pressed (not expanded).
Any help is appreciated
Roberto
Hello,
I was wondering if there is a way to know when the fire of CellValueNeeded event will end ? Like is there a way to know the cells row and column range on which the update/synchronize will be done ?
Hoping my question is understandable :)
Greetings.
Hello,
I'm trying to add custom menu item to the header cells context menu but i have weird display when i am using derived class instead of RadMenuItem class directly (see attached image).
Can you explain to me what is wrong with my code ?
public
class
CustomOpMenuItem : RadMenuItem
{
private
MyForm _form;
private
int
_columnIndex;
private
CustomOp _op;
public
CustomOpMenuItem (MyForm form,
int
columnIndex, CustomOp op)
{
_op = op;
switch
(_op)
{
case
CustomOp.CUSTOM1:
this
.Text =
"Custom 1"
;
break
;
case
CustomOp.CUSTOM2:
this
.Text =
"Custom 2"
;
break
;
case
CustomOp.CUSTOM3:
this
.Text =
"Custom 3"
;
break
;
}
_columnIndex = columnIndex;
_form = form;
this
.Click += onClick;
}
private
void
onClick(
object
sender, EventArgs e)
{
_form.DoCustomOp(_columnIndex,_op);
}
}
private
void
onContextMenuOpening(
object
sender, VirtualGridContextMenuOpeningEventArgs e)
{
for
(
int
i = 0; i < e.ContextMenu.Items.Count; i++)
{
if
(e.ContextMenu.Items[i].Text ==
"Pinned state"
)
{
// hide the Delete option from the context menu
e.ContextMenu.Items[i].Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
if
(i != 0)
{
// hide the separator before the Delete option
e.ContextMenu.Items[i - 1].Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
}
}
}
if
(e.RowIndex == RadVirtualGrid.HeaderRowIndex)
{
RadMenuSeparatorItem separator =
new
RadMenuSeparatorItem();
e.ContextMenu.Items.Add(separator);
RadMenuItem customMenuItem =
new
RadMenuItem();
customMenuItem.Text =
"Custom Data Operation"
;
e.ContextMenu.Items.Add(customMenuItem);
e.ContextMenu.Items.Add(separator);
e.ContextMenu.Items.Add(
new
CustomOpMenuItem(
this
, e.ColumnIndex, CustomOp.CUSTOM2));
e.ContextMenu.Items.Add(separator);
e.ContextMenu.Items.Add(
new
CustomOpMenuItem(
this
, e.ColumnIndex, CustomOp.CUSTOM3));
}
}
Regards.
Looking at some options for modernizing an old scheduling application.
Is it possible to set scheduler to put the time and date on the same axis? All the demos/documentation I can find do not show anything similar.
I have a RadForm that contains multiple Radtextboxes. How can I have one of them be the focused box once the form has opened?
I have tried placing both lines of code below in the constructor but neither initialize the cursor in the iUSERNAME text box.
this-object:iUSERNAME:Focus().
this-object:iUSERNAME:Select().
Thanks
Mark
Hi, I'm evaluating this control.
I'm opening a docx file in the control as a RadDocument. The file is right to left file and showing two pages on the screen in the wrong direction (page 1 on the left) - event when I change the control to RightToLeft=Yes (this only changes the scroll to the other side).
I would like one of two options:
1. Show only one page on the screen at a time (scroll down will go to second page). I found this can be done when making my window small but I'd like it to open maximized.
2. Show two pages but in the correct direction (page 1 on the right and page 2 on the left).
Any help?
Thanks!!