KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

GridView Discussion
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Thu Sep 16, 2004 12:00 pm    Post subject: Reply with quote

thanks cappy - i've lost it (well, not really lost - more like: enhanced it past the capabilities of the current dev. build!) ... :0)
Back to top
View user's profile Send private message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Thu Sep 16, 2004 12:10 pm    Post subject: Reply with quote

lol

@smudley: you got mail

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
smudley
KiXforms Dabbler
KiXforms Dabbler


Joined: 14 Jul 2004
Posts: 9

PostPosted: Thu Sep 16, 2004 2:39 pm    Post subject: Reply with quote

Thanks, I got it.
Pretty impressive!
Ahh, the possibilities....
Back to top
View user's profile Send private message
krabourn
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 273
Location: San Antonio. TX

PostPosted: Thu Sep 16, 2004 3:07 pm    Post subject: Reply with quote

Someone asked for tooltips per column. Is that doable?
_________________
Kelly
Back to top
View user's profile Send private message Send e-mail MSN Messenger
krabourn
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 273
Location: San Antonio. TX

PostPosted: Sun Oct 17, 2004 10:28 pm    Post subject: Reply with quote

I have started trying to mess with the gridview. I am rewriting one of my apps. I really need to be able to remove columns.

Things I noticed.
    I could not enumerate the gridview unless I used indexes. I could not do for each row or column.
    Why is the column headers called HeaderText instead of Text?
    Unable to remove columns.

_________________
Kelly
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Sun Oct 17, 2004 10:50 pm    Post subject: Reply with quote

I would hold-off playing with the gridview until the next dev. build. I have changed the object model somewhat, trying to simplify it more.

In terms of removing columns, that won't be there for a while, one can tear-down and rebuild the grid with a different number of columns, but simply inserting columns will not be supported on day-one.

In terms of enuming collections, that won't be there on day one either - they are much work and aren't really needed - one can just just index through the collection. They'll be there one day, but not in the short-term.

The simplification I'm doing is to move away from the object-based cells (many different celltypes) to having just one cell/column object, that supports different "valuetypes" and "controltypes", this has been what I've been struggling with for many weeks now, which approach to take.

Have been doing much GridView coding with both approaches and haven't 100% made-up my mind yet,.

-Shawn
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Sun Oct 17, 2004 11:04 pm    Post subject: Reply with quote

This is what the "typed" approach looks like. This column would hold (for example) a numeric value indicating an amount - with min and max values.

$Column = $GridView.Columns.Add("Debit(-)")
$Column.ValueType = "Numeric"
$Column.ControlType = "TextBox"
$Column.MinimumValue = 0
$Column.MaximumValue = 99999

$Column = $GridView.Columns.Add("Balance")
$Column.ValueType = "Numeric"
$Column.ControlType = "TextBox"
$Column.MinimumValue = 0
$Column.MaximumValue = 99999

and so on, the object-based approach entails first creating a "celltype" object, with properties, that can be applied to one or many columns, or to one or many cells, like this:

$MoneyCell = $System.NumberCellType()
$MoneyCell.MinimumValue = 0
$MoneyCell.MaximumValue = 99999

Then apply to a column like this:

$Column = $GridView.Columns.Add("Debit(-)", $MoneyCell)

$Column = $GridView.Columns.Add("Balance", $MoneyCell)

I've reviewed many of the comercially available grids out there - some take the first approach, some take the second. dotnet takes the second. The "easier-to-use" ones take the first. Like I said, haven't made-up my mind yet - currently I have to versions of the dev. build - one that takes the first, and one that takes the second.

-Shawn
Back to top
View user's profile Send private message
krabourn
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 273
Location: San Antonio. TX

PostPosted: Sun Oct 17, 2004 11:31 pm    Post subject: Reply with quote

Well, then I need to see an example that works with the currently available dev build because once I add a column I can not seem to be able to remove it. I am not worried about inserting columns yet, but I need to be able to at least add to the end and remove from the end. I don't mind having to remove one at a time for now.
_________________
Kelly
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Sun Oct 17, 2004 11:35 pm    Post subject: Reply with quote

Well, tbh the way it will work, is that one will be able to add and remove columns to one's heart content, as long as there are NO rows. As soon as rows are added, columns cannot be added or removed. To change the column configuration, one would need to remove all rows, then change the column config, then add rows back in.

This limitation will go away soon, after the object model has been finalized and after the first initial release. Just not day one.
Back to top
View user's profile Send private message
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Mon Oct 18, 2004 8:08 am    Post subject: Reply with quote

shawn.
me not sure why you used this three step way of creating the columns on the second option...
if it's a must, well, it's not.
afaik, I should be able to do simply:

$ = $GridView.Columns.Add("Debit(-)", $System.NumberCellType)
$ = $GridView.Columns.Add("Balance", $System.NumberCellType)


this way it does not look so spooky and complex.

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
jre2106
KiXforms Novice
KiXforms Novice


Joined: 23 Sep 2004
Posts: 1

PostPosted: Mon Oct 18, 2004 2:49 pm    Post subject: GridView and checkbox Reply with quote

I want to add checkboxes on a gridview columns?
Is someone have an example ?

Thanks.
jre
________
Jailbroken


Last edited by jre2106 on Fri Feb 25, 2011 4:09 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Mon Oct 18, 2004 3:10 pm    Post subject: Reply with quote

I don't think that this is possible yet ... maybe later in the development.
What makes me think so you ask? .CheckBoxes aren't members of Gridview [yet], at least that is what I read in the docs

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Oct 18, 2004 7:50 pm    Post subject: Reply with quote

I have completed CheckBoxes for GridView, they will be in the next dev. build ...

So jooel, you don't think that "object-oriented" celltype approach is that scary eh, thats a good thing ... me leaning back to going that way then.

-Shawn
Back to top
View user's profile Send private message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Tue Oct 19, 2004 7:40 am    Post subject: Reply with quote

Just for the case you need another opinion...
I agree etc.

Wink

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Mon Jan 10, 2005 8:38 am    Post subject: Reply with quote

Allright,

now that I started to work with Gridview it's time to get into it a bit deeper.

I read here that CheckBoxes are already available (per Column?), nice, but what I actually (and a bit desperately) need would be ComboBoxes.
You know, nice little dropdown things to choose between two (or more) options.

Is it there already? Or if not, when do we get these Very Happy

[edit: can of course work around this lack until it's there]

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group