C#.
I have 2 RadListBoxes.( Assign/Unassign process)
When I Assign items (add items to the right listbox and remove them from the left listbox).
If Assign ListBox has at least 1 item I have to enable contextMenu or radcontextMenu for this ListBox.
So when there is at least one item user can right click and open a response window to be able to edit some details.
My problem is that I can not assign dynamically contextMenu.
At the end of the code to assign the item I wrote:
but nothing happened on the right click.
Menu appears only if I specify in the property of RadListBox (RadContextMenu) at the beginning,and not using the code.
Is there an option to do this from the code?
Thank you,
Victoria.
I have 2 RadListBoxes.( Assign/Unassign process)
When I Assign items (add items to the right listbox and remove them from the left listbox).
If Assign ListBox has at least 1 item I have to enable contextMenu or radcontextMenu for this ListBox.
So when there is at least one item user can right click and open a response window to be able to edit some details.
My problem is that I can not assign dynamically contextMenu.
At the end of the code to assign the item I wrote:
if (radListBox_SelectLOBs.Items.Count > 0)
{
radListBox_SelectITMs.ContextMenuStrip = contextMenuStrip_VF;
}
Menu appears only if I specify in the property of RadListBox (RadContextMenu) at the beginning,and not using the code.
Is there an option to do this from the code?
Thank you,
Victoria.