Print Page | Close Window

SOLVED: Editable check boxes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=11317
Printed Date: 21 November 2024 at 5:23pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SOLVED: Editable check boxes
Posted By: markmark
Subject: SOLVED: Editable check boxes
Date Posted: 06 July 2008 at 10:21am

Hi

I hope someone can help.

My grid has a mixture of cells items that are Editable and not Editable.

And some items are check boxes.

 

The only way I can make a cell Editable is to set the control to

wndReportControl.AllowEdit = True

If set to

wndReportControl.AllowEdit = False

the Column.Editable = true and   Item.Editable = True are ignored altogether

 

So I set the AllowEdit = True

 

The problem is that the check box cell can now be typed into.

The cell width is wider than the check box because the caption for the column is long.

 

Is they a way to turn off the text entry for a checkbox cell?

 

Thanks

 

MArk



Replies:
Posted By: Aaron
Date Posted: 06 July 2008 at 11:00am
Hi,
 
Just set the whole column edit to false
 
 
wndReportControl.AllowEdit = True
wndReportControl.Columns(0).Editable = False


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Aaron
Date Posted: 06 July 2008 at 11:46am
Hi,
 
wndReportControl.EditOnClick = true prevents the doubleclick from start edit for reportitems with checkbox.


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Aaron
Date Posted: 06 July 2008 at 12:01pm
Hi,
 
Adding recorditems like this will create EditOptions for a single cell:
 
 
Dim XtremeRecordItem As XtremeReportControl.ReportRecordItem
 
Set XtremeRecordItem = XtremeRecord.AddItem("Test with checkbox")
      XtremeRecordItem.HasCheckbox = True
      XtremeRecordItem.CreateEditOptions
      XtremeRecordItem.EditOptions.AllowEdit = False
 
 
Hope this will help you... If not just let me know, must be some way to make this right  
 
btw if one of the options solves your issue, please add SOLVED in your Topic description and have a look at post http://forum.codejock.com/forum_posts.asp?TID=11225 - http://forum.codejock.com/forum_posts.asp?TID=11225   


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: markmark
Date Posted: 07 July 2008 at 2:57am

Aaron.

 

Thanks you very much.

 

XtremeRecordItem.CreateEditOptions
XtremeRecordItem.EditOptions.AllowEdit = False

 

Gives the individual item to have different options than given to the entire column.

 

And that work perfectly.

 

Where as

wndReportControl.Columns(0).Editable = False

Disabled the check box completely.

 

Thanks again

 

Mark



Posted By: Aaron
Date Posted: 07 July 2008 at 3:21am
Originally posted by markmark markmark wrote:

Aaron.

Where as

wndReportControl.Columns(0).Editable = False

Disabled the check box completely.

 

Thanks again

 

Mark

 
Hi,
 
Of course it does  oeps, little mistake.
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net