So here is my issue (I have searched in the forums and can't find an answer)...
I have a RadDropDownList containing tuples of strings. When I click on the Drop Down List, I am expecting this method to be called right away, but once I select the option I want, I have to press the down arrow on the drop down again before it will call the JumpManager code at the bottom.
Basically I want the jumpmanager to be called when I select an option from the drop down, and not have to click the arrow again.
I have tried debugging but am failing to see how to fix it.
Any and all help would be great. Thanks!
*****************************************
P.S. I am new to C# and winforms so that is part of the issue also. Please see attached screenshots to get a better idea of what I'm describing above. I want the new tab for the selection from the drop down list to open without having to click the drop down arrow again.
Thanks!
void
mplSpecificDDL_Click(
object
sender, EventArgs e)
{
//cast sender object to type RadDropDownList
RadDropDownList snd = sender
as
RadDropDownList;
int
i = snd.SelectedIndex;
Console.Write(snd.SelectedItem);
//if it's a valid click...
if
(i >= 0)
{
//get the mpl id for the MPL date range selected
int
mplid = tmpDDL_MPLLists[i].Id;
FactoryOrder myOrder =
new
FactoryOrder();
//create an order tuple to open the specific MPL page we want to view
myOrder.AddOrderLine(
"SpecificList"
, mplid.ToString());
//jump manager to pull up a specific MPL window tab
JumpOrder myJumpOrder =
new
JumpOrder();
myJumpOrder.factoryOrder = myOrder;
myJumpOrder.module =
"MPL"
;
myJumpOrder.targetWin =
"MPLS"
;
//issue: new MPLS window only opens when
MainDockWin.mainJumpManager.PassJumpOrder(myJumpOrder);
MainDockWin.mainJumpManager.GoToWindow();
}
}