Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
233 views
Hi!

I am evaluating the diagram control and I found some properties that seems to have no effect.  I use the following lines to initialize the control:
1.<telerik:RadPane ID="diagramPane" runat="server" Scrolling="Y">
2.                <telerik:RadDiagram Resizable="False" ZoomRate="1" ID="radDiagram" runat="server" Width="100%" Height="100%" Draggable="True" Enabled="True" Rotatable="False" Font-Size="12">
3.                    <ClientEvents OnLoad="diagram_load" OnClick="diagram_click" />
4.</telerik:RadDiagram>

The following properties seem to have no effect:
  • Line 1: Scrolling="Y": If I drag a shape over the boundaries, no scoll bar is visible.
  • Line 2: Resizeable="False": The shapes can still be resized.
  • Line 2: Rotatable="False": The shapes are still rotatable.
  • Line 2: Font-Size="12": The font size remains at 15.

Any ideas?

Kind regards,
Hans

Vessy
Telerik team
 answered on 15 Jul 2014
5 answers
159 views
Hi,
DayView in my webservicebound scheduler does not  toggle between 24 hours and businesshours. I am sending ajaax request to server to handle  navigation command. It renders timeslots properly for 24 hours and business hours but doesnot toggle the buttons and always displays "show 24 hours" button.

Here is my server side code, can you tell me if I need any extra configuration?

 ////PK MWF-897  03/31/2014   configure to display 24 hour timeslot  in day and week view
                    if (calendarCommandArgs[2] == "9" && rsTicketsSchedule.DayView.DayStartTime != new TimeSpan(0, 0, 0)) //Show  scheduler for 24 hours 
                    {
                        rsTicketsSchedule.DayView.DayStartTime = new TimeSpan(0, 0, 0);
                        rsTicketsSchedule.DayView.DayEndTime = new TimeSpan(23, 60, 0);
                        
                        rsTicketsSchedule.WeekView.DayStartTime = new TimeSpan(0, 0, 0);
                        rsTicketsSchedule.WeekView.DayEndTime = new TimeSpan(23, 60, 0);
                        
                        rsTicketsSchedule.WorkDayStartTime = new TimeSpan(8, 00, 00);
                        rsTicketsSchedule.WorkDayEndTime = new TimeSpan(18, 30, 00);
                    }
                    else
                    {
                        rsTicketsSchedule.WeekView.DayStartTime = new TimeSpan(8, 0, 0);
                        rsTicketsSchedule.WeekView.DayEndTime = new TimeSpan(18, 30, 00);

                        rsTicketsSchedule.DayView.DayStartTime = new TimeSpan(8, 0, 0);
                        rsTicketsSchedule.DayView.DayEndTime = new TimeSpan(18, 30, 00);
                       

                        rsTicketsSchedule.WorkDayStartTime = new TimeSpan(8, 00, 00);
                        rsTicketsSchedule.WorkDayEndTime = new TimeSpan(18, 30, 00);
                    }


Thanks,
Prava
Prava kafle
Top achievements
Rank 1
 answered on 15 Jul 2014
2 answers
104 views
Hi - I have implemented a rudimentary 'search' function for my TreeList and cal select the required row server side but it does not seem to be possible so far to force the row to scroll into view.  Is there a way to do this as it is available in the treeView but not the TreeList it seems.
Chris
Top achievements
Rank 1
 answered on 15 Jul 2014
