Telerik Forums
Community Forums Forum
4 answers
153 views
Hi,

I am looking at the RadScheduler control support with web services (as well as WCF services) and interested in trying using the latest Web API against the control. Can this be done?

As a start I've done prototyping against the existing RadScheduler sample but unable to make it work. When I pointed the Web Service path to my Web API link, the system throws me the following error:

Server Error in '/' Application.

The remote server returned an error: (405) Method Not Allowed.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The remote server returned an error: (405) Method Not Allowed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[WebException: The remote server returned an error: (405) Method Not Allowed.]
   System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request) +309
   System.Net.WebClient.UploadString(Uri address, String method, String data) +172
   System.Net.WebClient.UploadString(String address, String method, String data) +35
   Telerik.Web.UI.SchedulerWebServiceClient.GetResources() +1072

[Exception: An error occurred while requesting resources from the web service. Server responded with: "The requested resource does not support http method 'POST'."]
   Telerik.Web.UI.SchedulerWebServiceClient.GetResources() +1430
   Telerik.Web.UI.RadScheduler.BindResourcesFromWebService() +135
   Telerik.Web.UI.RadScheduler.BindResources() +89
   Telerik.Web.UI.RadScheduler.PerformSelect() +141
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   Telerik.Web.UI.RadScheduler.EnsureDataBound() +93
   Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +131
   Telerik.Web.UI.RadScheduler.CreateChildControls() +34
   System.Web.UI.Control.EnsureChildControls() +102
   System.Web.UI.Control.PreRenderRecursiveInternal() +42
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

Does this mean the RadScheduler does not support Web API?

Note: I could not attach the solutions files as reference (attachment only asks for .gif, .jpg, .jpeg, .png) , so if you need me to post the file please let me know how to do this.

Many thanks,

Rully
Brian
Top achievements
Rank 2
 answered on 12 Sep 2012
1 answer
147 views
Whenever I start up Visual Studio (2010) I get a dialog box with the following error message 3 times:

