CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Adding auto new row to editable grid.

Print topic Send  topic

Author Message
aakici


Posts: 49
Posted: 12/08/2004, 3:19 PM

I have an editable grid. This grid will contain unknown number of rows. When i need an extra row a new row must be inserted automatically. I found an example in CodeCharge's example pack and applied. I click a button named AddNewRow. Then a row is inserted, but then page reloads and new row disappears. How can add an new row automatically or manually.
_________________
Regards,
M.Alpaslan AKICI
View profile  Send private message
peterr


Posts: 5971
Posted: 12/08/2004, 3:42 PM

Hi,

I don't know why this happens but I suspect that possibly you re-ctreated the example little differently and there is a mistake somewhere.
The CCS example at http://examples.codecharge.com/ExamplePack/EditableGrid...ridAutoRows.php shows that the page isn't reloaded when a new row is added. If your forms works differently then you may need to compare the example to your implementation to find the problem.
I'd recommend that you especially review the JavaScript at http://examples.codecharge.com/ExamplePack/EditableGrid...ridAutoRows.php , and compare to your own page in Live mode.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
gpacotilla

Posts: 6
Posted: 12/10/2004, 1:41 AM

When you disign the editable grid, in properties select Empty Rows = 1
_________________

Game Pacotilla
I like to help
View profile  Send private message
aakici


Posts: 49
Posted: 12/10/2004, 1:07 PM

gpatcotilla's method works. hovewer, i have to submit records. but i want to submit records after i complete entering data to all rows. gpatcotilla's method is good but i am looking for a better choice.
_________________
Regards,
M.Alpaslan AKICI
View profile  Send private message
mrachow


Posts: 509
Posted: 12/11/2004, 12:27 AM

You can let client JavaScript issue a submit event bound to some situation/event you choose.
But I'm not sure about finding a mostly senseful event which signals the end of editing and by that preventing the explicitly press of a submit button?!
_________________
Best regards,
Michael
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.