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