Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
TableToGrid issue with Form Submission
29/12/2009
21:17
Avatar
eljaywilson
Member
Members
Forum Posts: 22
Member Since:
09/11/2009
sp_UserOfflineSmall Offline

I have a table that I have successfully used tabletogrid on.  The columns sort properly (except for the column with a button), the layout is fine (using a dynamic caption and height of 'auto').  The big problem is that the button that is part of the table is also part of a form.  I have tried with the button type as 'Submit' and also just as a button that calls a javascript function to submit the form.  Neither works.  If I remove the tabletogrid call, then the form submits just fine.

Here is some of the table layout:

<table id='AO_ViewOpen' class='grid_table' border='0' cellpadding='2' width='100%' cellspacing='3'><thead>
<TR>
<th align=left height='25' valign='center'><span>ereq</span></th>
<th align=left height='25' valign='center'><span>Creator</span></th>
<th align=left height='25' valign='center'><span>Requestor</span></th>

<th align=left height='25' valign='center'><span>Cost</span></th>
<th align=left height='25' valign='center'><span>Created</span></th>
<th align=left height='25' valign='center'><span>Status</span></th>
<th align=left height='25' valign='center'><span>Vendor</span></th>
</TR></thead><tbody><TR><form id = 'AO' action='ViewRequest.asp' method='POST' name='AO'>
<input type='hidden' name='AO' value='AO'>
<TD align=left ><font size='2'><input type='submit' name='ereq' value=1722090></font></TD>
<TD align=left ><font size='2' color='#000000'>Larry  Wilson</font></TD>
<TD align=left ><font size='2' color='#000000'>LJ Wilson</font></TD>
<TD align=left ><font size='2' color='#000000'>$0.02</font></TD>
<TD align=left ><font size='2' color='#000000'>11/5/2009 10:20:59 AM</font></TD>

<TD align=left ><font size='2' color='#000000'>Created</font></TD>
<TD align=left ><font size='2' color='#000000'>CHARLES RIVER LABORATORIES </font></TD>
</form></TR>
</tbody></TABLE><br>
<table id='PO_ViewOpen' class='grid_table' border='0' cellpadding='2' width='100%' cellspacing='3'><thead>
<TR>
<th align=left height='25' valign='center'><span>ereq</span></th>
<th align=left height='25' valign='center'><span>Creator</span></th>
<th align=left height='25' valign='center'><span>Requestor</span></th>
<th align=left height='25' valign='center'><span>Cost</span></th>
<th align=left height='25' valign='center'><span>Created</span></th>

<th align=left height='25' valign='center'><span>Status</span></th>
<th align=left height='25' valign='center'><span>Vendor</span></th>
</TR></thead><tbody><TR><form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'>
<input type='hidden' name='PO' value='PO'>
<TD align=left ><font size='2'><input type='submit' name='ereq' value=1752972></font></TD>
<TD align=left ><font size='2' color='#000000'>John Doe</font></TD>
<TD align=left ><font size='2' color='#000000'>John Doe</font></TD>
<TD align=left ><font size='2' color='#000000'>$3,298.00</font></TD>
<TD align=left ><font size='2' color='#000000'>12/28/2009 8:38:45 AM</font></TD>
<TD align=left ><font size='2' color='#000000'>Assigned</font></TD>
<TD align=left ><font size='2' color='#000000'>Dundas Charting</font></TD>

</form></TR>
<tbody><TR>
<form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'>
<input type='hidden' name='PO' value='PO'>
<TD align=left ><font size='2'><input type='submit' name='ereq' value=1743914></font></TD>
<TD align=left ><font size='2' color='#000000'>Larry  Wilson</font></TD>
<TD align=left ><font size='2' color='#000000'>LJ Wilson</font></TD>
<TD align=left ><font size='2' color='#000000'>$0.01</font></TD>
<TD align=left ><font size='2' color='#000000'>12/10/2009 1:36:27 PM</font></TD>
<TD align=left ><font size='2' color='#000000'>Created</font></TD>
<TD align=left ><font size='2' color='#000000'></font></TD>
</form></TR>
<tbody><TR>
<form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'>
<input type='hidden' name='PO' value='PO'>
<TD align=left ><font size='2'><input type='submit' name='ereq' value=1743263></font></TD>

<TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD>
<TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD>
<TD align=left ><font size='2' color='#000000'>$0.00</font></TD>
<TD align=left ><font size='2' color='#000000'>12/9/2009 3:03:49 PM</font></TD>
<TD align=left ><font size='2' color='#000000'>Created</font></TD>
<TD align=left ><font size='2' color='#000000'></font></TD>
</form></TR>
<tbody><TR>
<form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'>
<input type='hidden' name='PO' value='PO'>
<TD align=left ><font size='2'><input type='submit' name='ereq' value=1743034></font></TD>
<TD align=left ><font size='2' color='#000000'>Larry  Wilson</font></TD>
<TD align=left ><font size='2' color='#000000'>LJ Wilson</font></TD>

<TD align=left ><font size='2' color='#000000'>$0.01</font></TD>
<TD align=left ><font size='2' color='#000000'>12/9/2009 11:55:25 AM</font></TD>
<TD align=left ><font size='2' color='#000000'>Created</font></TD>
<TD align=left ><font size='2' color='#000000'></font></TD>
</form></TR>
<tbody><TR>
<form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'>
<input type='hidden' name='PO' value='PO'>
<TD align=left ><font size='2'><input type='submit' name='ereq' value=1742906></font></TD>
<TD align=left ><font size='2' color='#000000'>Larry  Wilson</font></TD>
<TD align=left ><font size='2' color='#000000'>LJ Wilson</font></TD>
<TD align=left ><font size='2' color='#000000'>$0.01</font></TD>
<TD align=left ><font size='2' color='#000000'>12/9/2009 9:46:10 AM</font></TD>

