Showing posts with label active. Show all posts
Showing posts with label active. Show all posts

Monday, March 26, 2012

AJAX Toolkit Tabs

Is this the intended effect withthe tab control

I notice that each time i roll over a tab (other than the front active one) it makes a call to the server

TIA

i noticed exactly the same thing...

a tab (other than the front active one) it makes a call to the server...

even with the simple code below...

<ajaxToolkit:TabContainer runat="server" ID="TabContainer2">

<ajaxToolkit:TabPanel runat="server" ID="TabPanel4" HeaderText="TabPanel1">
<ContentTemplate>
TabPanel1
</ContentTemplate>
</ajaxToolkit:TabPanel>

<ajaxToolkit:TabPanel runat="server" ID="TabPanel5" HeaderText="TabPanel2" Enabled="true">
<ContentTemplate>
TabPanel2
</ContentTemplate>
</ajaxToolkit:TabPanel>

<ajaxToolkit:TabPanel runat="server" ID="TabPanel6" HeaderText="TabPanel3">
<ContentTemplate>
TabPanel3
</ContentTemplate>
</ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>

i noticed it makes call to server...

Wednesday, March 21, 2012

AJAX Tab Left Side Image Wont Show

For some reason I can't get the image I created for the left side of both my normal and active tabs to show. The right side image shows just fine. The left side images give a nice round corner on the upper left corner and a border on the left end. As you can see in the screen clipping below the left side of each tab is just cut off. Does anybody have any ideas? Thanks in advance...

Here is my custom CSS styled tab strip:

Missing Ends

Here is the CSS:

.ajax_tab_top.ajax__tab_header

{

font-family:verdana;

font-size:10px;

font-weight:bold;

padding-left:5px;

height:18px;

vertical-align:middle;

}

.ajax_tab_top.ajax__tab_outer

{

background-position-x:left;

background-image:url(Images/TabLeft.jpg);

background-repeat:no-repeat;

margin-left:1px;

}

.ajax_tab_top.ajax__tab_inner

{

background-position-x:right;

background-image:url(Images/TabRight.jpg);

background-repeat:no-repeat;

}

.ajax_tab_top.ajax__tab_tab

{

color:#21334b;

height:18px;

background-image:url(Images/TabBG.jpg);

background-repeat:repeat-x;

padding-top:1px;

padding-left:5px;

padding-right:5px;

text-align:center;

}

.ajax_tab_top.ajax__tab_hover.ajax__tab_outer

{

background-position-x:left;

background-image:url(Images/TabLeft.jpg);

background-repeat:no-repeat;

}

.ajax_tab_top.ajax__tab_hover.ajax__tab_inner

{

background-position-x:right;

background-image:url(Images/TabRight.jpg);

background-repeat:no-repeat;

}

.ajax_tab_top.ajax__tab_hover.ajax__tab_tab

{

color:orange;

height:18px;

background-image:url(Images/TabBG.jpg);

background-repeat:repeat-x;

padding-top:1px;

padding-left:5px;

padding-right:5px;

text-align:center;

}

.ajax_tab_top.ajax__tab_active.ajax__tab_outer

{

background-position-x:left;

background-image:url(Images/TabSelectedL.jpg);

background-repeat:no-repeat;

}

.ajax_tab_top.ajax__tab_active.ajax__tab_inner

{

background-position-x:right;

background-image:url(Images/TabSelectedR.jpg);

background-repeat:no-repeat;

}

.ajax_tab_top.ajax__tab_active.ajax__tab_tab

{

color:#ffffff;

height:18px;

background-image:url(Images/TabSelectedBG.jpg);

background-repeat:repeat-x;

padding-top:1px;

padding-left:5px;

padding-right:5px;

text-align:center;

}

.ajax_tab_top.ajax__tab_body

{

width:1000px;

height:27px;

background-image:url(Images/MenuBarBG.jpg);

background-repeat:repeat-x;

}

I stumbled upon the fix for this shortly after I submitted the post. I had to increase the margin-left property of the _tab_tab styles to match the width of the image to be shown on the left side of the tab.

Isn't it funny how the fixes for these things seem so obvious in retrospect?

AJAX Tab

Is there an option for the AJAX Tab Panel so that only the tab that is active will load, and the other tabs will load when you click them?

I'm a little new to the AJAX Toolkit, but if anyone can help it'd be much apprisated.

NB

Hi ,

You can check thishttp://mattberseth.com/blog/2007/07/how_to_lazyload_tabpanels_with.html

George.


Thank you :)