This is a migrated thread and some comments may be shown as answers.

checkbox problem with the righttoleft property

11 Answers 143 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Divya
Top achievements
Rank 1
Divya asked on 21 Apr 2011, 06:39 AM
Hi,
       i have check box when i check it the mark will be right mark fine.when i set right to left property then the checkbox turns but the right mark is same i want even the mark also shld be turn as in screen .please refer screenshot .can anyone explain me how is it done...


Thanks
Divya

11 Answers, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 26 Apr 2011, 12:18 PM
Hello Divya,

This can be achieved by using our Visual Style Builder tool. More information about using Visual Style Builder can be found here. In your case you should set appropriate images for the different states of RadCheckmark. I have attached a screenshot which will help you to achieve this task.

I hope this helps. Feel free to contact us if you have any additional questions.

Kind regards,
Ivan Todorov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Divya
Top achievements
Rank 1
answered on 26 Apr 2011, 01:20 PM
Hi,
                Can u please explain still more details how i can do it.......
0
Ivan Todorov
Telerik team
answered on 29 Apr 2011, 10:10 AM
Hello Divya,

I am sending you a short video which demonstrates how to achieve this. The image which is needed is also attached.

I hope this helps. Feel free to contact me if you have any additional questions.

Regards,
Ivan Todorov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Divya
Top achievements
Rank 1
answered on 29 Apr 2011, 12:30 PM
Hi,
            I understood what u showed in video but i dont have any controldefault.tssp and morever i do no whats this controldefault.tssp ur uploading .

Actually my checkbox will be normal way itself as radcheckbox1 in the sreenshot but when i set right to left it will turn but now checkmark need to change


Please refer Screenshot


Thanks
Divya
0
Divya
Top achievements
Rank 1
answered on 29 Apr 2011, 12:32 PM
Hi,
            I understood what u showed in video but i dont have any controldefault.tssp and morever i do no whats this controldefault.tssp ur uploading .

Actually my checkbox will be normal way itself as radcheckbox1 in the sreenshot but when i set right to left it will turn but now checkmark need to change


Please refer Screenshot


Thanks
Divya
0
Ivan Todorov
Telerik team
answered on 04 May 2011, 12:03 PM
Hi Divya,

You can get the ControlDefault.tssp by clicking the Export Build-in Themes menu item on the Visual Style Builder. This is shown in the video I have send you with my previous post.

As to changing the checkmark when RightToLeft property is changed, you can do the following:
public Form1()
        {
            InitializeComponent();
            this.radCheckBox1.RightToLeftChanged += new EventHandler(radCheckBox1_RightToLeftChanged);
        }
 
        void radCheckBox1_RightToLeftChanged(object sender, EventArgs e)
        {
            if (this.radCheckBox1.RightToLeft == System.Windows.Forms.RightToLeft.Yes)
            {
                this.radCheckBox1.ThemeName = "MyControlDefault";
            }
            else
            {
                this.radCheckBox1.ThemeName = "ControlDefault";
            }
        }

I hope this helps.  Feel free to ask if you have any further questions.

Greetings,
Ivan Todorov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Divya
Top achievements
Rank 1
answered on 04 May 2011, 12:46 PM
Hi,
           I dont have any file(theme)  by name controldefault.tssp to include as shown in video .So if possible can u please attach and send me those files example controldefault.tssp, breeze.tssp etc so that i work out ....as per the demo u showed in video ....


Thanks
Divya
0
Divya
Top achievements
Rank 1
answered on 05 May 2011, 07:39 AM
Hi ,
              I got what  u explained in the video i was able to do it.Now can u say me like i am using RadCheckBoxElement not the radcheclkbox,inside the ribbonbargroup .To implement this concept for RadCheckBoxElement doesnt have righttoleftchanged event how can i do the same thing what u told for Radcheckbox to the radcheckboxelement .Please can u reply me soon as its very urgent .....


Thanks
Divya
0
Ivan Todorov
Telerik team
answered on 09 May 2011, 10:02 AM
Hi Divya,

Please find the answer to your question in this forum thread.

Another thing I would like to bring to your attention is that the RadCheckBoxElement has a different theme when it is used in RadRibbonBar. Please check the attached screenshot to find more information on how to select RadCheckBoxElement in RadRibbonBar for theming.

I hope this helps. Do not hesitate to ask if you have any additional questions.

Regards,
Ivan Todorov
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
0
Divya
Top achievements
Rank 1
answered on 09 May 2011, 10:30 AM
Hi,
          I have created a theme for radcheckboxelement but now it does not have the righttoleftchanged event then how can i applynmy theme when i am making my radcheckboxelement right to left

Earlier u had mentioned me like this

void radCheckBox1_RightToLeftChanged(object sender, EventArgs e)
        {
            if (this.radCheckBox1.RightToLeft == System.Windows.Forms.RightToLeft.Yes)
            {
                this.radCheckBox1.ThemeName = "MyControlDefault";
            }
            else
            {
                this.radCheckBox1.ThemeName = "ControlDefault";
            }
        }

But now how to write for checkboxelement it does not have righttoleftchanged event.

Thanks
Divya
0
Ivan Todorov
Telerik team
answered on 10 May 2011, 05:00 PM
Hi Divya,

Please find the answer to your question in this forum thread.

Should you have any additional questions, do not hesitate to ask.

Greetings,
Ivan Todorov
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Divya
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Divya
Top achievements
Rank 1
Share this question
or