Symantec Management Platform (SMP) Community

 View Only

Using the SearchSelectControl 

Jun 17, 2010 05:30 PM

Recently a developer had asked me :

"We are using two SearchSelectControls in our solution. The dropdown list of the second SearchSelectControl (say B) gets updated upon the selection change of the first SearchSelectControl (say A).  We would like to have the first item in the dropdown list in the second SelectSearchControl (B) getting selected by default upon this event."

Looking at the WebControlSampleSite download that we have available in the downloads section, I copied the sample for chaining two SearchSelectControls together.  (https://www-secure.symantec.com/connect/downloads/web-controls-sample-site in ChainingOfSearchSelect.aspx)

From the sample, I did not see how I could get notification when the master SearchSelectControl invoked a callback to update the slave SearchSelectControl.  So, I figured that I would change the sample and not chain the slave SearchSelectControl to the master SearchSelectControl with ClientControls.Add( ) API. 

Instead, I decided to use javascript to chain the two SearchSelectControls.  When the master SearchSelectControl is changed, I have a ClientSideOnSelectionChange javascript event that when invoked will manually do a callback on the slave SearchSelectControl.  When the SearchSelectControl callback returns, I then set the selection to the first item in the SearchSelectControl.

Attached is the sample code.
 

Statistics
0 Favorited
0 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
zip file
Default.zip   2 KB   1 version
Uploaded - Mar 16, 2020

Tags and Keywords

Comments

Jun 18, 2010 09:05 AM

Thanks Riaz.

Related Entries and Links

No Related Resource entered.