search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Popup on click of event

Asked by Sunil
17 years ago.

I am using daypilot 3.5.2. I need to open up a popup window based on some value of that eventon click of event.Is there any way to achieve this?I know I can show all this in tooltip, but need to open pop up.

Regards

Comment posted by Dan Letecky
17 years ago.
I've described it in a new HOWTO: Open a pop-up window with event details. Let me know if something needs clarification.
Comment posted by Sunil
17 years ago.
Thanks for your reply. It will work but I need to pass few parameters as querystring. These parameters come from datatable that I am using to bind daypilot calendar and do not figure in datavaluefield property. Is there any way I can pass them to querystring for each event ?
Comment posted by Dan Letecky
17 years ago.
The "Tag" field is intended to keep custom information. You can also join multiple fields in the data source and pass them to the query string in DataTagField column.
Comment posted by Sunil
17 years ago.

I did what you suggested, still, javascript pop up is not working.Every thing else is working fine.Here is what I have,

<EMS:DayPilotCalendar ID="DayCalendar1" runat="server" BackColor="OldLace" DataColumnField="Room_Id"
DataEndField="End_Time" DataStartField="Start_Time" DataTextField="Case_Number"
DataValueField="ROWID" DataTagField="Case_Id" Days="1" HourFontSize="14pt" HourNameBackColor="#FFCC66"
NonBusinessBackColor="White" OnBeforeEventRender="DayCalendar1_BeforeEventRender"
ViewType="Resources" Width="100%" EventClickHandling="JavaScript" EventClickJavaScript="window.open('www.yahoo.com');"

StartDate="2007-05-11" CellsPerHour="2" HeightSpec=Fixed Height="100">
</EMS:DayPilotCalendar>

Can you please figure out why no pop up is opening up.

Comment posted by Sunil
17 years ago.

Hi Dan,
There is one more serious problem I am facing,I have got two dropdown on the basis of which I populate daypilot control. When change index of any one of them, it populates, but when I try it again it doesnot allow the dropdown to postback.Does it have something do with Daypilot control, as , other pages are working perfectly fine.I am using this control on a content page where its master is using AJAX. Is AJAx interfering with this?

The error that I am getting is Sys.webforms.PageRequestManagerServerErrorException.

Comment posted by Dan Letecky
17 years ago.
I would recommend switching to the latest 3.7 release because the previous releases were not compatible with ASP.NET AJAX.
Comment posted by Dan Letecky
17 years ago.
And to the popup issue: Try replacing

EventClickJavaScript="window.open('www.yahoo.com');"

with

EventClickJavaScript="window.open('http://www.yahoo.com');"

The former is not opening a new window for me either.
Comment posted by Sunil
17 years ago.

Dan,
I am able to open pop up with

EventClickJavaScript="javascript:window.open('MonthDayView.aspx');"

But,When I write it as

EventClickJavaScript="javascript:window.open('MonthDayView.aspx?Date='+e.value());"

I also tried EventClickJavaScript="javascript:alert(e.value());". This did not popup the value either.

It does not open pop up.Can't understand why?

Answer posted by Dan Letecky
17 years ago.
The 'e' variable was introduced in DayPilot Pro 3.6 In previous versions only 'id' and 'tag' variables are available and you should use:

EventClickJavaScript="window.open('MonthDayView.aspx?id=' + id + '&tag=' + tag);"
Comment posted by Sunil
17 years ago.
Hi Dan,
The pop up issue is solved but the index change problem still persists.I have your latest 3.7.1. Still , when I change value in any of the two droppdown, it populates daypilot control.But, when I change the index, second time, nothing happens i.e. it does not allow page to postback and selctionchanged event of dropdown is not fired.Also, thing is that some times it works perfectly fine some times gives this problem.What can be the issue?
Comment posted by Sunil
17 years ago.

How can I control the alignment of column header and column.Means, In present case, i am having 10 header columns and the respective columns are not coming aligned with it.The lines matching header column and column are getting shifted to right. Is there any way out so that header column and column line comes in straight line.

Comment posted by Dan Letecky
17 years ago.
The dropdown issue: Can you send me a sample ASPX page that reproduces the problem? I will take a look at it.

The column alignment: This happens sometimes when the header text is too long. You can try to make the header font smaller (HeaderFontSize property) or shorten the header text (applies to resources view).
Comment posted by Sunil
17 years ago.
Can I provide a horizontal scroll bar or wrap the header text (if it will spoil alignment) if the number of columns increase? at the moment If i have variable header text for every column, it is spoiling the alignment of header and column.I am using 3.7.1.0.
Comment posted by Dan Letecky
17 years ago.
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.