Showing posts with label calendar. Show all posts
Showing posts with label calendar. Show all posts

Monday, March 26, 2012

Tab Control and Calendar control together

Hello

I am using the new Tab control of Ajax together with the Calendar control.
When using the 2 controls seperately, both work perfect.

When using them together however, I get a javascript error (Error on Page) when clicking on the TextBox field.

Here is my code... anyone can solve this problem??

<toolkit:CalendarExtenderID="CalendarExtender1"runat="server"TargetControlID="myTabContainer$myTab1$txtDate"></toolkit:CalendarExtender>

<toolkit:TabContainerID="myTabContainer"runat="server"Height="300">
<toolkit:TabPanelrunat="server"ID="myTab1">
<HeaderTemplate>Data</HeaderTemplate>
<ContentTemplate>
<form>
<p><asp:LabelID="lblDate"runat="server"Text="Date:"CssClass="label"></asp:Label>
<asp:TextBoxID="txtDate"runat="server"CssClass="short_input"></asp:TextBox></p>
</form>
</ContentTemplate>
</toolkit:TabPanel>

Hey,

Why not just stick it in the content template directly, and reference the ID directly? That, I think, would alleviate the problem.


Nice try but that didn't work neither... :-(

I have found my stupid error...

I had forgotten to reference the masterpage/contentpage itself ! :-)

Tab key works with CalendarExtender on sample site but not on production site

Hi,

I have some textboxes and calendarsextenders bound to them. When I click on 1st textbox, calendar pops up. It hides two other boxes beneath it. After I select date i need to go other text boxes. I tried with tab key but it does not switch to other control, and calendar remains open. I have to click on empty area of page to close calendar.

However, on test site provided with toolkit tab key works ok. Does anyone have idea what might be wrong?

Please reply with acomplete, simple, self-contained sample page that demonstrates the problem so that we can investigate the specific behavior you're seeing. Thank you!

Saturday, March 24, 2012

Tab Panel Disappears on hover over?

Hi all,

I have a reporting page created in Visual Web Dev 2005. It uses a calendar control to allow a user to select a starting and ending date which fills to separate gridviews that reside in two different tab panels. The datagrids in the panel further break down the data by allowing the user to click on a location (or problem depending on the tab clicked) opening a datagid in the panel and also opening the individual tickets in another datagrid not in the panel.

All works well until I click on the second tab to view the second set of results. It shows the info, but when I move the cursor down into the panel the tab panel disappears! If I click on the tab the info comes back but the same thing happens if I mouse over the second tab.

I'm stumped...

Anybody have any sugesstions?