Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
248 views
I am using a RadScheduler control in a MVC application, using a web service.  I am trying to change the appointment template.  I have followed this demo: http://demos.telerik.com/aspnet-ajax/scheduler/examples/webservice/defaultvb.aspx, but am getting this javascript error when trying to debug: "Microsoft JScript runtime error: Object doesn't support property or method 'tmpl'"

This error occurs on this line of code:
$("#tmplAppDescription").tmpl(tmplValue).insertBefore(this);

Here is my code.  As far as I can see I have included everything I should need for this to run correctly.  What is causing the javascript error?

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            <asp:ScriptReference Path="~/Scripts/jquery.tmpl.js" />
        </Scripts>
    </telerik:RadScriptManager>
 
     <telerik:RadScheduler ID="RadScheduler1" runat="server" SelectedView="WeekView" 
        StartEditingInAdvancedForm="False" EnableDescriptionField="True" Height="600px" 
        AppointmentStyleMode="Default" Skin="WebBlue" OnClientDataBound="onSchedulerDataBound" >
        <WebServiceSettings Path="../../SchedulerWebService.asmx" ResourcePopulationMode="ServerSide" />
    </telerik:RadScheduler>

<script id="tmplAppDescription" type="text/x-jquery-tmpl"><div style='font-style:italic;'>${Description}</div></script>
<script type="text/javascript">
    function onSchedulerDataBound(scheduler) {
        var $ = jQuery;
        $(".rsAptDelete").each(function () {
            var apt = scheduler.getAppointmentFromDomElement(this);
            var tmplValue = { Description: apt.get_description() };
            $("#tmplAppDescription").tmpl(tmplValue).insertBefore(this);
        });
    }
</script>
Plamen
Telerik team
 answered on 29 Jun 2012
1 answer
92 views
I have 2 levels of grouping  and doing 'All Edit .  Basically I am putting  all rows in edit mode.

I have grid numeric columns and for business reason  I  will be making 3 out of  5 gridnumeric columns as readonly  ( which made to loose the formatting for readonly converted columns , so I have to read them in code(Databound event) and put back with formatting in the RadNumericTextboxes created for them) so I am loosing bound for those columns.

when  I am  in  'All Edit' mode if I collapse one of the group, basically I am loosing the display values of all 'readonly'  columns( the one which I populated thru logic).

Queston 1: How can I reatin the populated values if I am doing collapse and expand . FYI . The columns which are in Edit mode are fine.. only thsoe columns which are  editable but made readonly for business reason  loosing the values

Question2: If I can't achieve the above , how can I make collapse button ( the triangle one)  disable , so when you  first  "Edit ALL" it  expands everythig and  disable the collapse feature  in 'Alledit mode' , when  udpate is done I need to 'Enable' the collapse/expand feature'

Thanks for your help
 

  
Andrey
Telerik team
 answered on 29 Jun 2012
3 answers
102 views
Is there any way to make the scheduler not reliant on actual dates, but just on a 7 day week. I would like to setup an interface where the user can schedule an event to occur on a certain day in the week, for every week. Right now it goes by actual dates, rather than just a generic week.

Thanks.
Plamen
Telerik team
 answered on 29 Jun 2012
1 answer
204 views
Recently I start using CloudFlare for my web site. After 1 day, I found that all pages with RadEditor failed to load the editor, displayed javascript error: Sys.InvalidOperationException. Some controls in Ajax Control Toolkit also failed as well.

Since CloudFlare works like a reverse proxy, I thought this is the cause. Disable the service for this site worked around the problem, but how to make RadEditor work under reverse proxy?
Rumen
Telerik team
 answered on 29 Jun 2012
1 answer
82 views
Can someone please help the showInsertFormAt() method on the RADScheduler throws a parameter count exception. Does anyone know how to fix that. Thanks
Plamen
Telerik team
 answered on 29 Jun 2012
1 answer
137 views
Hello,

I have a RadGrid displaying data about orders (id, customer's name, firstname, etc) where each row is expandable. When a row is expanded, additional information contained in an ascx component is being shown. My problem is that the whole grid is actually fully reloaded each time a row is being expanded! (I noticed this behavior by displaying current datetime inside the component).

Am I missing some obvious settings?

aspx:
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" EnablePartialRendering="true" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="griOrders">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="griOrders" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" EnableViewState="true" />
    <telerik:RadGrid ID="griOrders" runat="server" AutoGenerateColumns="False" AllowSorting="True"
        AllowMultiRowSelection="False" AllowPaging="True" PageSize="20" GridLines="None"
        AllowFilteringByColumn="True" 
        SortingSettings-SortedAscToolTip="Tri croissant" SortingSettings-SortedDescToolTip="Tri décroissant"
        OnSortCommand="griOrders_SortCommand" OnItemCommand="griOrders_ItemCommand"
        OnPageIndexChanged="griOrders_PageIndexChanged" OnNeedDataSource="griOrders_NeedDataSource">
        <PagerStyle Mode="NumericPages"></PagerStyle>
        <MasterTableView DataKeyNames="ID" AllowMultiColumnSorting="True" AllowNaturalSort="true"
            GroupLoadMode="Server">
            <NestedViewTemplate>
                <asp:Panel runat="server" ID="InnerContainer" CssClass="viewWrap" Visible="false">
                        <uc:test runat ="server" />
                </asp:Panel>
            </NestedViewTemplate>
            <Columns>
                <telerik:GridBoundColumn SortExpression="ID" HeaderText="ID" HeaderButtonType="TextButton"
                    DataField="ID" UniqueName="ID" DataType="System.String" ItemStyle-Width="70px"
                    FilterControlWidth="50px">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn SortExpression="Date" HeaderText="Date" HeaderButtonType="TextButton"
                    DataField="Date" UniqueName="Date" DataType="System.DateTime" ItemStyle-Width="80px"
                    FilterControlWidth="60px">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn SortExpression="Heure" HeaderText="Heure" HeaderButtonType="TextButton"
                    DataField="Heure" UniqueName="Heure" DataType="System.String" ItemStyle-Width="70px"
                    FilterControlWidth="50px">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn SortExpression="TTC" HeaderText="TTC" HeaderButtonType="TextButton"
                    DataField="TTC" UniqueName="TTC" DataType="System.Decimal" ItemStyle-HorizontalAlign="Right"
                    ItemStyle-Width="70px" FilterControlWidth="50px">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn SortExpression="Nom Prénom" HeaderText="Nom Prénom" HeaderButtonType="TextButton"
                    DataField="Nom Prénom" UniqueName="NomPrénom" DataType="System.String" FilterControlWidth="150px">
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

Code Behind

protected void griOrders_ItemCommand(object source, GridCommandEventArgs e)
    {
        if (e.CommandName == RadGrid.ExpandCollapseCommandName && e.Item is GridDataItem)
        {
            ((GridDataItem)e.Item).ChildItem.FindControl("InnerContainer").Visible = !e.Item.Expanded;
        }
    }

Thanks for your help!
Maria Ilieva
Telerik team
 answered on 29 Jun 2012
1 answer
1.1K+ views
Hi,

How do I convert letters in radtextbox into uppercase automatically when user type something

Thanks
Federik
Princy
Top achievements
Rank 2
 answered on 29 Jun 2012
0 answers
130 views
Hi there

We recently upgraded our existing Rich text Editor solution for telerik's RadEditor.

In our existing code, we have carried out validation on the text being entered in some of these editors. Whilst upgrading the solutions, we noticed that there is one fundamental feature offered by our existing editor which telerik's does not... That being the ability to count the length of the content but to include only the plaintext (i.e. omit all (X)HTML tags)

Is this currently available in the RadEditor??

Regards

A.

*******************

Update --> Found this under the Text property, my bad for wasting your time!! sorry (feel free to delete)
Mak
Top achievements
Rank 1
 asked on 29 Jun 2012
6 answers
470 views
Hi,

My ComboBox looks like this:

<telerik:RadComboBox ID="cboChambreDe" runat="server" MarkFirstMatch="True" EnableLoadOnDemand="True"
    HighlightTemplatedItems="True" Height="300px" LoadingMessage="Chargement" ItemsPerRequest="10"
    ShowMoreResultsBox="true" EnableVirtualScrolling="true" OnItemsRequested="cboChambre_ItemsRequested"
    DropDownWidth="300">
    
</telerik:RadComboBox>

When I click on a button, I call a javacript method that do:

$find("cboChambreDe").requestItems("TOM1", false);

It calls the ItemRequested on the server and it correctly find the item I want. But it doesn't refresh my ComboBox on the client, so it stays empty.

What am I doing wrong?
Nencho
Telerik team
 answered on 29 Jun 2012
2 answers
83 views
Hi,

I have radgrid which lists products and displays the image in this method (http://www.telerik.com/community/forums/aspnet/grid/display-image-field-in-radgrid.aspx). I also attach a tooltip to the product name cell on ItemDataBind. I also have a button outside of the grid which filters the grid using MasterTableViewFilterExpression and MasterTableView.Rebind();

The grid functions correctly until the MasterTableViewRebind is fired. Then I lose my Images and the tooltip does not display.

I forgot to mention this grid is on a page which is in a RadWindow.

Please assist.

Neeraj Kuttan
Top achievements
Rank 1
 answered on 29 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?