PDA

View Full Version : Grid behavior



Bob Worsley
16-May-2007, 06:31 PM
Are there any "properties" or settings equivilent to VDF dbGrids for
No_Create_State, No_Delete_State or Child_Entering? If not, how would one
duplicate such? Probably not easily... I looked through the js code and
didn't see anything that looked promising.
Bob

Bob Worsley
18-May-2007, 09:33 PM
I had some time to dig through the js code and in vdfGrid.js I think I found
exactly what I'm looking for, a property named bDisplayNewRow. Setting
this to false should inhibit the user from creating a new row in the grid.
Unfortunately I have no idea how to set it. I thought mention of the new
sServerTable property in the release notes would give me a clue but this
newbie can't seem to figure it out. Anyone help?
Bob

"Bob Worsley" <bworsley@comcast.net> wrote in message
news:0gofeIBmHHA.580@dacmail.dataaccess.com...
> Are there any "properties" or settings equivilent to VDF dbGrids for
> No_Create_State, No_Delete_State or Child_Entering? If not, how would
one
> duplicate such? Probably not easily... I looked through the js code and
> didn't see anything that looked promising.
> Bob
>
>
>
>

Harm Wibier
20-May-2007, 09:16 AM
Hello Bob,

You can set this property by adding vdfDisplayNewRow="false" to the table
tag like:
<table class="VdfGrid" vdfControlType="grid" vdfDisplayNewRow="false"

All properties found on objects that have an html element representing them
(VdfField, VdfForm, VdfGrid / VdfLookup, ..) that are set in the
constructor using: browser.dom.getVdfAttribute can be set on the html tag
this way. The first letter (determining the type) is replaced with "vdf" to
make clear that this are special Ajax Framework properties in the html code.


--
Regards,


Harm Wibier
Data Access Europe B.V.
http://www.dataaccess.nl/

"Bob Worsley" <bworsley@comcast.net> wrote in message
news:3yd$g3bmHHA.1324@dacmail.dataaccess.com...
>I had some time to dig through the js code and in vdfGrid.js I think I
>found
> exactly what I'm looking for, a property named bDisplayNewRow. Setting
> this to false should inhibit the user from creating a new row in the grid.
> Unfortunately I have no idea how to set it. I thought mention of the new
> sServerTable property in the release notes would give me a clue but this
> newbie can't seem to figure it out. Anyone help?
> Bob
>
> "Bob Worsley" <bworsley@comcast.net> wrote in message
> news:0gofeIBmHHA.580@dacmail.dataaccess.com...
>> Are there any "properties" or settings equivilent to VDF dbGrids for
>> No_Create_State, No_Delete_State or Child_Entering? If not, how would
> one
>> duplicate such? Probably not easily... I looked through the js code and
>> didn't see anything that looked promising.
>> Bob
>>
>>
>>
>>
>
>
>

Bob Worsley
20-May-2007, 10:39 AM
Thanks Harm, works as advertised.
Bob

"Harm Wibier" <harm.wibier@dataaccess.nl> wrote in message
news:Z$JwBmumHHA.312@dacmail.dataaccess.com...
> Hello Bob,
>
> You can set this property by adding vdfDisplayNewRow="false" to the table
> tag like:
> <table class="VdfGrid" vdfControlType="grid" vdfDisplayNewRow="false"
>
> All properties found on objects that have an html element representing
them
> (VdfField, VdfForm, VdfGrid / VdfLookup, ..) that are set in the
> constructor using: browser.dom.getVdfAttribute can be set on the html tag
> this way. The first letter (determining the type) is replaced with "vdf"
to
> make clear that this are special Ajax Framework properties in the html
code.
>
>
> --
> Regards,
>
>
> Harm Wibier
> Data Access Europe B.V.
> http://www.dataaccess.nl/
>
> "Bob Worsley" <bworsley@comcast.net> wrote in message
> news:3yd$g3bmHHA.1324@dacmail.dataaccess.com...
> >I had some time to dig through the js code and in vdfGrid.js I think I
> >found
> > exactly what I'm looking for, a property named bDisplayNewRow. Setting
> > this to false should inhibit the user from creating a new row in the
grid.
> > Unfortunately I have no idea how to set it. I thought mention of the
new
> > sServerTable property in the release notes would give me a clue but this
> > newbie can't seem to figure it out. Anyone help?
> > Bob
> >
> > "Bob Worsley" <bworsley@comcast.net> wrote in message
> > news:0gofeIBmHHA.580@dacmail.dataaccess.com...
> >> Are there any "properties" or settings equivilent to VDF dbGrids for
> >> No_Create_State, No_Delete_State or Child_Entering? If not, how would
> > one
> >> duplicate such? Probably not easily... I looked through the js code
and
> >> didn't see anything that looked promising.
> >> Bob
> >>
> >>
> >>
> >>
> >
> >
> >
>
>
>

