Telerik Forums
Fiddler Forum
0 answers
103 views

Dear,

I am doing a booking system with Kendo UI Scheduler,Everything working without resource if I resources not bind and not working.getting error like

"Uncaught TypeError: Cannot read property 'length' of undefined"

 [EnableQuery]
        public IQueryable<NeedScheduler> Get()
        {
            return (from cn in Context.CorporateNeeds
                    select new NeedScheduler()
                    {
                        NeedId = cn.NeedId, 
                        ObjectTypeId = cn.ObjectTypeId,
                        EquipmentId = cn.EquipmentId,
                        ProjectId = cn.ProjectId, 
                        ProjectName = cn.ProjectName, 
                        NeedDescription = cn.NeedDescription, 
                        PlanningGroupDescription = cn.PlanningGroupDescription, 
                        DistrictDescription = cn.DistrictDescription, 
                        ProjectedStartDate = cn.ProjectedStartDate, 
                        ProjectedEndDate = cn.ProjectedEndDate, 
                        MatchStatus = cn.MatchStatus, 
                        Comments = cn.Comments, 
                        EquipmentRequirementId = cn.EquipmentRequirementId, 
                        FromPES = cn.FromPES,
                        RegionDescription = "test",
                        Attendees = Context.CorporateNeeds.Take(3).Where(s => s.ObjectTypeId == cn.ObjectTypeId).Select(m => m.EquipmentId).ToList(),
                        IsAllDay=false
                    });
        }     

and My scheduler datasource is:
$("#scheduler").kendoScheduler({
            date: new Date(), //start date. set to today or whichever date the scheduler should land on  
            dateHeaderTemplate: kendo.template("<strong>#=kendo.toString(date, 'd/M')#</strong>"),
            resources: resourcesObjects,
            snap: false,
            timezone: "Etc/UTC",
            views: [
                "timelineWeek",
                {
                    type: "timelineMonth",
                    startTime: new Date("2013/6/13 00:00 AM"),
                    majorTick: 1440,
                    selected: true
                },
                "timelineYear"
               //we can add any other view from the available views or a custom view.
            ],
            allDaySlot: true,
            eventHeight: 40,
            height: 600,
            dataSource: {
                type: "odata-v4",
                transport: {
                    read: {
                        url: servicUrl + "NeedSchedulers?&token=" + token,
                        dataType: "json",
                        contentType: "application/json; charset=utf-8",
                    },
                    update: {
                        url: function (data) {
                            return servicUrl + "NeedSchedulers('" + data.NeedId + "')?&token=" + token;
                        },
                        type: "PUT",
                        dataType: "json",
                        contentType: "application/json; charset=utf-8",
                        data: function (response) {
                            return response;
                        },
                    },
                    create: {
                        url: servicUrl + "NeedSchedulers?&token=" + token,
                        type: "Post",
                        dataType: "json",
                        contentType: "application/json; charset=utf-8",
                        data: function (response) {
                            return response;
                        },
                    },
                    destroy: {
                        url: function (data) {
                            return servicUrl + "NeedSchedulers('" + data.NeedId + "')?&token=" + token;
                        },
                        type: "DELETE",
                        dataType: "json",
                        contentType: "application/json; charset=utf-8",
                    },
                    parameterMap: function (data, operation) {
                        return JSON.stringify(data);
                    }
                },
                schema: {
                    data: function (data) {
                        return data.value;
                    },
                    total: function (data) {
                        return parseInt(data["odata.count"]);
                    },
                    model: {
                        id: "NeedId",
                        fields: {
                            NeedId: { from: "NeedId" },
                            ObjectTypeId: { from: "ObjectTypeId" },
                            EquipmentId: { from: "EquipmentId" },
                            ProjectId: { from: "ProjectId" },
                            title: { from: "ProjectName", nullable: true },
                            NeedDescription: { from: "NeedDescription" },
                            PlanningGroupDescription: { from: "PlanningGroupDescription" },
                            DistrictDescription: { from: "DistrictDescription" },
                            start: { type: "date", from: "ProjectedStartDate" },
                            end: { type: "date", from: "ProjectedEndDate" },
                            MatchStatus: { from: "MatchStatus", nullable: true },
                            Comments: { from: "Comments", nullable: true },
                            EquipmentRequirementId: { from: "EquipmentRequirementId", nullable: true },
                            RegionDescription: { from: "RegionDescription", nullable: true },
                            FromPES: { type: "boolean", from: "FromPES" },
                            isAllDay: { type: "boolean", from: "IsAllDay" },
                            Attendees: { type: "object" }
                        }
                    }
                },
                group: {
                    resources: ["Rooms", "Attendees"],
                    orientation: "vertical"
                },
                resources: [
                    {
                        field: "EquipmentId",
                        name: "EquipmentId",
                        dataSource: [
                            { text: "Meeting Room 101", value: "10002", color: "#6eb3fa" },
                            { text: "Meeting Room 201", value: "10001", color: "#f58a8a" }
                        ],
                        title: "EquipmentId"
                    },
                    {
                        field: "Attendees",
                        name: "Attendees",
                        dataSource: [
                            { text: "Alex", value: "10002", color: "#f8a398" },
                            { text: "Bob", value: "10001", color: "#51a0ed" },
                            { text: "Charlie", value: "10010", color: "#56ca85" }
                        ],
                        multiple: true,
                        title: "Attendees"
                    }
                ]
            }
        });
    });
