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 |
 |
 |
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 |
 |
 |
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 |
 |
 |
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 |
 |
 |
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 |
 |
 |