GeorgeS
Posts: 206
|
| Posted: 02/11/2005, 2:13 PM |
|
HI,
finally I have decided to try this example in one of my projects.
"Step 4.
Add a button to the bottom row of the editable grid and sets its Name property to AddRowBtn. Also set the Enable Validation property to No and leave the Operation property empty. " -- I did this
Here is where I got stuck:
"Under the Format tab of the properties window, set the Value property to Add Row and the type property to button".
-- Format property of WHAT? The button or the grid?
In any case I can not find Value property & type property under the Format tab (if this is the correct Format tab on the left of Data tab?).
I'd appreciate a screen print showing that Format tab with those two properties or a small DemoCharged clip regarding step 4.
_________________
GeorgeS |
 |
 |
joshuamcdonald
|
| Posted: 02/14/2005, 9:57 AM |
|
One solution to this is to just add another Submit button next to the "Submit"button and set return page to the same page and change the caption to Add Row, this will force the page to submit and return to the page adding the number of blank rows that are specified in the grid's Empty Rows property - This is one work around - Hope this helps
Josh
|
|
|
 |
DonB
|
| Posted: 02/15/2005, 5:54 PM |
|
I consolidated the various bits and pieces from their example into two
functions (one javascript the other php), and wrote up some instructions
that should help make sense of this. It's at the URL below. Just click on
"Latest News" to get the article describing how I do it.
It's much cleaner to set up a grid - just one function called in the button
that adds the row, and one function call in the grids BeforeShowRow event.
Three variables must be added to the grid <tr>, too.
By the way, the Format properties refer to setting the button's caption to
"Add Row" and the button's type to "button" (i.e., instead of the default
which is "submit")
--
DonB
http://www.gotodon.com/ccbth
"GeorgeS" <GeorgeS@forum.codecharge> wrote in message
news:2420d2e222efda@news.codecharge.com...
> HI,
> finally I have decided to try this example in one of my projects.
>
> "Step 4.
> Add a button to the bottom row of the editable grid and sets its Name
property
> to AddRowBtn. Also set the Enable Validation property to No and leave the
> Operation property empty. " -- I did this
> Here is where I got stuck:
> "Under the Format tab of the properties window, set the Value property to
Add
> Row and the type property to button".
>
> -- Format property of WHAT? The button or the grid?
> In any case I can not find Value property & type property under the Format
tab
> (if this is the correct Format tab on the left of Data tab?).
>
> I'd appreciate a screen print showing that Format tab with those two
properties
> or a small DemoCharged clip regarding step 4.
> _________________
> GeorgeS
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|