andy
Posts: 183
|
Posted: 03/30/2010, 3:26 PM |
|
This is a follow-on to rew-NZ's post here:
http://forums.codecharge.com/posts.php?post_id=97313
As that thread is closed, I'm posting here. If your editable grid includes listboxes and more likely the field that triggers your autofill is a listbox, then you will need to make an additional change to get rew-NZ's method to work.
The problem:
listbox ID isn't appended with the "_rownumber"
Here's an extract of two fields from an editable grid one is a text box [input] and one is a listbox [select]
<td width="400"><input id="EditablegridnameFieldname1_{Editablegridname:rowNumber}"
value="{Description}" maxlength="250" size="50" name="{Description_Name}"> <br>
<select id="EditablegridnameFieldname2" name="{Fieldname2_Name}">
<option selected value="">Select Value</option>
{Fieldname2_Options}
</select>
</td>
The answer:
Append _{Editablegridname:rowNumber} to the select id
<td width="400"><input id="EditablegridnameFieldname1_{Editablegridname:rowNumber}"
value="{Description}" maxlength="250" size="50" name="{Description_Name}"> <br>
<select id="EditablegridnameFieldname2_{Editablegridname:rowNumber}" name="{Fieldname2_Name}">
<option selected value="">Select Value</option>
{Fieldname2_Options}
</select>
</td>
Refer to Rez_NZ's sample code in the above post for the rest.
_________________
Andy
RAD tools for rich UI controls:
http://www.koolphptools.com |