Welcome Guest Search | Active Topics | Sign In | Register

CheckedItems on a Grid Options
Ellery Gomez
Posted: Monday, August 17, 2009 7:11:47 PM
Rank: Member
Groups: Member

Joined: 8/4/2009
Posts: 16
Hi everybody,

I want to know when a user checks an item on the grid, I'm using a code that I found it right here in the forum, the code is the following:

Code: Visual Basic.NET
Dim EOItem As EO.Web.GridItem
        For Each EOItem In Me.grid1.CheckedItems()
            MsgBox("Test")
        Next EOItem


I call this code from a button. 2 things, number one, If I change the property CheckedItem for ChangedItem this works, and the other I have 2 grids on my form.

Best Regards
eo_support
Posted: Tuesday, August 18, 2009 1:51:14 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

CheckedItems only works with CheckBoxColumn. So make sure you have a CheckBoxColumn first. Also it should be "grid1.CheckedItems", not "grid1.CheckedItems()".

Having 2 grids on your form is not a problem. You just use the correct ID. For example, "Me.grid1.CheckedItems", or "Me.grid2.CheckedItems".

Thanks
Ellery Gomez
Posted: Monday, September 14, 2009 5:18:46 PM
Rank: Member
Groups: Member

Joined: 8/4/2009
Posts: 16
Hi, I still have issues with this, actually I copied your chekbox column sample into my project and it doesn't works.

The grid, the callback panel and the code is the same as you use, the only difference is that i'm still using my form.

Does the form needs a special setting or property in order to obtain the expected results?

Best Regards
eo_support
Posted: Tuesday, September 15, 2009 8:41:43 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

No special setting or property is neeed on the form in order to use CheckedItems. So we are not sure what is causing the problem for you. Please try to isolate the problem into a test page. We will try to run it here to see if we can see the problem as soon as we have the test page.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.