select a specific RadPageViewPage in RadPageView.

14 posts, 3 answers
  1. Imran
    Imran avatar
    13 posts
    Member since:
    Jun 2010

    Posted 07 Jul 2010 Link to this post

    I have 2 RadPageViewPage  in a RadPageView.

    When the form initially loads the second RadPageViewPage is visible.

     

    How can i force that when the form is initially loaded it should be the first RadPageViewPage that is visible !!

    Second how to change the view to a specific RadPageViewPage in the code at run time.

    Is there a property  such as
    RadPageView.SelectedRadPageViewPage =  2.   that will set the second RadPageViewPage to be visible etc etc .


    thanks

    IK

     

  2. Answer
    Ramius
    Ramius avatar
    127 posts
    Member since:
    Feb 2008

    Posted 07 Jul 2010 Link to this post

    Hello Imran,

    in the Designer you have to select the RadViewPageView that should be loaded at runtime when you leave the designer. 

    In code:

    RadPageView.SelectedPage = RadPageViewPage1;

    I hope this helps.

    Ramius

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Darius
    Darius avatar
    23 posts
    Member since:
    May 2008

    Posted 16 Jul 2010 Link to this post

    I think it would be more intuitive to say something like ThisPage.Selected = True. Is this possible?
  5. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 20 Jul 2010 Link to this post

    Hi Darius,

    Ramius in the previous post had used perfectly correct syntax. Anyway if you don't change the names and stay with the default ones consider this:

    radPageView1.SelectedPage = radPageViewPage1;

    I hope this makes it cleared. If you need any further assistance, do not hesitate to contact us.

    Kind regards,
    Stefan
    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. subbarayan
    subbarayan avatar
    20 posts
    Member since:
    Oct 2008

    Posted 29 Jan 2011 Link to this post

    how to set collapse radpageiewpage in pageview when i am using more than one radpageviewpage. help me.

  7. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 29 Jan 2011 Link to this post

    Hello,

    In order to hide a RadPageViewPage, you need to hide the tab which is done through the Item property. So to hide RadPageViewPage2 you would set the following

    Me.RadPageViewPage2.Item.Visibility = ElementVisibility.Collapsed

    Hope that helps
    Richard
  8. Khizar Khan
    Khizar Khan avatar
    41 posts
    Member since:
    Jan 2010

    Posted 11 Feb 2011 Link to this post

    Hi,

    I am trying to find a way to set this in the designer, but not able to locate a property to set the default page.

    please advice.

    Regards,
    Khizar
  9. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 11 Feb 2011 Link to this post

    Hello,

    By default this property is not browsable. You could inherit the RadPageView and provide an implementation that is though

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Telerik.WinControls.UI;
    using System.ComponentModel;
      
        class MyRadPageView : Telerik.WinControls.UI.RadPageView
        {
            [DefaultValue((string)null), Browsable(true)]
            public new RadPageViewPage SelectedPage
            {
                get
                { return base.SelectedPage; }
                set
                { base.SelectedPage = value; }
            }
      
            public override string ThemeClassName
            {
                get
                {
                    return typeof(Telerik.WinControls.UI.RadPageView).FullName;
                }
            }
        }
    Hope that helps
    Richard
  10. Alfonsina
    Alfonsina avatar
    13 posts
    Member since:
    May 2012

    Posted 24 Aug 2012 Link to this post

    Hello Telerik Team,

    I have a problem with the radPageView. I have 3 pages and I want to add a radGridView in each page.

    I do it like this:

    this.radPageDepatisnet.Controls.Add(radGridViewWaitQueueDepatisnet);
    this.radPageOPS.Controls.Add(radGridViewWaitQueueOPS);

    this. radPageWipo.Controls.Add(radGridViewWaitQueueWipo);

    but in the 3rd page, I have no radGridView and I dont know why.

    Can I help me please?

    Thank you very much,

    Best regards,

    Alfonsina 

  11. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 29 Aug 2012 Link to this post

    Hi Alfonsina,

    Thank you for writing.

    The provided information is not enough for me to determine what is the reason for the observed behavior. For this reason I would like to kindly ask you to open a new support ticket and attach your project there. We will investigate it and we will get back to you with the results.
     
    Kind regards,
    Stefan
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  12. Raj
    Raj avatar
    3 posts
    Member since:
    May 2013

    Posted 14 May 2013 Link to this post

    Hello there,
                       My question is that i have a radpageviewpage and on textchanged(with leave event) i want to display messagebox for saving my changes or not.i have successfully done with the messagebox.But the mesagebox is displayed as many tabs the RadPageView contains.I just want to display for only one changed made on page.

    Thanx,
    Niranjan.
  13. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 14 May 2013 Link to this post

    Hello Niranjan,

    Could you please create a new thread with your question?, because your question is not linked to the one asked on this thread.

    And please try to be more explicit, I wasn't able to understand what exactly do you want to do here.

    Best Regards,
    Emanuel Varga, MVP
  14. Raj
    Raj avatar
    3 posts
    Member since:
    May 2013

    Posted 17 May 2013 Link to this post

    Hello There,
                        My question is some what different.I two RadPageView and on LinkClick i generate the second RadPageView,So after text generated into my second RadPageView TextBoxes,when i change the page of first RadPageView,I want to Generate MessageBox like to save changes or not.I have done some what of it.but actually i am getting messagebox many times as much as the second RadpageView Contains Pages.

    My code Is Like this:

      private void MyPagePageView_SelectedPageChanging(object sender, RadPageViewCancelEventArgs e)
            {
                RadPageViewPage selectedpage = MyPageView.SelectedPage;
                foreach (Control c in selectedpage.Controls)
                {

                    if (c is RadTextBox)
                    {                  
                        RadTextBox tb = (RadTextBox)c;
                        DialogResult dialogresult = MessageBox.Show("Do you want to save changes", "DataBase", MessageBoxButtons.YesNo);
                        if (dialogresult == DialogResult.Yes)
                        {

                            //  tb = (RadTextBox)sender;
                            MessageBox.Show("To save changes Click the SAVE button");
                            //  tb.Leave -= new EventHandler(tb_Leave);
                        }
                        else if (dialogresult == DialogResult.No)
                        {

                        }
                    }
                }


    Thank you,
    Raj Patil

  15. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 17 May 2013 Link to this post

    Hi Niranjan,

    I was not able to replicate such a behavior on my end. If you continue experiencing this issue, please open a new support ticket where you can attach a sample project, which can be used to reproduce the undesired behavior. Once we are able to do that we will do our best to help you resolve it. 

    Off topic, please take into consideration the advice from Emanuel, and try to do not mix different subjects in existing threads. If you do not find a thread precisely for your question, open a new one.

    Greetings,
    Stefan
    the Telerik team
    RadChart for WinForms is obsolete. Now what?
Back to Top
UI for WinForms is Visual Studio 2017 Ready