Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
70 views
I am currently using RadScheduler with webservice bindings.

I need to perform some processing on an appointment and its resources before saving it, but I need to do this server side. I was hoping someone could give me some guidance on how to go about this. My current thought it to add my own method to the webservice and call it manually. But I'm unsure how I would call this from the client and post along the appointment data? This must already happen somewhere for the webservice calls to GetAppointments, InsertAppointments etc so I was hoping I could use similar code.

For example, if I was to add the following method to my webservice, how could I call this from the client side javascript?

[WebMethod]
public bool DoServerSideStuff(SchedulerInfo schedulerInfo, AppointmentData appointmentData)
{
return MyClass.DoSomething(schedulerInfo, appointmentData)
}

 
William
Plamen
Telerik team
 answered on 19 Sep 2012
2 answers
114 views
Hi Telerik,

I'm have created an dynamic RadComboBox object and use it as the result of PageMethods.[WebMethod name].

When the client side receives this result back I'm try to create a html object from this response and add the html object to div tag on webpage.

But I found this method it doesn't work properly in many parts such as RadScriptManager not define style-sheet.

So please advise me for the correct solution or give me an example.

Best Regards,
Mr.Wanlop N (Ball)
wanlop
Top achievements
Rank 1
 answered on 19 Sep 2012
1 answer
258 views
How can I disable a RadButton afert user clicked it and have a postback? I try following code in OnClientClicked event:
 $('#<%=RadButtonProcess.ClientID%>').prop('disabled', true);

The button is disabled but the postback is not fired. I don't know how to continue the postback after disable the button?
Shinu
Top achievements
Rank 2
 answered on 19 Sep 2012
9 answers
221 views

I have a tabstrip and a multipage view that are dynamically populated.  This works fine when scrollChildren is by default set to false, the tabstrip wraps (it shows as two rows) and fits in side of the table and divs that contain it (as this is content page for a master page). When I change the mode to scroll children as I only want one row of tabs, that are scrollable, the tabstrip shows up as longer than the parent table and divs, and the scroll bar is off the page.

Any solutions?
Below is the sample code. The master page it is in is just the standard default masterpage.

Thanks!


 

 

 

