checkbox problem with the righttoleft property

12 posts, 0 answers
  1. Divya
    Divya avatar
    47 posts
    Member since:
    Mar 2011

    Posted 21 Apr 2011 Link to this post

    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
  2. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 26 Apr 2011 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Divya
    Divya avatar
    47 posts
    Member since:
    Mar 2011

    Posted 26 Apr 2011 Link to this post

    Hi,
                    Can u please explain still more details how i can do it.......
  5. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 29 Apr 2011 Link to this post

    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
  6. Divya
    Divya avatar
    47 posts
    Member since:
    Mar 2011

    Posted 29 Apr 2011 Link to this post

    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
  7. Divya
    Divya avatar
    47 posts
    Member since:
    Mar 2011

    Posted 29 Apr 2011 Link to this post

    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
  8. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 04 May 2011 Link to this post

    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
  9. Divya
    Divya avatar
    47 posts
    Member since:
    Mar 2011

    Posted 04 May 2011 Link to this post

    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
  10. Divya
    Divya avatar
    47 posts
    Member since:
    Mar 2011

    Posted 05 May 2011 Link to this post

    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
  11. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 09 May 2011 Link to this post

    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.
  12. Divya
    Divya avatar
    47 posts
    Member since:
    Mar 2011

    Posted 09 May 2011 Link to this post

    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
  13. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 10 May 2011 Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready