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 

Rows without Prefix Widget show 'F'

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



Joined: 14 Aug 2008
Posts: 14
Location: Canada

PostPosted: Mon Sep 28, 2009 1:29 pm    Post subject: Rows without Prefix Widget show 'F' Reply with quote

For rows where I set the prefix editor to be null, the character 'F' is displayed intead of the prefix editor (in this case, a checkbox). I'm currently working around this issue with the following code:

Code:


public override void OnLayout()
{
   base.OnLayout();
   if (Columns.Count > 0)
   {
      CellWidget prefixWidget = GetCellWidget(this.Tree.PrefixColumn);

      if (prefixWidget.CellData.Editor == null)
      {
         prefixWidget.CellData.ShowText = false;
      }
   }
}



This issue has been present with all versions of Virtual Tree since 3.10.4 (We are using 3.13.0 currently).
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Sep 29, 2009 12:09 am    Post subject: Reply with quote

If you don't want anything displayed then you need to also set the CellData.Value to null. You are probably getting an "F" displayed because the CellData.Value is set to Boolean.False.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
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