CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Editable Grid: Empty row first

Print topic Send  topic

Author Message
coyote999

Posts: 22
Posted: 09/29/2011, 9:39 AM

Dear Codecharge-Users,

is it possible to show the empty row in an editable grid on the first line, instead of the end of table?

Many thanks and greetings from germany
Martin
View profile  Send private message
CodeChargeMVP

Posts: 473
Posted: 10/23/2011, 1:51 AM

I think it should be possible, but by get this I think shall be re program the php code on the php section related to the edit grid.


_________________
Best Regards
Entrepeneur | NT Consultant
View profile  Send private message
roeya


Posts: 181
Posted: 10/23/2011, 3:19 AM

We do the requested feature (empty row first) using jQuery:

give the editable grid table an id called editable and use jQuery to find the row before the last one
take it out and insert it back as the first row

  
$(document).ready(function () {  
     $('table#editable').each( function () {   
            last_row_index = $('table#editable>tbody>tr').size() - 2;   
            $('table#editable>tbody>tr').eq(last_row_index).remove().insertAfter($('table#editable>tbody>tr').eq(0));   
    });  
});  
  

_________________
http://www.infoneto.com/
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.