Romacali
asked on
How to make the form tab strip to work?
Hello,
Can someone help me with this?
I have vertical tab strip, multipage, using page views and I need them to display the page view when I click on them.
What I have right now is, they enable themselves as long as the submit button is clicked but if I want to go back to a previews radstrip, the tab is clickable but it does not display the page view, or the form. What attributes shouls I use.
see the cs bellow:
Can someone help me with this?
I have vertical tab strip, multipage, using page views and I need them to display the page view when I click on them.
What I have right now is, they enable themselves as long as the submit button is clicked but if I want to go back to a previews radstrip, the tab is clickable but it does not display the page view, or the form. What attributes shouls I use.
see the cs bellow:
protected void Page_Load(object sender, EventArgs e)
{
RadTabStrip1.Tabs[0].Enabled = true;
RadTabStrip1.Tabs[1].Enabled = false;
RadTabStrip1.Tabs[2].Enabled = false;
RadTabStrip1.Tabs[3].Enabled = false;
RadTabStrip1.Tabs[4].Enabled = false;
PageView1.Focus();
}
protected void Button1_Click(object sender, EventArgs e)
{
RadTabStrip1.Tabs[0].Enabled = true;
RadTabStrip1.Tabs[1].Enabled = true;
RadMultiPage1.SelectedIndex = 1;
RadTabStrip1.SelectedIndex = 1;
PageView2.Focus();
}
protected void Button3_Click(object sender, EventArgs e)
{
RadTabStrip1.Tabs[0].Enabled = true;
RadTabStrip1.Tabs[1].Enabled = true;
RadTabStrip1.Tabs[2].Enabled = true;
RadMultiPage1.SelectedIndex = 2;
RadTabStrip1.SelectedIndex = 2;
PageView3.Focus();
}
protected void Button5_Click(object sender, EventArgs e)
{
RadTabStrip1.Tabs[0].Enabled = true;
RadTabStrip1.Tabs[1].Enabled = true;
RadTabStrip1.Tabs[2].Enabled = true;
RadTabStrip1.Tabs[3].Enabled = true;
RadMultiPage1.SelectedIndex = 3;
RadTabStrip1.SelectedIndex = 3;
PageView4.Focus();
}
protected void Button7_Click(object sender, EventArgs e)
{
RadTabStrip1.Tabs[0].Enabled = true;
RadTabStrip1.Tabs[1].Enabled = true;
RadTabStrip1.Tabs[2].Enabled = true;
RadTabStrip1.Tabs[3].Enabled = true;
RadTabStrip1.Tabs[4].Enabled = true;
RadTabStrip1.Tabs[4].PageView.Enabled = PageView4;
PageView4.Focus();
}
ASKER
hello there,
What I need is to enabled the page view that comes with clicking the tab strip, not the tab strip itself.
any idea?
thanks
What I need is to enabled the page view that comes with clicking the tab strip, not the tab strip itself.
any idea?
thanks
ASKER
Right Now, I have the strip tabs and I'm able to see the forms only if I click on the button next... once I clicked on the other tabs the form doesn't change.. it keeps on the last one..
please I need some help..
thanks,
Caliu
please I need some help..
thanks,
Caliu
Can you try this code?
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack){
RadTabStrip1.Tabs[0].Enabled = true;
RadTabStrip1.Tabs[1].Enabled = false;
RadTabStrip1.Tabs[2].Enabled = false;
RadTabStrip1.Tabs[3].Enabled = false;
RadTabStrip1.Tabs[4].Enabled = false;
PageView1.Focus();
}
}
ASKER
I can unable and disable buttons but I also want the form to come with each tab. Right now it is not :(
Did put in the change I posted above?
ASKER
yes I added but still nothing
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Now I got this error:
Compiler Error Message: CS0103: The name 'lastView' does not exist in the current context
Compiler Error Message: CS0103: The name 'lastView' does not exist in the current context
ASKER
and this:
Or I get this error too
Compiler Error Message: CS0117: 'object' does not contain a definition for 'Focus'
Or I get this error too
Compiler Error Message: CS0117: 'object' does not contain a definition for 'Focus'
You need to add lastView to your class it should be the same type as PageView
I'm not sure what type PageView is.
ASKER
here is what I have on the cs page
not sure how to add the lastView object
not sure how to add the lastView object
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class PPTRadStrip : System.Web.UI.Page
{
// object lastView;
protected void Page_Load(object sender, EventArgs e)
{
RadTabStrip1.Tabs[0].Enabled = true;
RadTabStrip1.Tabs[1].Enabled = false;
RadTabStrip1.Tabs[2].Enabled = false;
RadTabStrip1.Tabs[3].Enabled = false;
RadTabStrip1.Tabs[4].Enabled = false;
PageView1.Focus();
}
protected void Button1_Click(object sender, EventArgs e)
{
RadTabStrip1.Tabs[0].Enabled = true;
RadTabStrip1.Tabs[1].Enabled = true;
RadMultiPage1.SelectedIndex = 1;
RadTabStrip1.SelectedIndex = 1;
PageView2.Focus();
}
protected void Button3_Click(object sender, EventArgs e)
{
RadTabStrip1.Tabs[0].Enabled = true;
RadTabStrip1.Tabs[1].Enabled = true;
RadTabStrip1.Tabs[2].Enabled = true;
RadMultiPage1.SelectedIndex = 2;
RadTabStrip1.SelectedIndex = 2;
PageView3.Focus();
}
protected void Button5_Click(object sender, EventArgs e)
{
RadTabStrip1.Tabs[0].Enabled = true;
RadTabStrip1.Tabs[1].Enabled = true;
RadTabStrip1.Tabs[2].Enabled = true;
RadTabStrip1.Tabs[3].Enabled = true;
RadMultiPage1.SelectedIndex = 3;
RadTabStrip1.SelectedIndex = 3;
PageView4.Focus();
}
protected void Button7_Click(object sender, EventArgs e)
{
RadTabStrip1.Tabs[0].Enabled = true;
RadTabStrip1.Tabs[1].Enabled = true;
RadTabStrip1.Tabs[2].Enabled = true;
RadTabStrip1.Tabs[3].Enabled = true;
RadTabStrip1.Tabs[4].Enabled = true;
RadMultiPage1.SelectedIndex = 4;
RadTabStrip1.SelectedIndex = 4;
PageView5.Focus();
}
protected void Button9_Click(object sender, EventArgs e)
{
RadTabStrip1.Tabs[0].Enabled = true;
RadTabStrip1.Tabs[1].Enabled = false;
RadTabStrip1.Tabs[2].Enabled = false;
RadTabStrip1.Tabs[3].Enabled = false;
RadTabStrip1.Tabs[4].Enabled = false;
// RadTabStrip1.Tabs[5].Enabled = false;
RadMultiPage1.SelectedIndex = 0;
RadTabStrip1.SelectedIndex = 0;
PageView1.Focus();
// Console.Write("You have succesfully entered the participant information");
//lastView = PageView2;
}
Should be like this ...
public partial class PPTRadStrip : System.Web.UI.Page
{
public PageView lastView; // It should be type PageView
protected void Page_Load(object sender, EventArgs e)
{
if ( !IsPostBack () )
{
RadTabStrip1.Tabs[0].Enabled = true;
RadTabStrip1.Tabs[1].Enabled = false;
RadTabStrip1.Tabs[2].Enabled = false;
RadTabStrip1.Tabs[3].Enabled = false;
RadTabStrip1.Tabs[4].Enabled = false;
lastView = PageView1;
}
lastView.Focus ();
}
protected void Button1_Click(object sender, EventArgs e)
{
RadTabStrip1.Tabs[0].Enabled = true;
RadTabStrip1.Tabs[1].Enabled = true;
RadMultiPage1.SelectedIndex = 1;
RadTabStrip1.SelectedIndex = 1;
lastView = PageView2;
}
protected void Button3_Click(object sender, EventArgs e)
{
RadTabStrip1.Tabs[0].Enabled = true;
RadTabStrip1.Tabs[1].Enabled = true;
RadTabStrip1.Tabs[2].Enabled = true;
RadMultiPage1.SelectedIndex = 2;
RadTabStrip1.SelectedIndex = 2;
lastView = PageView3;
}
protected void Button5_Click(object sender, EventArgs e)
{
RadTabStrip1.Tabs[0].Enabled = true;
RadTabStrip1.Tabs[1].Enabled = true;
RadTabStrip1.Tabs[2].Enabled = true;
RadTabStrip1.Tabs[3].Enabled = true;
RadMultiPage1.SelectedIndex = 3;
RadTabStrip1.SelectedIndex = 3;
lastView = PageView4;
}
protected void Button7_Click(object sender, EventArgs e)
{
RadTabStrip1.Tabs[0].Enabled = true;
RadTabStrip1.Tabs[1].Enabled = true;
RadTabStrip1.Tabs[2].Enabled = true;
RadTabStrip1.Tabs[3].Enabled = true;
RadTabStrip1.Tabs[4].Enabled = true;
RadMultiPage1.SelectedIndex = 4;
RadTabStrip1.SelectedIndex = 4;
lastView = PageView5;
}
protected void Button9_Click(object sender, EventArgs e)
{
RadTabStrip1.Tabs[0].Enabled = true;
RadTabStrip1.Tabs[1].Enabled = false;
RadTabStrip1.Tabs[2].Enabled = false;
RadTabStrip1.Tabs[3].Enabled = false;
RadTabStrip1.Tabs[4].Enabled = false;
// RadTabStrip1.Tabs[5].Enabled = false;
RadMultiPage1.SelectedIndex = 0;
RadTabStrip1.SelectedIndex = 0;
lastView = PageView1;
// Console.Write("You have succesfully entered the participant information");
//lastView = PageView2;
}
}
ASKER
I tried and I got this:
Compiler Error Message: CS0246: The type or namespace name 'PageView' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 12: public partial class evaluation : System.Web.UI.Page
Line 13: {
Line 14: public PageView lastView; // It should be type PageView
Line 15:
Line 16: protected void Page_Load(object sender, EventArgs e)
pointing to: Line 14: public PageView lastView; // It should be type PageView
Compiler Error Message: CS0246: The type or namespace name 'PageView' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 12: public partial class evaluation : System.Web.UI.Page
Line 13: {
Line 14: public PageView lastView; // It should be type PageView
Line 15:
Line 16: protected void Page_Load(object sender, EventArgs e)
pointing to: Line 14: public PageView lastView; // It should be type PageView
Yeah I don't know what a PageView you need to change it.
What is it?
What is it?
Its a control of some type
ASKER
I have a form, that has on the left side tabs - each tab brings a form on the right hand side, but it is not working I click on the tabs and it doesn't let me see the form..
the only thing that works is when I click submit it goes to the nest form view (page view)
thanks for helping me!! I'm loosing my mind
the only thing that works is when I click submit it goes to the nest form view (page view)
thanks for helping me!! I'm loosing my mind
Can you see all the forms at once? Is Pageview a Form?
Form lastView instead of PageView lastView
Form.Focus wont work you need to hide all the forms and show the one that needs to be active
Pageview1.Hide ();
Pageview2.Hide ();
Pageview3.Hide ();
Pageview4.Hide ();
Pageview5.Hide ();
lastView.Show ();
Form lastView instead of PageView lastView
Form.Focus wont work you need to hide all the forms and show the one that needs to be active
Pageview1.Hide ();
Pageview2.Hide ();
Pageview3.Hide ();
Pageview4.Hide ();
Pageview5.Hide ();
lastView.Show ();
ASKER
I still cannot make it works..
here is what I'm trying to do:
http://demos.telerik.com/aspnet-ajax/tabstrip/examples/functionality/vertical/defaultcs.aspx
The problem is once I click on the pages the form doesn't change.
any idea?
here is what I'm trying to do:
http://demos.telerik.com/aspnet-ajax/tabstrip/examples/functionality/vertical/defaultcs.aspx
The problem is once I click on the pages the form doesn't change.
any idea?
ASKER
one more thing:
Compiler Error Message: CS0117: 'ASP.pptradstrip_aspx' does not contain a definition for 'RadTabStrip1_TabClick'
Where can I make a definition for 'RadTabStrip1_TabClick' ?
Compiler Error Message: CS0117: 'ASP.pptradstrip_aspx' does not contain a definition for 'RadTabStrip1_TabClick'
Where can I make a definition for 'RadTabStrip1_TabClick' ?
Woooohoo ..Looks good Roma :)
add a check for postback
if ( !PostBack)
{
RadTabStrip1.Tabs[0].Enabl
RadTabStrip1.Tabs[1].Enabl
RadTabStrip1.Tabs[2].Enabl
RadTabStrip1.Tabs[3].Enabl
RadTabStrip1.Tabs[4].Enabl
PageView1.Focus();
}
}
Otherwise you keep getting the same look