We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Covered range on virtual mode allows selection crossing covered cells

Thread ID:

Created:

Updated:

Platform:

Replies:

115890 Feb 19,2014 08:50 AM Mar 22,2014 02:32 AM Windows Forms 7
loading
Tags: GridControl
Vagner Pagotti
Asked On February 19, 2014 08:50 AM

Hi,

I put a GridControl on virtual mode, and I override OnQueryCoveredRange to query my model, that has metadata information about merged ranges, and return a GridRangeInfo in Range property of GridQueryCoveredRangeEventArgs.
It is OK. Grid displays it right, but when I make a selection that has single cells and covered cells, the selection not include de entire covered cell, it cross the covered cell area.
The only way that I find to resolve this issue is add the range that I create in event, in CoveredRange collection of GridControl, but this break virtual mode way to work with my metadata. 
There is a way to resolve this?

Thanks.


Karuppasamy C [Syncfusion]
Replied On February 23, 2014 11:50 PM

Hi Vagneer,

Thank you for using Syncfusion Products.

I have tried to reproduce the reported issue in my end. But I am unable to reproduce the issue which means Virtual mode works properly in my side. If  possible kindly share the sample in which you have faced the issue  which would help me to provide better solutions to you.

Please let me know if you have any concerns.

Regards,
Karuppasamy C.

Vagner Pagotti
Replied On February 24, 2014 07:24 AM

Hi,

I attach a simple sample based on syncfusion sample codes. If you comment the line 222, you be able to see that behavior.
I also include two captured images in project to show both behaviors, one with covered ranges set up, and other without it.
I hope you can reproduce in your machine. I use the version is 10.104.0.44, but the same occurs in 11.104.0.21, that is my current. 

Thanks again,
Vagner

Attachment: Syncfusion_7f56524c.zip

Vinish Kumar K [Syncfusion]
Replied On March 7, 2014 12:31 AM

Hi Vagner,

Thanks for your update.

You can resolve this issue using the below codes in QueryCoveredRange. 

Please refer the attached sample for more details.we hope this will resolve the issue in your end.

Please let me know if you need further assistance.

Regards,
Vinish K.

Attachment: CoveredRange_9c86ab9f.zip

Vagner Pagotti
Replied On March 7, 2014 07:40 AM

Hi Vinish,

You replaced my workaround by another, but this do not solve the problem. I sent a sample app only to ilustrate the problem. 
I don't use this approach in my application because I have lot of ranges to manage and I can't create variables or arrays to control covered ranges collections. In virtual mode, I hope that I don't needed to keep any data in local variables. I need the grid asking me for this information on demand, right?
If there is no way to grid control this in virtual mode, without setting covered ranges collection for each range, tell me and I gonna open a ticket on support center to investigate this issue.

Regards,
Vagner


Anish George [Syncfusion]
Replied On March 18, 2014 03:03 AM

Hi Vagner,

 

Thank you for your update.

 

We would like to let you know that the event QueryCoveredRange is used to merge the cells but the individual cells will get fired each time while using this event, each cell will act as a single cell. So we have to customize the code for selection while selecting the covered cells. We have used the SelectionChanging event to get the expected output. We have added a generic condition in such a way that when the selection range intersects with CoveredRange, then the selection should act as expected. Please refer the below sample. Likewise you have to extend the condition for all the CoveredRanges that you have added in your sample in the SelectionChanging event.

 

Sample:

http://www.syncfusion.com/downloads/support/directtrac/general/Syncfusion1768641698.zip

 

Please let us know if the given solution gives you the expected output.

 

Regards,

Anish


Vagner Pagotti
Replied On March 18, 2014 09:35 AM

Hi Anish,

Thanks for this very elegant workaround. It works!
After some changes to care about keyboard selection, we will implement it.
But I suggest you consider a review of that strategy in new versions of GridControl, because now we will get to call our model two times to get the same information about merged cells and this can slow virtual mode when the number of merged cells is large.

Regards,
Vagner


Anish George [Syncfusion]
Replied On March 22, 2014 02:32 AM

Hi Vagner,

 

Thank you for your update.

 

We suggest you to report this through Direct-Trac Developer Support System( https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents ), because you can take the advantage of the expertise of a dedicated support engineer and a guaranteed response time and we hope you will take advantage of this system as well. Our support engineer will analyze this and will update you with more information regarding this.

 

Please let us know if you need any further assistance.

 

Regard,

Anish


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;