<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="WebForm1.aspx.vb" Inherits="_3POC.WebForm1"  %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
  
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
      
  
    <link href="Styles/styles.css" rel="stylesheet" type="text/css" />
    <!--[if lt IE 7]> <style type="text/css">@import "ie6.css";</style><![endif]-->
      
  
      
  
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent" >
   
    <table><tr>
    <td style="vertical-align:top;">
               <telerik:RadDockZone ID="RadDockZone2" BorderStyle="None" runat="server" 
            Orientation="Vertical" Width="100%" height="100%" MinWidth="50px" minHeight="100px" FitDocks="False" 
            Skin="Office2007" HighlightedCssClass="dockzone">
                        <telerik:RadDock ID="RadDock1" runat="server" Title="Tools" Width="275px" EnableAnimation="true"
                            EnableRoundedCorners="true" Resizable="true" Skin="Office2007">
                            <ContentTemplate>
                                <telerik:RadPanelBar runat="server" ID="RadPanelBar1" >
                <CollapseAnimation Type="OutQuart" Duration="200"></CollapseAnimation>
                <Items>
                    <telerik:RadPanelItem Text="Patient Info" Expanded="True">
                        <ContentTemplate>
                        MRN: 1234s <br />
                        Patient Name: Eric Dalnas <br />
                        Patient age: 34 <br />
                        </ContentTemplate>
                         
                    </telerik:RadPanelItem>
                     <telerik:RadPanelItem Text="Notes">
                        <Items>
                            <telerik:RadPanelItem Text="My Notes"></telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="Notes List"></telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="Shared Notes"></telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="Archive"></telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                    <telerik:RadPanelItem Text="Future Use 1">
                        <Items>
                            <telerik:RadPanelItem Text="My Contacts"></telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="Address Cards"></telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="Phone List"></telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="Shared Contacts"></telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                    <telerik:RadPanelItem Text="Future Use 2">
                        <Items>
                            <telerik:RadPanelItem Text="My Tasks"></telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="Shared Tasks"></telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="Active Tasks"></telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="Completed Tasks"></telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                     
                    <telerik:RadPanelItem Text="Future Use 4">
                        <Items>
                            <telerik:RadPanelItem Text="My Client.Net"></telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="My Profile"></telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="My Support Tickets"></telerik:RadPanelItem>
                            <telerik:RadPanelItem Text="My Licenses"></telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                </Items>
                <ExpandAnimation Type="OutQuart" Duration="200"></ExpandAnimation>
            </telerik:RadPanelBar>
                            </ContentTemplate>
                        </telerik:RadDock>
                    </telerik:RadDockZone>
  
         
        </td>
    <td style="border-style:none; vertical-align:top;">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional" >
        <ContentTemplate>
          
       <telerik:RadTabStrip ID="tabMain" runat="server" 
                MultiPageID="multiPageMain" Skin="Office2007"
            AutoPostBack="True" ></telerik:RadTabStrip>
     <telerik:RadMultiPage ID="multiPageMain" runat="server" 
            RenderSelectedPageOnly="True" >
        </telerik:RadMultiPage>
          
        </ContentTemplate>
        <Triggers>
        <asp:AsyncPostBackTrigger ControlID="tabMain" />
        </Triggers>
        </asp:UpdatePanel>
    </td></tr>
      
    </table>
       
                                  
           
          
       
          
          
        
   
  
  
  
      
        <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
        </asp:ScriptManagerProxy>
        <asp:UpdateProgress id="UpdateMessagesProgress" DynamicLayout="false" runat="server" visible="true" DisplayAfter="250">
 <ProgressTemplate>
 <div id="progressBackgroundFilter"></div>
        <div id="processMessage" style=" text-align:center;"> Processing...<br /><br />
             <img alt="Loading" src="Images/busy.gif" />
        </div>
  
 </ProgressTemplate>
 </asp:UpdateProgress
         
      
    </asp:Content>

Kate
Telerik team
 answered on 19 Sep 2012
2 answers
146 views
Hi there, i have an issue with the RadProgressArea when used in conjunction with the RadUploader.

When uploading a large file, if the Cancel button is pressed, the file corredctly stops uploading, however the ProgressArea and uploader window remain on the screen.

ideally i would like for the progress area to be hidden if the Cancel button is clicked during the upload.

Any advice on how to achieve this would be gratefully received.

My thanks in advance.
Kate
Telerik team
 answered on 19 Sep 2012
1 answer
84 views
Hi there,

I have a Radgrid with server-side databinding and an onneeddatasource-event. 
I want to change the pagesize dynamically in addiction to the mastertableview-size.
All looks good but when the TableView was updated with the new pagesize, i can't select the rows anymore...

The Script:
<script type="text/javascript">
    function GridCreated(sender, eventArgs) {
            //gets the main table scrollArea HTLM element  
            var scrollArea = document.getElementById(sender.get_element().id + "_GridData");
            var tvHeight = scrollArea.offsetHeight;
            var size = Math.floor(tvHeight / 64);
            //alert(size);
            var tableView = $find("<%= RadGridView.ClientID %>").get_masterTableView();
            tableView.set_pageSize(size);
    }
</script>

HTML-Code:
<telerik:RadGrid ID="RadGridView" AutoGenerateColumns="False" onitemdatabound="RadGridViewItemDataBound" OnItemCreated="RadGridViewItemCreated" AllowSorting="True" AllowPaging="True" EnableViewState="True" OnPageIndexChanged="RadGridPageIndexChanged" OnNeedDataSource="RadGridView_NeedDataSource" runat="server">
<PagerStyle Mode="NextPrev" Position="Bottom" AlwaysVisible="True" CssClass="RadGridPager" PagerTextFormat="Seite blättern: {4} Seite {0} / {1} - Einträge {2} - {3} / {5}"/>
<ClientSettings>
    <Selecting AllowRowSelect="true" />
    <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" />
    <ClientEvents OnGridCreated="GridCreated" />
