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

select a specific RadPageViewPage in RadPageView.

13 Answers 2970 Views
PageView
This is a migrated thread and some comments may be shown as answers.
Imran
Top achievements
Rank 1
Imran asked on 07 Jul 2010, 05:11 AM
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

 

13 Answers, 1 is accepted

Sort by
0
Accepted
Ramius
Top achievements
Rank 1
answered on 07 Jul 2010, 07:31 AM

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

0
Darius
Top achievements
Rank 1
answered on 16 Jul 2010, 09:06 PM
I think it would be more intuitive to say something like ThisPage.Selected = True. Is this possible?
0
Stefan
Telerik team
answered on 20 Jul 2010, 06:05 PM
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
0
subbarayan
Top achievements
Rank 1
answered on 29 Jan 2011, 10:48 AM
how to set collapse radpageiewpage in pageview when i am using more than one radpageviewpage. help me.

0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 29 Jan 2011, 11:27 AM
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
0
Khizar Khan
Top achievements
Rank 1
answered on 11 Feb 2011, 05:52 PM
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
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 11 Feb 2011, 06:22 PM
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
0
Alfonsina
Top achievements
Rank 1
answered on 24 Aug 2012, 11:52 AM

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 

0
Stefan
Telerik team
answered on 29 Aug 2012, 07:37 AM
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 >>
0
Raj
Top achievements
Rank 1
answered on 14 May 2013, 08:45 AM
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.
0
Emanuel Varga
Top achievements
Rank 1
answered on 14 May 2013, 08:46 PM
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
0
Raj
Top achievements
Rank 1
answered on 17 May 2013, 05:15 AM
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

0
Stefan
Telerik team
answered on 17 May 2013, 06:22 AM
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?
Tags
PageView
Asked by
Imran
Top achievements
Rank 1
Answers by
Ramius
Top achievements
Rank 1
Darius
Top achievements
Rank 1
Stefan
Telerik team
subbarayan
Top achievements
Rank 1
Richard Slade
Top achievements
Rank 2
Khizar Khan
Top achievements
Rank 1
Alfonsina
Top achievements
Rank 1
Raj
Top achievements
Rank 1
Emanuel Varga
Top achievements
Rank 1
Share this question
or