Print Page | Close Window

How to disable a particular radio button

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=15509
Printed Date: 23 November 2024 at 7:08pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to disable a particular radio button
Posted By: dileeptm
Subject: How to disable a particular radio button
Date Posted: 30 October 2009 at 10:24am
Hi ,
 
I have property grid item with 4 radio buttons. How can i disable a particular radio button and the other should be enabled.
 
I am using, "XStream Property Grid ActiveX v13.1"
 
Can any one pls help me
 
Thanks,
Dileep T M (TCS)
Inida



Replies:
Posted By: Aaron
Date Posted: 30 October 2009 at 3:27pm
Hi,
 
There's option to disable optionbuttons
 
Dim itemOption As PropertyGridItemOption
Set itemOption = Category.AddChildItem(PropertyItemOption, "Options", 2)
       itemOption.Constraints.Add "0", 0
       itemOption.Constraints.Add "1", 1
       itemOption.Constraints.Add "2", 2
            
       itemOption.Constraints(1).Enabled = 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: dileeptm
Date Posted: 09 November 2009 at 7:15am
 
hi Aaron,
 
This is not working, it is showing compilation error , stating that "PropertyGridItemConstraint' does not contain a definition for 'Enabled'"
 
I tried like this ItemOption.Constarints[1].Enabled = False;
 
Do i need to enable any other property before doing it? Can u pls help me?
 
Thanks and Regards,
Dileep T M


Posted By: Aaron
Date Posted: 09 November 2009 at 11:51am
Hi,
 
I think you have older version.
 
Enabled property has been added in V13.2 and I can't think of any other way to accomplish this.
 
 
 
 


-------------
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: dileeptm
Date Posted: 10 November 2009 at 12:41am
Can any one help me to meet my requirement.. pls..?


Posted By: Oleg
Date Posted: 10 November 2009 at 2:13am
Hi,
 
You need update version. Old versions didn't allow it.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: neetimohindra
Date Posted: 04 March 2010 at 3:50pm
Hi dileeptm ,
 
Can you please tell me how did u create radio button in the grid . I need to do the same .

Please help me . I want to create a list in codejock which has 3 columns out of which , 2 columns for radio butoon and one for info .
It will be something like
radio button 1a | radio butoon 1b | value 1
radio button 2a | radio butoon 2b | value 2

So for value 1 , either of radio button 1a or 1b will be selected and so on for all values in the list ctrl

I created 3 columns with the help of list ctrl .
Now how do I draw radio button in 1st and 2nd column and how do I select them .
Please help me asap .
Thanks a lot ,
Neeti


Posted By: dileeptm
Date Posted: 09 March 2010 at 12:59am

Hi Neeti,

In my case i have used  Codjock property Grid control v13.1,  it is an activex control. It has option to show radion buttons for property item. But that is not going to help you because you need three columns.

Anyway u have used list control so you can find drawing for each item in the list. Override that and draw radio button.
 
Thanks
dileeptm



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