| Issue 136: | Building event array from VS, end cannot be defined as event property. | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1.Create event array through VB.Net 2.Define structure containing event properties 3. What is the expected output? What do you see instead? Event has end date. 'end' is keyword in VB and cannot be defined. What version of the product are you using? On what operating system? 1.4 on XP Please provide any additional information below. Is there a way to change the wording of the properties of the events? ie start, end, title. Really just need to change 'end' property so I can define length of event. Agenda view fantastic by the way. This really is an impressive tool.
Oct 23, 2009
#1
leandrok...@gmail.com
Oct 26, 2009
hi leandrokoiti, I had created a VB structure in a web service. ie declaring 'id', 'title' etc. I was never able to get the formatting of a simple string array correct. New to jQuery and json formatting.
Oct 31, 2009
not sure the ins-and-outs of json in VB, but you should be able to specify 'end' as a string. i'm 99% sure you should be able to figure this out, but if worst comes to worst, you can always use a custom event-source 'function' (http://arshaw.com/fullcalendar/docs/events-and-sources.php) to convert from 'length' to 'end'. but this problem is best solved by doing a little more research about how json works in VB
Status:
Done
Jun 22, 2010
This is still a problem in VB and a limiting factor. The problem is with the parameter names you pass to the webservice. You basicly call the following jquery fuction:
$.ajax({
type: 'POST',
contentType: 'application/json; charset=utf-8',
url: 'Calendar.asmx/EventList',
data: '{start: 1278820800, end: 1275192000}',
datatype: 'json'});
This calls the matching webservice in ASP.NET:
<WebMethod()> _
Public Function EventList(ByVal start As String, ByVal end As String) As String
' Code to return events here
End Function
The problem is not passing the string, its matching the name. 'ByVal end as String)' is not valid in VB.NET because end is a keyword.
http://msdn.microsoft.com/en-us/library/t99w05f1(VS.80).aspx
The problem
Jun 29, 2010
This is how to get this working in vb.net http://jake1164.blogspot.com/2010/06/jquery-fullcalendar-and-aspnet.html |
|
| ► Sign in to add a comment |