System.IO.FileLoadException: The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Telerik.VSX.Helpers.GlobalAssemblyCache.GacEnumberable..ctor()
at Telerik.VSX.Helpers.GlobalAssemblyCache.AssemblyCache.GetAllGacEntries()
at Telerik..VSX.DistributionDiscovery.GACBasedDistributionSearcher.get_AllGacEntries()
at Telerik..VSX.DistributionDiscovery.GACBasedDistributionSearcher.PopulateDistributionCandidates(IDictionary`2 distrbutionTokenCandidates)
at Telerik..VSX.DistributionDiscovery.GACBasedDistributionSearcher.GetDistributions.(Func`2 distributionTokenCreator)
at Telerik..VSX.DistributionDiscovery.DistributionSearcher.PopulateGACDistributions(IList`1 distributionsToFill)
at Telerik..VSX.DistributionDiscovery.DistributionSearcher.GetDistributions()
at Telerik.Web.UI.VSX.AssemblyDiscovery.WebUIDistributionSearcher.GetDistributions()
at Telerik.Web.UI.VSPackage.VSPackage.GetUpgradeAvailabilityMonitor()
at Telerik..VSX.VSPackage.PackageBase.<>c__DisplayClass3.<OnSolutionOpened>b__0(Object s, DoWorkEventArgs a)
at System.ComponenentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs a)
at System.ComponenentModel.BackgroundWorker.WorkerThreadStart(Object argument)


Any idea what the problem is and how to fix it?

Thanks,
Carl

Chavdar Dimitrov
Telerik team
 answered on 29 Aug 2012
0 answers
66 views
I would like to allow the Original poster to be able to set a post they created as answered if they resolve the post themselves.

I just made a post and then figured out the answer myself. I then posted the answer but I am unable to mark my second post as answer. Others may want the answer but skip my post with the answer becasue I could not mark it as answered.

http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-hide-label-gridtemplatecolumn.aspx#2246768

I have made this suggestion in the past and would really like to see it implemented.
Allan
Top achievements
Rank 2
 asked on 24 Aug 2012
6 answers
241 views
Hi....

I am using a RadTreeView.

- Menu groups collapse when I click a sub menu item.

Expected:
- Menu group should stay open until I
click the divot to collapse the menu group
OR
click the divot to expand a different menu group
OR
go to a different tab.

This is working fine on localhost but not on server. If there is any change to be done in code while loading on server please let me know..
I am storing the value of node in session, to check if the node is clicked or not.
Boyan Dimitrov
Telerik team
 answered on 24 Aug 2012
1 answer
123 views
Hi,
I am doing a site in Sitefinity5. I am using telerik radmenu to display menu items. Here is my code.
public void HorizontalRadMenu_ItemDataBound(object sender, RadMenuEventArgs e)
    {
        string[] strNavigationPages = { "Menu1", "Menu2", "Menu3", "Menu4", "Menu5", "Menu6", "Menu7", "关于我们", "联系我们", "视频", "租赁业务", "客户服务", "手持式 XRF技术" };
        
        if (e.Item != null)
        {
            if (e.Item.Level == 0)
            {
                parentPageId = ((Telerik.Sitefinity.Web.PageSiteNode)(e.Item.DataItem)).Id.ToString();
            }
 
            string currentPageId = ((Telerik.Sitefinity.Web.PageSiteNode)(e.Item.DataItem)).Id.ToString();
            string findThisString = e.Item.Text;
 
            int strIndex = -1;
            int flag = -1;
            if (!String.IsNullOrEmpty(findThisString) && ((Telerik.Sitefinity.Web.PageSiteNode)(e.Item.DataItem)).ShowInNavigation)
            {
                for (int strNumber = 0; strNumber < strNavigationPages.Length; strNumber++)
                {
                    strIndex = strNavigationPages[strNumber].IndexOf(findThisString);
                    if (strIndex > -1)
                    {
                        flag = 1;
                      //e.Item.NavigateUrl
 
                      
                    }
                }
 
                if (flag == -1 && ((Telerik.Sitefinity.Web.PageSiteNode)(e.Item.DataItem)).ParentKey != parentPageId && e.Item.Level < 2)
                {
                    e.Item.Remove();
                }
            }
            else
            {
                e.Item.Remove();
            }
        }
}
  I need to show the language folder appended to the href in menu

<li class="rmItem ">
<a class="rmLink" href="/en/page1/subpage1" /instead of 
<a class="rmLink" href="page1/subpage1" 

Is there any way. Can anybody pls help me.

Thanks,
Surya. 
Ivan Dimitrov
Telerik team
 answered on 24 Aug 2012
0 answers
62 views
Hi team,

when we copy the content from website and paste it in the telerik control, it is distorting the text formatting..
could you let us know if there is any fix for this as we are using this control and creating problems for us

Thanks,
Shankar.
Shankar
Top achievements
Rank 1
 asked on 23 Aug 2012
0 answers
98 views
I am working in telerik grid .but my Problem is how to bind two radio button yes and No and text box in column.my scenario is mentioned below


 1. if yes is clicked then text should be display in grid
 2. if no is clicked then text should not be display in grid
 3. in page load how to visible text box  if radio button  yes is checked

how to achieve this problem in server side or client side
please Provide the best solution
S
Top achievements
Rank 1
 asked on 21 Aug 2012
0 answers
147 views

I have 10 telerik tabs in which each page is a partial view.

 

On click of first tab a grid appears which has few records in it and a row in the grid is highlighted upon some condition.

There are few buttons in the page which has different functionality each.

Onclick of any button an action happens and grid rebinds accordingly(i.e the data in the grid changes based on the button action).

For this I am using grid.rebind();

 

Again I am checking for the condition to highlight the same row which was highlighted before through jQuery like this
var parentTR = $("input:checkbox[class=check-box]:checked").parent().parent();
                                        $(parentTR).addClass("hover_active");

But whichever class I add or delete to grid rows nothing is updated to the grid.

 

May I know the solution for this?

Shruthi
Top achievements
Rank 1
 asked on 07 Aug 2012
0 answers
192 views
I'm considering getting a license for the Windows 8 controls, primarily for a bunch of decent chart controls. I see that a subscription is mentioned, the search engine doesn't spit out anything useful about it. Does a subscription mean just regular code updates until it expires, or does it also stop the design mode in Visual Studio from working upon expiration.

Thanks for any information.
-mg

--edit: Found the FAQ, my questions have been positively answered.
Glowtape
Top achievements
Rank 1
 asked on 03 Aug 2012
1 answer
283 views
Hi,

Could anyone list it out what is the main difference between two with functionalities of the controls that we can do with Telerik and we cant do with ASP.NET Controls.

Thanks
Nidhi
Andrey
Telerik team
 answered on 02 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?