Plugin Developer Discussion

Discussion for FogBugz Plugin developers

Selecting multiple

I am trying to allow the user to select several values:
var row = new CEditableTableRow();
var options = new Dictionary<String,String>();
options.Add("multiple",null);
options.Add("SIZE","7");
row.AddCell(Forms.SelectInput(api.AddPluginPrefix("REPORTCOLUMNS2"), reportColumns().ToArray(), null, reportColumns().ToArray(),options));
row.AddCell("Hello there!");
return row;

This generates almost correct HTML:
<td  >
            <select  name="P13_REPORTCOLUMNS2"  multiple=""  SIZE="7" ><option value="Start">Start</option><option value="End">End</option><option value="Project">Project</option><option value="Case">Case</option><option value="User">User</option><option value="GrandTotal">GrandTotal</option></select><script>DLCL();</script>

        </td>

BUT:
FogBugz seems to ignore the multiple keyword, and renders a select element where only one element can be selected....

Is it a bug, or am I doing something wrong?
Espen Halsaa Albrektsen Send private email
Monday, September 21, 2009
 
 
Hm, that's because our special droplist code is just looking for any <select> and transforming it.  Try adding

options.Add("class", "nodroplist")

to your droplist.
David Fullerton Send private email
Monday, September 21, 2009
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz