Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
126 views
Hello admin,

I am using the radscheduler  in our project. Everything is working fine on the local machine. Also the precompiled code runs finely on the local machine. But after uploding the same to staging server some of the fuction of the scheduler not working properly. I am unable to track the issue. The local machine is configured with windows 2007 whereas staging server  has windows 2003.
Following is the handlers section for web.confing. 

<
handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/><remove name="UrlRoutingHandler"/>
<add name="HtmlPages" path="*.html" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness32"/>
<add name="Exececute Xml Package" preCondition="integratedMode" path="execpackage.aspx" verb="*" type="ExecXmlPackage"/>
<add name="Chart Image Handler" path="ChartImage.axd" verb="*" preCondition="integratedMode" type="Telerik.Web.UI.ChartHttpHandler"/>
<add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*"/>
<add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.2.10.1110, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode"/>
<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource,Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="UrlRoutingHandler" verb="*" path="UrlRouting.axd" preCondition="integratedMode" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/></handlers>
when I double click on the timeslot of the scheduler the modal form opens but whe i tried to select the time from the date picker, nothing happens on the form save,cancel, close buttons also do not work. While the same runs fine on the local machine. Also i tried to hide the recurrence editor check box using following code -
function OnClientFormCreated(sender, eventArgs) {
            var $ = $telerik.$;
            $('.RecurrenceEditor').hide();
        }
This works on local machine but not on the staging site. How can i resolve this problem ? All the devlopement has been done.
please reply soon.

Thanks,
roshani
Peter
Telerik team
 answered on 30 Mar 2011
1 answer
125 views
Hi Team,

I have a requirement that
   1. we have placed a radgrid now which has 250 columns in it.
   2.we have a zoom-in /zoom-out functionality , when zoom-in we had used a radwindow were the radgrid that we are placing the usercontrol will appear in the radwindow, but we were not able to do any operation on that.
Following are the details that we were doing:

<telerik:radgrid id="" runat="server">
</telerik:radgrid>
<telerik:RadWindow ID="RadWindow2" runat="server" Modal="true" ReloadOnShow="false"
            Behaviors="Maximize,Pin" VisibleStatusbar="false" VisibleTitlebar="false" InitialBehaviors="Maximize,Pin"
            Left="0" Top="-10" Height="100%" Width="100%" OnClientShow="onRadWindowShow"
            AutoSize="true" AutoSizeBehaviors="Height,Width" BackColor="White" EnableEmbeddedBaseStylesheet="false"
            EnableEmbeddedSkins="false" KeepInScreenBounds="false">
            <ContentTemplate>
                <div id="popupdiv" style="left: 0; top: -10; size: auto; width: 100%; height: 100%;
                    background-color: White;">
                </div>
            </ContentTemplate>
        </telerik:RadWindow>
<asp:HiddenField ID="radWindowShowHide" runat="server" />

  function zoomInWindow()
    {                  
        var oWnd = $find("<%=RadWindow2.ClientID%>");
        var container = document.getElementById('griddiv');
        var content = document.getElementById('popupdiv');
        var dialog = document.getElementById('changediv');
        var table = document.getElementById('tablediv');
        table.style.display = 'none';
        dialog.removeChild(container);
        content.appendChild(container);
        oWnd.set_width(400);
        oWnd.set_height(630);
        oWnd.show();          
        var btn=document.getElementById('<%=ImageButton1.ClientID%>');
        var btn1=document.getElementById('<%=ImageButton2.ClientID%>');
        btn.style.display = 'none';
        btn1.style.display = 'block';
        var hdn1=document.getElementById('<%=radWindowShowHide.ClientID%>');
        hdn1.value="0";
    }
    
    function zoomOutWindow()
    {
        var oWnd = $find("<%=RadWindow2.ClientID%>");
        oWnd.Close();
        var btn=document.getElementById('<%=ImageButton2.ClientID%>');
        btn.style.display = 'none';
        var btn1=document.getElementById('<%=ImageButton1.ClientID%>');
        btn1.style.display = 'block';
        var container = document.getElementById('griddiv');
        var content = document.getElementById('popupdiv');
        var dialog = document.getElementById('changediv');
        var table = document.getElementById('tablediv');
        table.style.display = 'block';
        content.removeChild(container)
        dialog.appendChild(container);
        var hdn1=document.getElementById('<%=radWindowShowHide.ClientID%>');
        hdn1.value="1";        
    }
        
    function ShowHide()
    {
        var hdn1=document.getElementById('<%=radWindowShowHide.ClientID%>');
        var btn=document.getElementById('<%=ImageButton1.ClientID%>');
        var btn1=document.getElementById('<%=ImageButton2.ClientID%>');
        if(hdn1.value=="0")
        {
            btn.style.display = 'none';
            btn1.style.display = 'block';
        }
        else
        {

            btn.style.display = 'block';
            btn1.style.display = 'none';
        }
    }


Here when click on the image zoom-in only the radwindow was displaying grid just for view ,not able to do any save.
So we thought of putting the radgrid inside radwindow and when zoom-in only we have resize the radwindow.
but when we placed radgrid inside radwindow nothing displayed.
this radgrid is in usercontrol.
Please suggest on this, if you have any code snippet please do share.

Thank you,
Preeti
Svetlina Anati
Telerik team
 answered on 30 Mar 2011
