Welcome Guest Search | Active Topics | Sign In | Register

delete items on the client side Options
Efraim Santana
Posted: Monday, July 20, 2009 1:20:58 PM
Rank: Newbie
Groups: Member

Joined: 7/19/2009
Posts: 9
I am Brazilian, with English are sorry ... I am analyzing the component GRID, then to buy a license.

But when I realized that the function grid.deleteItem (itemIndex), the line is the most excluded grid maintains a blank space.

would have to remove this space, regarding the lines outside ...

thank ...
eo_support
Posted: Monday, July 20, 2009 1:25:50 PM
Rank: Administration
Groups: Administration

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

grid.deleteItem should delete the item and also do not leave any blank space. You can see a working example here:

http://demo.essentialobjects.com/Default.aspx?path=Grid\_i1\_i9

If what's happening with you is different, please try to separate the issue into a test page and post the test page here. We will then try to run it in our test environment and see if we can see the same problem.

Thanks!
Efraim Santana
Posted: Monday, July 20, 2009 3:03:18 PM
Rank: Newbie
Groups: Member

Joined: 7/19/2009
Posts: 9
I look at an example of the link you sent, the error also happens in your example. to verify the error just delete all the registry, done that continues the grid as if with all items, but it is blank ...


after having excluded all records of the scroll grid is as many records were.


Thanks...
eo_support
Posted: Monday, July 20, 2009 4:50:11 PM
Rank: Administration
Groups: Administration

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

This is just to let you know that we are still working on this issue.

Thanks!
Efraim Santana
Posted: Monday, July 20, 2009 5:16:52 PM
Rank: Newbie
Groups: Member

Joined: 7/19/2009
Posts: 9
OK,

waiting ...
eo_support
Posted: Tuesday, July 21, 2009 10:59:44 AM
Rank: Administration
Groups: Administration

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

We have posted a new build that addressed this issue. Please see your private message for download location.

Thanks!
Efraim Santana
Posted: Tuesday, July 21, 2009 1:06:13 PM
Rank: Newbie
Groups: Member

Joined: 7/19/2009
Posts: 9
thank you, it was perfect
eo_support
Posted: Tuesday, July 21, 2009 1:12:12 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
You are welcome. Please let us know if you need anything else from us.
Efraim Santana
Posted: Tuesday, July 21, 2009 1:18:57 PM
Rank: Newbie
Groups: Member

Joined: 7/19/2009
Posts: 9
well I'm still testing whether it corresponds to my needs.


there is a way to include images in the grid and put a link on them.
eo_support
Posted: Tuesday, July 21, 2009 1:24:00 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Yes. You can do almost everything that you can do with HTML with the Grid. You would usually use a StaticColumn but set the Columns' DataFormat to some HTML. For example, if your data source has an "image_url" field that contains the Url of the image that you wish to display (for example, "abc.gif"), then you would set the columns' DataFormat to:

<img src="{0}" />

At runtime the Grid takes data from your data source ("abc.gif" in this case), then format it with DataFormat. It then display the formatted result (<img src="abc.gif" /> in this case) in the Grid cell. If you do not set DataFormat, the Grid will display the path (“abc.gif”) directly.

You can implement HTML links the same way.

Thanks
Efraim Santana
Posted: Tuesday, July 21, 2009 2:56:35 PM
Rank: Newbie
Groups: Member

Joined: 7/19/2009
Posts: 9
it is possible to include a picture and click on the same fire when the event ClientSideOnItemCommand.

I like this:
StaticColumn
DataField -> img_excluir
DataFormat -> <img style="cursor:pointer" src="{0}" />
eo_support
Posted: Tuesday, July 21, 2009 3:03:45 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
You would use it the same way but use a ButtonColumn instead of a StaticColumn. Make sure your ButtonColumn's ButtonText property is empty.


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.