Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
303 views
Can I get confirmation that the documentation on RadDropDownList client-side OnClientItemsRequesting event handling is incorrect, as the constructor for the event arguments is coming across as Sys.CancelEventArgs and therefore has no context? The event arguments for the combobox are of type RadComboBoxItemsRequestedEventArgs, which does not have a context, but I see no corresponding class for the DropDownList.

Is there a workaround that I could use to add a context to the the RadDropDownList OnClientItemsRequesting client-side function?
Bill
Top achievements
Rank 1
 answered on 15 Jul 2014
1 answer
101 views
I'm using Web Service binding for my scheduler control and would like to use Rad dock als  an external form for insert and edit appointment? How can I do it? I tried "Scheduler - External Edit in RadDock" shown in the demo,
http://demos.telerik.com/aspnet-ajax/scheduler/examples/raddock/defaultcs.aspx

but it didn't work.

Thanks for your help
Yi
Boyan Dimitrov
Telerik team
 answered on 15 Jul 2014
2 answers
383 views
I have a RadGrid to which I've applied alternating row colors via CssClass attributes as recommended here:

<ItemStyle CssClass="GridItemStyle" />
<AlternatingItemStyle CssClass="GridAltItemStyle" />
<SelectedItemStyle CssClass="GridSelItemStyle" />

That works fine to style the rows using my zebra colors.  Now, I've added to the grid:

<MasterTableView AllowSorting="true" />

Now, when I click on a column header, the cells in the column by which I've sorted the data are not styled using my ItemStyle and AlternatingItemStyle CSS classes.  All of the <td/>s in the sorted column have class="rgSorted", yet they're zebra striped in the default grid alternating colours.  What gives?

(Rhetorical aside: Why don't ItemStyle-BackColor, AlternatingItemStyle-BackColor and SelectedItemStyle-BackColor just work the way they should?  Why is the recommended solution that we should use CSS to bypass your grid's own properties?  Shouldn't the recommended solution be to make the grid's published properties work with each other?  If we have to do it in CSS, your developers definitely can.)

So, about that screenshot, why is the sorted column ignoring my CSS row styles and reverting to the defaults?

Thank you,
~Jeff

Jeff
Top achievements
Rank 1
 answered on 15 Jul 2014
1 answer
225 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
154 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
99 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
124 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
854 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
245 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
171 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
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?