3 answers
165 views

Colleagues,

Who knows if it is possible to add a horizontal line showing the actual time to the RadScheduler for ASP.NET? It must move from top to bottom, as time passes, similar to what we can see in the Outlook’s calendar?

Regards,

- Stepan.

Veronica
Telerik team
 answered on 30 Mar 2011
10 answers
256 views
Is there a way when setting an appointment to have the time picker expanded to show more than just 8:00 am to 5:30 pm?
Peter
Telerik team
 answered on 30 Mar 2011
1 answer
59 views
Hi All,
I want to set a flag value whenever I close child Radwindow, and get that flag value on Parent radwindow, If any one have Idea how could i do this???
Shinu
Top achievements
Rank 2
 answered on 30 Mar 2011
3 answers
156 views
I've tried to implement my custom filter, as described in the following article:

http://www.telerik.com/help/aspnet-ajax/contentfilters.html

As a result, I got the following error:

"Telerik.Web.UI.Editor.Filter is null or not an object."

Could someone help please?

P.S. I've already added RadScriptManager and RadAjaxManager on my page.
Rumen
Telerik team
 answered on 30 Mar 2011
7 answers
360 views
Hi,

I am trying to set focus back on the radEditor after saving the contents.  Also setting the cursor to the end of the text.

I have the following scripts set up from looking at these forums.  The error I get 'Object doesn't support this property or method' on the setFocus() call.

            Telerik.Web.UI.Editor.CommandList["Save"] = function(commandName, editor, args) {
                var btnSave = $get("<%=btnDocumentSave.ClientID%>");
                btnSave.click();
                focusRadEditor();
            };

            function focusRadEditor() {
                var docEditor = document.getElementById('<%=Page.Master.FindControl("cphMain").FindControl("DocumentEditor1").FindControl("tbDocumentSource").ClientID%>');
                docEditor.setFocus();
                var contents = docEditor.get_document();
                contents.execCommand("SelectAll", null, false);
                //Collapse selection to the end
                docEditor.getSelection().collapse();
            }

Anyone know what I'm doing wrong?  I'm using Q3 2008 build, and IE6.

Rumen
Telerik team
 answered on 30 Mar 2011
5 answers
118 views
Hi,

We save the location of raddocks on our page with the following code:

void MainRadDockLayout_LoadDockLayout(object sender, DockLayoutEventArgs e)
{
...
e.Positions = serializer.Deserialize<Dictionary<string, string>>(positionsAndIndices[0].ToString());
e.Indices = serializer.Deserialize<Dictionary<string, int>>(positionsAndIndices[1].ToString());
...
}

Where positionsAndIndicies is a json string. This used to work until we upgraded to Q3 2010 and now we get an error:

Property or indexer 'Telerik.Web.UI.DockLayoutEventArgs.Positions' cannot be assigned to -- it is read only
Property or indexer 'Telerik.Web.UI.DockLayoutEventArgs.Indices' cannot be assigned to -- it is read only

Is there a better way to do this in the new release or should we just populate the positions and indices in a loop with e.Indices.Add(...)?

Thanks
Pero
Telerik team
 answered on 30 Mar 2011
3 answers
242 views
Hi

I am trying to add an ImageClickEventHandler onto an imagebutton.
Althought i cant get it to fire. I am doing this within the ItemDataBound event of the grid . I tried changing EnableViewState to false, but that made no difference.

Any ideas would be greatly appreciated

    protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)    
    {  
        ImageButton imgBtnHolder = new ImageButton();  
 
       if (e.Item is GridDataItem)    
        {  
            switch (e.Item.OwnerTableView.Name)  
            {  
 
                case "Vis":  
                    {  
                        GridDataItem item = (GridDataItem)e.Item;  
 
                     
 
                        imgBtnHolder = ((ImageButton)item["colDelete"].FindControl("imgDelete"));  
                        imgBtnHolder.ImageUrl = "data_delete.gif";  
                        imgBtnHolder.AlternateText = "Delete";  
                        imgBtnHolder.OnClientClick = "return confirm('Are you sure you want to remove this');";  
                        imgBtnHolder.CommandName = "Delete";  
                        imgBtnHolder.CommandArgument = "cccc";  
                        imgBtnHolder.Click +=new ImageClickEventHandler(imgBtnHolder_Click);  
                          
                        break;  
                    }  
 
               
            }  
                         
        }    
    }  
 
    
    void imgBtnHolder_Click(object sender, ImageClickEventArgs e)  
    {  
        throw new NotImplementedException();  
    } 

Thanks

 

Princy
Top achievements
Rank 2
 answered on 30 Mar 2011
2 answers
103 views
Hi,
I have a custom provider that Ive created and its works fine with the default edit form. The issue that Im running into is that once I modify my RadScheduler to use an advanced edit form, none of the drop down controls (all of which are populated via resources in the custom provider) have the selected value in edit mode.
Ive tried adding binding expressions for each of the controls in the advanced edit and insert templates, but when I do that I get an error saying that that the Appointment object does not have a definition for a property.
To get around that I can add the CustomAttributes to the radScheduler definition but then the control does not save the data. Also, Im not working with attributes, they are resources.

Can telerik please provide some guidance on this? and please don't recommend that I read the Advanced Templates Demo. Ive read it a number of times and it has not helped.
Veronica
Telerik team
 answered on 30 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?