1 answer
129 views
It seems to fail on this line
var f=e.get_handled();
if(!f){throw"Error while uploading, "+i;a("object",j).remove();

But if I try again it works.  And if the cache isn't cleared it works.  I moved the custom javascript to the bottom and I think the web.config is ok, but here is my code:

<%@ Page Language="C#" AutoEventWireup="true" Inherits="AssocUploader" CodeBehind="AssocUploader.aspx.cs" %>
 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
    <script type="text/javascript" src="http://cdn.kendostatic.com/2014.1.416/js/jquery.min.js"></script>
 
</head>
 
<body style="font-family: Verdana; font-size: 12px; background-color: lightblue">
 
 
    <form id="form1" runat="server">
 
                    <telerik:RadScriptManager ID="RadScriptManagerAssocUp" EnablePartialRendering="true" runat="server"></telerik:RadScriptManager>
 
        <telerik:RadAjaxManager ID="RadAjaxManagerAAUp" runat="server" />
        <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanelAAUp">
 
 
 
            <div>
                <table>
                    <tr>
                        <td style="text-align: center" colspan="2">
                            <asp:Label Text="Upload File with Description" Font-Bold="true" Font-Size="15px" runat="server" />
                            <br />
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td>File Description</td>
                        <td>
                            <telerik:RadTextBox runat="server" Width="200px" ID="tbFileDesc" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <br />
 
                            <telerik:RadAsyncUpload ID="radUpAssoc" runat="server"
                                Width="250px" OnClientFileUploaded="fileUploaded" DisablePlugins="true"
                                ChunkSize="2097152" DisableChunkUpload="False"
                                MultipleFileSelection="Disabled" OnClientFileUploadFailed="onFileFailed"
                                ManualUpload="true" OnClientFileUploading="onClientFileUploading"
                                HttpHandlerUrl="~/AssocUploadHandler.ashx"
                                AllowedFileExtensions="pdf">
                            </telerik:RadAsyncUpload>
 
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input type="button" onclick="startManualUpload()" value="start upload" />
 
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label Text="" ForeColor="DarkRed" runat="server" ID="txtError" />
                            <br />
                            <asp:Label Text="" ForeColor="DarkGreen" runat="server" ID="txtDebug" />
                        </td>
                    </tr>
                </table>
            </div>
        </telerik:RadAjaxPanel>
 
    </form>
        <telerik:RadCodeBlock runat="server" ID="radCodeBlock1">
        <style type="text/css">
            .RadUpload_Default .ruFakeInput {
                display: none !important;
            }
        </style>
        <script type="text/javascript">
 
          
                    function fileUploaded(sender, args) {
                        document.getElementById("txtDebug").innerText = 'File has uploaded.  Close the window or add another file';
                    }
                    function onFileFailed(sender, args) {
                        document.getElementById("txtDebug").innerText = '';
                        document.getElementById("txtError").innerText = 'File Upload Failed';
                    }
                    function startManualUpload() {
                        var tb = $find('<%=tbFileDesc.ClientID%>');
                        var tbtxt;
                        try {
                            tbtxt = tb._text.length;
                        }
                        catch (err) {
                            document.getElementById("txtError").innerText = 'Description Error:' + err;
                            return;
                        }
                         
                        if (tbtxt == 0) {
                            document.getElementById("txtError").innerText = 'Enter Description';
                        }
                        else {
                            try {
                                var upload = $find('<%=radUpAssoc.ClientID%>');
                                upload.startUpload();
                                document.getElementById("txtError").innerText = '';
                            }
                            catch (err) {
                                document.getElementById("txtError").innerText = 'Upload Exception:' + err;
                                return;
                            }
                        }
                    }
                     
                    function onClientFileUploading(sender, args) {
                        var tb = $find('<%=tbFileDesc.ClientID%>');
                        var tbtxt = tb._text
 
                        var obj = { desc: tbtxt };
                        args.set_queryStringParams(obj);
                    }
           
                if (typeof (Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
        </script>
        </telerik:RadCodeBlock>
    </body>
 
</html>
Hristo Valyavicharski
Telerik team
 answered on 15 Jul 2014
1 answer
861 views
Hi all, 
I am trying to change the number format(Inter related to group size) of RadNumericTextbox. 
Here is my Input:
Input : 1000000000.00
After loosing the focus textbox text becomes "1,000,000,000"

I want it to show like: "1,00,00,00,000.00" (Indian currency format)

I tried using javascript also. Its formatting properly and returning result as the same. But after setting the value to textbox it automatically changes to previous formar(ie. 1,000,000,000).

Any help will be appreciated.

Thanks
Amit Kumar
Kostadin
Telerik team
 answered on 15 Jul 2014
1 answer
249 views
Can radGrid client side binding get data from a RESTful service with GET method? or can client side binding work with ASP.NET Web API 2?

Thanks,

Angel Petrov
Telerik team
 answered on 15 Jul 2014
1 answer
175 views
Hi there,

I am trying to make the exact demo as http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/grouping/group-footers/defaultcs.aspx for a nestedviewtemplate , however, it doesnt work. 
I do basically have a grid and another grid as a nested one into the master, and I would like to make a footer total calculation in the nested grid template.
Any idea ?
thank you
Princy
Top achievements
Rank 2
 answered on 15 Jul 2014
12 answers
679 views
Hello! 

I'm currently using Radcontrols with version 2012.2.724.40

I have a login page, and when the page is loaded, the radtextbox used for the login input becomes automaticly filled with text by the browser memory with the last login used. When i do a postback the radtextbox returns empty string on the server side. Also in the server side when using requiredfiledvalidator it fires the error message indicating the field is empty.

Another way to test this problem is to fill any radtextbox in the form, then redirecto to another page, and then with the browser return button go back to the same page, see the previous filled text in the radtexbox's and confirm that they keep returning empty values both on client side or server side.

This problem only occurs in this current version. With 2012 Q1 or older releases it works fine.
Emre
Top achievements
Rank 1
 answered on 15 Jul 2014
4 answers
319 views
Hi,

Below describes my page:
A ValidationSummary control at the top of my page.
A RadComboBox with a RadTreeView as the ItemTemplate.
A password textbox with a RequiredFieldValidator to validate this textbox(validation group = save )
An input type='file' control
A RadToolBar with submit button with validation group = save

Because the RadTreeView will cause a full postback(which will clear the file control), i'm setting the OnClientNodeClicking event to raise the ajax Request.
This works fine(file control will not be cleared) but there is a problem with this. Whenever i select a node in the TreeView and the password textbox is empty, the error messages is appended to the validation summary control rather than overweriting it.

This reproduces the problem:

1) Leave the password textbox empty
2) Select the tree view node(3 times)
3) While the password textbox is still empty, click on the submit
4) You will see the error messages showing three times. If step 2 is repeated 10 times, then the message will have 10 duplicates.

Why is this happening?

I hope someone can help.

Regards,
Dexter
Shinu
Top achievements
Rank 2
 answered on 15 Jul 2014
10 answers
673 views
I have a RadComboBox with CheckBoxes="true". Everything is working fine. However, the user has to click exactly on the checkbox to check/uncheck the item. How to enable the item to toggle checked state when the user clicks anywhere within the item?

I have also set the AutoPostBack="true" for this combobox. In the earlier version, the user could check/uncheck as many items as they want and the postback would occur on taking focus out of the combobox. I updated the project to use Telerik.Web.UI.dll v2011.3.1305.40. But now the control does a postback every time an item is checked/unchecked. How to revert it back to the old behavior?

Thanks,
Raghu
Hristo Valyavicharski
Telerik team
 answered on 15 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?