Showing posts with label item. Show all posts
Showing posts with label item. Show all posts

Saturday, March 24, 2012

Tabstrip with remove item

Hi,
I have a tabstrip/tabcontrol and like to remove a tab when a certain choice
is made. I found the
TabStrip1.Items.Remove(TabStrip1.Items.Item(1)) command. But I would like to
have it rebuild. So when I remove a tab in the middle of more tabs that the
tabs or the right shift back to the left.
Please help,
GertGCE, what is wrong with this?
TabStrip1.Items.Remove(TabStrip1.Items[1]);
Are you trying to do this on the client? When I run the above C# code,
it removes the tab on postback and the tabs are correctly spaced.
Jason Bentley
[url]http://gswithblogs.net/jbentley[/url]

Tabstrip with remove item

Hi,

I have a tabstrip/tabcontrol and like to remove a tab when a certain choice
is made. I found the
TabStrip1.Items.Remove(TabStrip1.Items.Item(1)) command. But I would like to
have it rebuild. So when I remove a tab in the middle of more tabs that the
tabs or the right shift back to the left.
Please help,
GertGCE, what is wrong with this?

TabStrip1.Items.Remove(TabStrip1.Items[1]);

Are you trying to do this on the client? When I run the above C# code,
it removes the tab on postback and the tabs are correctly spaced.

Jason Bentley
http://geekswithblogs.net/jbentley

Tuesday, March 13, 2012

TD style gradient filter

I am trying to get a gradient filter on a table item.
I am using...
<td style="width: 309px; filter:
DXImageTransform.Microsoft.Gradient(EndColorStr=#c0cfe2,
StartColorStr=#ffffff, GradientType=0);">
hello</td>
I have tried changing the case, taking out single quotes and various other
things but it just doesn't work! All the examples I have seen say to use
"progid:DXImageTransform" but if I do this then the editor says the colon is
unexpected.
Any help much appreciated...
Best regards
Mark Baldwin> I have tried changing the case, taking out single quotes and various other
> things but it just doesn't work! All the examples I have seen say to use
> "progid:DXImageTransform" but if I do this then the editor says the colon
is
> unexpected.
> Any help much appreciated...
FWIW, I find it infinitely easier, and, obviously, more cross-browser
compatible to simply use a gradient image and assign it via CSS to the
background of your TD.
-Darrel
Mark,
That's correct, you have to prefix it with progid:. Just ignore the warning.
Eliyahu
"Mark" <swozz_@.hotmail.com> wrote in message
news:en2jwHDmFHA.3960@.TK2MSFTNGP12.phx.gbl...
> I am trying to get a gradient filter on a table item.
> I am using...
> <td style="width: 309px; filter:
> DXImageTransform.Microsoft.Gradient(EndColorStr=#c0cfe2,
> StartColorStr=#ffffff, GradientType=0);">
> hello</td>
> I have tried changing the case, taking out single quotes and various other
> things but it just doesn't work! All the examples I have seen say to use
> "progid:DXImageTransform" but if I do this then the editor says the colon
is
> unexpected.
> Any help much appreciated...
> Best regards
> Mark Baldwin
>

TD style gradient filter

I am trying to get a gradient filter on a table item.

I am using...

<td style="width: 309px; filter:
DXImageTransform.Microsoft.Gradient(EndColorStr=#c 0cfe2,
StartColorStr=#ffffff, GradientType=0);">
hello</td
I have tried changing the case, taking out single quotes and various other
things but it just doesn't work! All the examples I have seen say to use
"progid:DXImageTransform" but if I do this then the editor says the colon is
unexpected.

Any help much appreciated...

Best regards
Mark Baldwin> I have tried changing the case, taking out single quotes and various other
> things but it just doesn't work! All the examples I have seen say to use
> "progid:DXImageTransform" but if I do this then the editor says the colon
is
> unexpected.
> Any help much appreciated...

FWIW, I find it infinitely easier, and, obviously, more cross-browser
compatible to simply use a gradient image and assign it via CSS to the
background of your TD.

-Darrel
Mark,

That's correct, you have to prefix it with progid:. Just ignore the warning.

Eliyahu

"Mark" <swozz_@.hotmail.com> wrote in message
news:en2jwHDmFHA.3960@.TK2MSFTNGP12.phx.gbl...
> I am trying to get a gradient filter on a table item.
> I am using...
> <td style="width: 309px; filter:
> DXImageTransform.Microsoft.Gradient(EndColorStr=#c 0cfe2,
> StartColorStr=#ffffff, GradientType=0);">
> hello</td>
> I have tried changing the case, taking out single quotes and various other
> things but it just doesn't work! All the examples I have seen say to use
> "progid:DXImageTransform" but if I do this then the editor says the colon
is
> unexpected.
> Any help much appreciated...
> Best regards
> Mark Baldwin