Welcome Guest Search | Active Topics | Sign In | Register

eo Grid control - Client API Options
Felix Weinraub
Posted: Friday, July 29, 2011 10:13:56 AM
Rank: Member
Groups: Member

Joined: 1/5/2009
Posts: 27
I use a EO.Web-Grid-Control for ASP.NET V.8.0 (2010) with FullRowMode="True", AllowSort="True" for each column and an ClientSideOnItemSelected event.

When i select the header of a column to sort the column, the ClientSideOnItemSelected event fires.
The index of the header-row is not smaller than the index of the first row (= 0) but a by chance elective number of the grid-index. So there is no chance to find out whether the header or a row of the grid was chosen.

So, how can I prevent the event being fired for this case?
eo_support
Posted: Friday, July 29, 2011 11:05:27 AM
Rank: Administration
Groups: Administration

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

The reason for the Grid to fire ClientSideOnItemSelected event on sort is so that you can get the new item index. There is no way for you to prevent this event. If you do not wish to trigger your event handling logic again on the same row, you can use a hidden column to store a unique Id for each row and remember your last selected "item unique id". That way you can compare the new item's id with the last id to see whether it is indeed a new item.

Thanks!
Felix Weinraub
Posted: Sunday, July 31, 2011 1:24:41 PM
Rank: Member
Groups: Member

Joined: 1/5/2009
Posts: 27
That's not the problem.
I noticed the checkbox on the row, whether the row is selected or not.
Clicking in the header of a column for sorting, a row is chosen randomly by the grid control.
So I then have no possibility to distinguish whether someone select a line or the header of a row.

eo_support
Posted: Monday, August 1, 2011 10:26:58 AM
Rank: Administration
Groups: Administration

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

The row should not be chosen randomly. It should focus on the same row that was focused before the sort. If it doesn't, then it's a bug. You may want to check the latest build and see if you still see the same problem.

Thanks!
Felix Weinraub
Posted: Monday, August 1, 2011 1:01:17 PM
Rank: Member
Groups: Member

Joined: 1/5/2009
Posts: 27
I use EO.Web-Control for ASP.NET V.8.0 (2010) (build 2010.013.2 ?)
Need I an upgrade for my license to use the current build 2011.0.18?
My current license don't work with build 2011.0.18...
eo_support
Posted: Monday, August 1, 2011 1:12:31 PM
Rank: Administration
Groups: Administration

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

You may or may not need to upgrade your license. We provide free upgrade for one year after your purchase. If the current version is still within one year, then you can use it for free. Otherwise you will need to place an upgrade order. The upgrade price depends on the version you purchased, not the version that you currently use. If you can let us know your order number, we will be able to locate your order and tell you whether you need to upgrade and if you do, how much it would cost.

Thanks
Felix Weinraub
Posted: Monday, August 1, 2011 2:32:21 PM
Rank: Member
Groups: Member

Joined: 1/5/2009
Posts: 27
I have testet the new build under http://demo.essentialobjects.com/Demos/Grid/Features/Row%20Selection/Demo.aspx
After selection of the secound row and then clicking in the header, the secound row is deselected and row nr. 297 is selected?!
I do not think the error is corrected with the new build.
What do you recommend?
eo_support
Posted: Monday, August 1, 2011 2:40:37 PM
Rank: Administration
Groups: Administration

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

We tested it and it worked fine. Our steps are:

1. Open the sample link;
2. Select the second item. Note the item topic is "How to receive notifications when a new post is added";
3. Click "Posted At" to sort by that field in descending order;
4. Row 299 is now selected. Note this item's topic is the same as step 2. So the selected item remains the same;

Please let us know if you see the same result. If your result is different, let us know which step gives you different result.

Thanks!
Felix Weinraub
Posted: Tuesday, August 2, 2011 4:05:54 AM
Rank: Member
Groups: Member

Joined: 1/5/2009
Posts: 27
I get the same results. It seems to be ok.

Thanks for the note.


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.