</ClientSettings>
<MasterTableView TableLayout="Fixed" Font-Size="18px" ClientDataKeyNames="IsBlueLight,IsFailure,IsStopped,OrderNr,ObjectNr" DataKeyNames="OrderNr">
    <NoRecordsTemplate>
        <div>
            Keine Einträge
        </div>
    </NoRecordsTemplate>
    <Columns>
         .........
</telerik:RadGrid>

Code-Behind:
....
protected void RadGridView_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
    RadGridView.DataSource = Session[Constants.ORDERLIST] as List<Auftrag>;
}
....


thanking you in anticipation

Best regards,
Markus 
Tsvetina
Telerik team
 answered on 19 Sep 2012
1 answer
196 views
I have purchased lartest Telerik and updated to the latest patch  (Q2 2012 SP2). I'm using the RadEditor in default configuration without any mofdification or custom providers.

The Image Editor Dialog loads with the blank image when I folow the steps as mentioned below.

1. Click on "Image Manager" button in the toolbar of the editor
2. Image Manager dialog opens and selec an image from the list hich pushes the image to the right hand side pane (im.jpg)
3. Click on the "Image Editor" at the top of the pane as described in 2 above
4. Image Editor dialog opens up with a balnk image (ie.jpg)

Screen shots are attached to show my case and the code snippet is also given below.
Pleas help!


<telerik:RadEditor
    runat="server"
    AllowScripts="true"
    DialogsCssFile="~/_Global/css/RadEditor_Skin.css"
    ToolsFile="~/_Global/modules/telerik_editor/ToolsFile.xml"
    TableLayoutCssFile="~/_Global/css/TableLayoutCss.css"
    Skin="Outlook"
    ID="radEdtContent"
    width="100%"
    Height="500px">
    <CssFiles>
      <telerik:EditorCssFile Value="~/_Global/css/RadEditor_Skin.css" />
    </CssFiles>
</telerik:RadEditor>

string[] sImagePath = new string[] { "~/_Global/" + ModuleProperties.SiteID + "/img/content" };
 radEdtContent.ImageManager.ViewPaths = sImagePath;
 radEdtContent.ImageManager.UploadPaths = sImagePath;
Rumen
Telerik team
 answered on 19 Sep 2012
3 answers
162 views
Hi all

 I have a  RadComboBox in asp.net and i have used  AllowCustomText="true" . so that way if user does not want to select the pre enter value he/she can enter his own value in radcombo box . but when a user can enter any element such like <b>,<br> mean any html tag and press enter button for submitting data it show error . i have create a java script code that removed <> before any text on blur event and it working fine to me but when i click to save the document it show error page . How can i solve this problem ?



Thanks all 

Sushobhit Raman
Princy
Top achievements
Rank 2
 answered on 19 Sep 2012
3 answers
608 views
Hi,

 

Setup Information:

 

·         Visual studio v2005

·         .NET Framework v2.0

·         Reference for following dlls is added in the Project:

o   System.Web.Extensions.dll

            Path: C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\System.Web.Extensions.dll

o   Telerik.Web.UI.dll

            Path: C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2009\Bin\ Telerik.Web.UI.dll

When we are using the Telerik context menu control on our page, we are getting the following error:
'~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager You will be automatically directed to the previous page in 5 seconds.

We also  added all the suggested nodes in the Web.Config file, but the error is still there.

Also note that when we are using Telerik 3.5 dll with VS2008, everything is working fine.

Waiting eagerly for your response,
Abhishek

Mohammad
Top achievements
Rank 1
 answered on 19 Sep 2012
0 answers
63 views
Dear ALL,

We are developing project using asp.net.here we have grid to display list of user details and there is option to edit their details.an d also edit page is seperate page.
My Question is,
  • when click edit page navigation link my edit page will be display as lightbox, How do build Lightbox for that.

Thanks in Advance..!

Susi
Top achievements
Rank 1
 asked on 19 Sep 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?