Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bug in relation with CellEditor/CellEditor Control

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
flc.net



Joined: 21 Jun 2005
Posts: 89
Location: Switzerland

PostPosted: Mon Oct 03, 2005 1:37 pm    Post subject: Bug in relation with CellEditor/CellEditor Control Reply with quote

Hello Support

I hope i can explain this strange bug:

The logic that creates a new instance of the Cell Editor (Control) is wrong. It seems that VT uses the Visible Row Index to create a new instance of the Cell Editor (Control).

Assume you have 100 Rows. On the Column "MyColumn" you have a CellEditor with a TextBox.

Now click on the first ten Rows in the Cell for the Column "MyColumn". VT creates 10 new TextBoxes.

Now scroll VT up until Row 6 is the first visible Row. Click the Cell for Column "MyColumn" on Row 11. Vt does not create a new Instance of the TextBox. VT begins to create new instances on Row 16.

Best Regards
Giuseppe
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Oct 04, 2005 5:39 am    Post subject: Reply with quote

Virtual Tree does not create a new editor control each time you edit a cell - if it did you would quickly run out of resources when using display mode always cell editors. Instead it caches controls and reuses them once the containing CellWidget is disposed of (when it is no longer displayed). I think this is what you are describing??

This shouldn't have any impact on your code - what are you trying to do?
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
flc.net



Joined: 21 Jun 2005
Posts: 89
Location: Switzerland

PostPosted: Tue Oct 04, 2005 7:30 am    Post subject: Reply with quote

I thought a Control gets created for each CellEditor. Now that I know how it works I will change my Control in a way it does not affect my application.

Thanks Giuseppe
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

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


Powered by phpBB © 2001, 2005 phpBB Group