<TD align=left ><font size='2' color='#000000'>Created</font></TD>
<TD align=left ><font size='2' color='#000000'></font></TD>
</form></TR>
<tbody><TR>
<form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'>
<input type='hidden' name='PO' value='PO'>
<TD align=left ><font size='2'><input type='submit' name='ereq' value=1742450></font></TD>
<TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD>
<TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD>
<TD align=left ><font size='2' color='#000000'>$0.00</font></TD>
<TD align=left ><font size='2' color='#000000'>12/8/2009 2:33:56 PM</font></TD>
<TD align=left ><font size='2' color='#000000'>Created</font></TD>
<TD align=left ><font size='2' color='#000000'></font></TD>

</form></TR>
<tbody><TR>
<form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'>
<input type='hidden' name='PO' value='PO'>
<TD align=left ><font size='2'><input type='submit' name='ereq' value=1742444></font></TD>
<TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD>
<TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD>
<TD align=left ><font size='2' color='#000000'>$0.00</font></TD>
<TD align=left ><font size='2' color='#000000'>12/8/2009 2:29:35 PM</font></TD>
<TD align=left ><font size='2' color='#000000'>Created</font></TD>
<TD align=left ><font size='2' color='#000000'></font></TD>
</form></TR>
<tbody><TR>
<form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'>
<input type='hidden' name='PO' value='PO'>
<TD align=left ><font size='2'><input type='submit' name='ereq' value=1681097></font></TD>

<TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD>
<TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD>
<TD align=left ><font size='2' color='#000000'>$0.00</font></TD>
<TD align=left ><font size='2' color='#000000'>9/2/2009 11:30:45 AM</font></TD>
<TD align=left ><font size='2' color='#000000'>Created</font></TD>
<TD align=left ><font size='2' color='#000000'></font></TD>
</form></TR>
<tbody><TR>
<form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'>
<input type='hidden' name='PO' value='PO'>
<TD align=left ><font size='2'><input type='submit' name='ereq' value=1662825></font></TD>
<TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD>
<TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD>

<TD align=left ><font size='2' color='#000000'>$3,500.00</font></TD>
<TD align=left ><font size='2' color='#000000'>8/5/2009 9:51:15 AM</font></TD>
<TD align=left ><font size='2' color='#000000'>Created</font></TD>
<TD align=left ><font size='2' color='#000000'></font></TD>
</form></TR>
<tbody><TR>
<form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'>
<input type='hidden' name='PO' value='PO'>
<TD align=left ><font size='2'><input type='submit' name='ereq' value=1658293></font></TD>
<TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD>
<TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD>
<TD align=left ><font size='2' color='#000000'>$0.00</font></TD>
<TD align=left ><font size='2' color='#000000'>7/28/2009 4:35:10 PM</font></TD>

<TD align=left ><font size='2' color='#000000'>Created</font></TD>
<TD align=left ><font size='2' color='#000000'></font></TD>
</form></TR>
<tbody><TR>
<form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'>
<input type='hidden' name='PO' value='PO'>
<TD align=left ><font size='2'><input type='submit' name='ereq' value=1602129></font></TD>
<TD align=left ><font size='2' color='#000000'>John Doe</font></TD>
<TD align=left ><font size='2' color='#000000'>dfg dfg</font></TD>
<TD align=left ><font size='2' color='#000000'>$0.00</font></TD>
<TD align=left ><font size='2' color='#000000'>5/4/2009 12:50:57 PM</font></TD>
<TD align=left ><font size='2' color='#000000'>Created</font></TD>
<TD align=left ><font size='2' color='#000000'></font></TD>

</form></TR>
</tbody></TABLE>

Nothing happens when I press the submit button when the table is converted to a grid.  I have compared source from both with and without tabletogrid, and the source is the same.
Any ideas?
29/12/2009
21:51
Avatar
eljaywilson
Member
Members
Forum Posts: 22
Member Since:
09/11/2009
sp_UserOfflineSmall Offline

Correction - when I inspect the submit button (with the tabletogrid conversion), I do not see the form tag.  When I inspect the submit button (without calling tabletogrid), the form tag is there.

Why would the tabletogrid be stripping off the form?

No tabletogrid:

<tr>
<form name="ViewRequest" method="POST" action="ViewRequest.asp"/>
<input type="hidden" value="PO" name="strRequestType"/>
<td align="left">
<font size="2">
<input type="submit" value="1743914" name="ereq" style="width: 75px;"/>
</font>
</td>
With tabletogrid:

<tr id="2" class="ui-widget-content jqgrow ui-row-ltr" role="row">
<td title="" style="" role="gridcell">
<font size="2">
<input type="submit" value="1743914" name="ereq" style="width: 75px;"/>
</font>
</td>

29/12/2009
22:00
Avatar
eljaywilson
Member
Members
Forum Posts: 22
Member Since:
09/11/2009
sp_UserOfflineSmall Offline

Got that part figured out.  Have to include the entire form inside the cell (<TD>form tag & elements</TD>) for it to work.  Now the only issue is why I can't sort by the value of the submit button inside that form.

30/12/2009
00:33
Avatar
eljaywilson
Member
Members
Forum Posts: 22
Member Since:
09/11/2009
sp_UserOfflineSmall Offline

Correction, in IE the form submission works fine, but when I include the form inside the cell (<TD>), clicking on the column headers to sort results in the grid doubling the rows.  This does not happen in Firefox.

Any ideas?

25/08/2010
19:05
Avatar
chiragvels
Member
Members
Forum Posts: 4
Member Since:
25/08/2010
sp_UserOfflineSmall Offline

i am using table to grid. But when i click on sort data it is bring only data of table height.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
56 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information