Sathis
Top achievements
Rank 1
 asked on 11 May 2016
2 answers
2.8K+ views

G'day All!

 

I receive a Chrome error about missing the above header.

 

When I have Fiddler running, this header is added, and the website works fine.

Only problem is I can't see what is going on with the web requests, as everything works with Fiddler running.

 

How do I stop Fiddler adding the Access-Control-Allow-Origin header?

 

Thanks

Ed
Top achievements
Rank 1
 answered on 11 May 2016
3 answers
1.5K+ views

Hi all,

Having a problem we can't figure out.  We've got Fiddler installed on our test machine, and when we create mockups that only test our API calls, it captures them all just fine.  However, when we run the app we're developing (on the same machine), which uses those same API calls, Fiddler captures nothing at all.  We're clueless.  Does anybody know why this would happen?

Chris
Top achievements
Rank 1
 answered on 10 May 2016
2 answers
252 views

The options for the CertEnroll engine list Hash Algorithm as SHA2 (sha-256 specifically), but when I export the root certificate to the desktop (or trust it), the generated CA self-signed certificate has a signature algorithm of sha1. Is there something I need to do to support SHA 2 intercepted traffic?

Tsviatko Yovtchev
Telerik team
 answered on 10 May 2016
0 answers
94 views
---------------------------
Awww, Fiddlesticks!
---------------------------
Fiddler has encountered an unexpected problem. If you believe this is a bug in Fiddler, please copy this message by hitting CTRL+C, and submit a bug report at http://www.telerik.com/forums/fiddler.

VersionCheckFailed: Server Response Code = 502

Type: System.IO.InvalidDataException
Source: Fiddler
   åœ¨ Fiddler.Updater.GetLatestVersion(Boolean includeBetaVersions, Boolean isEmergencyCall)

   åœ¨ System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   åœ¨ System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   åœ¨ System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

   åœ¨ System.Threading.ThreadPoolWorkQueue.Dispatch()


Fiddler v4.6.2.3 (x64 AMD64) [.NET 4.0.30319.42000 on Microsoft Windows NT 10.0.10586.0] 

Mike
Top achievements
Rank 1
 asked on 10 May 2016
2 answers
84 views

Hi there

I am trying to resolve an issue why it constantly takes 16 seconds (used to be 11 but then something changed (?)) to launch an intranet website using IE11 with a PAC file. But here is the most perculier thing if I install Fiddler then the website launches instantaneous.

I would like to know why Fiddler has this impact? 

Regards

Paul

Paul
Top achievements
Rank 1
 answered on 09 May 2016
1 answer
406 views
---------------------------
Awww, Fiddlesticks!
---------------------------
Fiddler has encountered an unexpected problem. If you believe this is a bug in Fiddler, please copy this message by hitting CTRL+C, and submit a bug report at http://www.telerik.com/forums/fiddler.

VersionCheckFailed: Server Response Code = 502

Type: System.IO.InvalidDataException
Source: Fiddler
   at Fiddler.Updater.GetLatestVersion(Boolean includeBetaVersions, Boolean isEmergencyCall)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

   at System.Threading.ThreadPoolWorkQueue.Dispatch()


Fiddler v4.6.2.3 (x64 AMD64) [.NET 4.0.30319.18063 on Microsoft Windows NT 6.1.7601 Service Pack 1] 
Tsviatko Yovtchev
Telerik team
 answered on 09 May 2016
1 answer
249 views

Hello,

I have a .NET Application that I need to alter some WCF traffic headers on.  The Microsoft folks told me there is no way to really inject the headers I need in the request and pick them up out of the response with the current framework.  What I would like to do is just add FiddlerCore to the application, and if the header isn't there on the outgoing request from my application, then I would like to add it.  (Real simple).

I can get everything to work, however the events only fire if I register the FiddlerApplication as a system proxy.  I would like this transparent to the user so that it doesn't screw up their proxy settings in the OS. 

Fiddler.FiddlerApplication.Startup(8877, false, false);
Fiddler.FiddlerApplication.OnNotification += delegate(object sender, NotificationEventArgs oNEA) { System.Windows.Forms.MessageBox.Show("Here"); };

 

The event never gets called in this case, however if I change this over to the below it does:

Fiddler.FiddlerApplication.Startup(8877, true, false);
Fiddler.FiddlerApplication.OnNotification += delegate(object sender, NotificationEventArgs oNEA) { System.Windows.Forms.MessageBox.Show("Here"); };

 

Should the event be being fired if I have the RegisterAsASystemProxy turned OFF?

 

Thanks

 

Tsviatko Yovtchev
Telerik team
 answered on 09 May 2016
0 answers
313 views

Hi All

I am just wondering whether i have posted this in the correct place. I am looking for help or a tutorial on how to use FiddlerCore with a SWF file to inject data into a flash Game.

I have been using the normal way or swapping files on loadup but believe there is a specific way of doing this with FIDDLERCORE.

I have heard about people using this method but unfortunately they dont wanna tell or show me.Any guidance will be welcome Thank-You.

 

regards

Morgs

Robert
Top achievements
Rank 1
 asked on 01 May 2016
1 answer
296 views

Hi,  would like to add a context action that when clicked fiddler will launch an external program and send some data from the packet to that application,  still a noob and  know if that is even possible.

 

Thanks a lot

Tsviatko Yovtchev
Telerik team
 answered on 28 Apr 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?