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
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
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
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
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
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;
}
}
}
Richard
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
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
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.
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
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
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