Edwin van der Velden
21-May-2007, 03:02 AM
To find out about properties there should be a reference guide included in
the latest 1.0 release so you won't have to dig through the js code. This
might save some in time as it will hopefully ibe a better way to look up
properties. If however you should find any properties in the js code which
aren't in the guide I'd gladly hear about that of course. :)

-Edwin


"Bob Worsley" <bworsley@comcast.net> wrote in message
news:3yd$g3bmHHA.1324@dacmail.dataaccess.com...
>I had some time to dig through the js code and in vdfGrid.js I think I
>found
> exactly what I'm looking for, a property named bDisplayNewRow. Setting
> this to false should inhibit the user from creating a new row in the grid.
> Unfortunately I have no idea how to set it. I thought mention of the new
> sServerTable property in the release notes would give me a clue but this
> newbie can't seem to figure it out. Anyone help?
> Bob
>
> "Bob Worsley" <bworsley@comcast.net> wrote in message
> news:0gofeIBmHHA.580@dacmail.dataaccess.com...
>> Are there any "properties" or settings equivilent to VDF dbGrids for
>> No_Create_State, No_Delete_State or Child_Entering? If not, how would
> one
>> duplicate such? Probably not easily... I looked through the js code and
>> didn't see anything that looked promising.
>> Bob
>>
>>
>>
>>
>
>
>

Bob Worsley
21-May-2007, 05:00 PM
The reference does indeed have the properties, but not how to use them.
Harm kindly pointed me in the right direction for that though. That should
probably should be in the reference guide at some point. Unless it is and I
missed it, which wouldn't be the first time...
Bob

"Edwin van der Velden" <edwin.van.der.velden@dataaccess.nl> wrote in message
news:gityc53mHHA.1668@dacmail.dataaccess.com...
> To find out about properties there should be a reference guide included in
> the latest 1.0 release so you won't have to dig through the js code. This
> might save some in time as it will hopefully ibe a better way to look up
> properties. If however you should find any properties in the js code which
> aren't in the guide I'd gladly hear about that of course. :)
>
> -Edwin
>
>
> "Bob Worsley" <bworsley@comcast.net> wrote in message
> news:3yd$g3bmHHA.1324@dacmail.dataaccess.com...
> >I had some time to dig through the js code and in vdfGrid.js I think I
> >found
> > exactly what I'm looking for, a property named bDisplayNewRow. Setting
> > this to false should inhibit the user from creating a new row in the
grid.
> > Unfortunately I have no idea how to set it. I thought mention of the
new
> > sServerTable property in the release notes would give me a clue but this
> > newbie can't seem to figure it out. Anyone help?
> > Bob
> >
> > "Bob Worsley" <bworsley@comcast.net> wrote in message
> > news:0gofeIBmHHA.580@dacmail.dataaccess.com...
> >> Are there any "properties" or settings equivilent to VDF dbGrids for
> >> No_Create_State, No_Delete_State or Child_Entering? If not, how would
> > one
> >> duplicate such? Probably not easily... I looked through the js code
and
> >> didn't see anything that looked promising.
> >> Bob
> >>
> >>
> >>
> >>
> >
> >
> >
>
>
>