[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 580: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 636: sizeof(): Parameter must be an array or an object that implements Countable
Unofficial UNIT-e Forum • On Selected Index Changed within II
Page 1 of 1

On Selected Index Changed within II

Posted: Mon Mar 06, 2017 2:52 pm
by ryanfoster659
Hello,

does anyone know if you can use the c# for .selectedindexchanged to get some nice code to show a textbox if there is a value you want selected or not?

this is what i have so far to see if it can be implemented but no message box shows :
object [] uniteLookUp_uniTeDataManager1_enrolmenteventcustom2_code4_Found = webClient.Controls.Find("uniteLookUp_uniTeDataManager1_enrolmenteventcustom2_code4",true);
if (uniteLookUp_uniTeDataManager1_enrolmenteventcustom2_code4_Found.Length>0)
{
this.uniteLookUp_uniTeDataManager1_enrolmenteventcustom2_code4 = webClient.Controls.Find("uniteLookUp_uniTeDataManager1_enrolmenteventcustom2_code4",true)[0] as UNITeWebLookUp;
this.uniteLookUp_uniTeDataManager1_enrolmenteventcustom2_code4.SelectedIndexChanged += change_DropDown;
}

void change_DropDown(object sender, EventArgs e)
{
MessageBox.Show("Hello");
}

Re: On Selected Index Changed within II

Posted: Tue May 16, 2017 11:30 pm
by robinwilson16
Hello Ryan

Sorry I'm not able to help with this as this is not something I have worked with and I don't believe we have the required II licence.
If this is a web app, you aren't able to use standard JavaScript for this are you where maybe it could be outputted as part of the HTML?

What about testing with OnClick just in case it's not liking the index change event?

Sorry I can't be any more help.

Robin