Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
204 views
Is there a way in code behind to pull all possible Theme names from the Skin Manager into a string array?
I was thinking it might be stored in RadSkinManager.Skins but I didnt find it there. If it is possible please
show code example.

Thanks,
Boyan Dimitrov
Telerik team
 answered on 05 Mar 2015
1 answer
48 views
Hello,

I am having a problem referencing any of the iEnumerable properties on Occurrences collection for the RecurrenceRule class.  It is working OK in one project (4.0 framework) but I am having compilation errors in the other project such as:

Error 179 'Count' is not a member of 'System.Collections.Generic.IEnumerable(Of Date)'. 

The above error is happening with this code:

If parsedRule.Occurrences.Count > 0 Then

In my other project the above works OK.  I've tried adding references to different framework system libraries but it doesn't seem to make any difference.

Any idea why the above would be happening?  Am I missing a reference or do I need to change a reference?  I am using the Q3 2014 UI AJAX ASP.NET controls.

Hristo Valyavicharski
Telerik team
 answered on 05 Mar 2015
1 answer
121 views
I follow the help article to learn lightbox,but the picture does not show after running

1、Create a new webpage in Visual Studio.
2、Add a RadLightBox from the Telerik UI toolbar.
3、Add an Image control(named Image1) to the web page.
4、Into the item collection of the RadLightBox add a new item(item 0) and set the TargetControlID(Image1) to the Image ID.
5、Set ImageURL(~/img/1.jpg) to point to the image, which will be displayed into the window.
6、Add a title and description of the item that will provide descriptive information about the image.
7、Press F5 to compile and run the application.

the aspx file
==================================================================================================
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="TelerikWebApp1.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    <div>
    
    </div>
        <telerik:RadLightBox ID="RadLightBox1" runat="server" PreserveCurrentItemTemplates="False">
            <Items>
                <telerik:RadLightBoxItem ImageUrl="~/img/1.jpg" TargetControlID="Image1">
                </telerik:RadLightBoxItem>
            </Items>
        </telerik:RadLightBox>
        <asp:Image ID="Image1" runat="server" Height="49px" Width="107px" />
    </form>
</body>
</html>

Daniel
Telerik team
 answered on 05 Mar 2015
1 answer
64 views
I see the Material theme for Kendo, MVC and your other platforms, but how about us stuck with ASP.NET AJAX apps??

Thanks,
Sam
Rumen
Telerik team
 answered on 05 Mar 2015
10 answers
236 views
Hello Community,

I want to disable the Document Manager. Using the ToolsFile.xml allows do disable it in the Toolbar only. But I want no icon in the Hyperlink Manager, too. Is this possible?

Regards
Henrik
Ianko
Telerik team
 answered on 05 Mar 2015
3 answers
100 views
Hello Team,

I have created a radgrid from Cs as per the wbelow code:
RadGrid radGridNew = new RadGrid();
 radGridNew.ID = "rgAcc" + Guid.NewGuid().ToString().Replace("-", "");
 radGridNew.ClientSettings.ClientEvents.OnGridCreated = "GridCreated";
 radGridNew.ClientSettings.ClientEvents.OnCommand = "RadGrid1_Command";
 radGridNew.AllowPaging = true;
 radGridNew.PageSize = 10;
 GridBoundColumn colLogDate = new GridBoundColumn();
 colLogDate.DataField = "LogDate";
 colLogDate.UniqueName = "LogDate";
 colLogDate.DataType = typeof(DateTime);
 colLogDate.HeaderText = "Log date";
 GridBoundColumn colIPAddress = new GridBoundColumn();
 colIPAddress.DataField = "IPAddress";
 colIPAddress.UniqueName = "IPAddress";
 colIPAddress.DataType = typeof(string);
 colIPAddress.HeaderText = "IP Address ";
 GridBoundColumn colResult = new GridBoundColumn();
 colResult.DataField = "Result";
 colResult.UniqueName = "Result";
 colResult.DataType = typeof(string);
 colResult.HeaderText = "Result";
 radGridNew.Columns.Add(colLogDate);
 radGridNew.Columns.Add(colIPAddress);
 radGridNew.Columns.Add(colResult);
 radGridNew.AllowSorting = true;
 radGridNew.MasterTableView.AllowMultiColumnSorting = true;
 radGridNew.ShowFooter = true;
 radGridNew.AutoGenerateColumns = false;
 radGridNew.MasterTableView.PagerStyle.AlwaysVisible = true;
 radAcc.Controls.Add(radGridNew);

On Grid Created Event We have called a page that gives data in Json Object as below:
function GridCreated(sender, eventArgs) {
               var Id = sender.ClientID;
               $.ajax({
                   type: "GET",
                   url: "LoadWidgetsAsync.aspx",
                   contentType: "application/json; charset=utf-8",
                   data: { Wid: 1, widgetName: "AccountActivityWidget", ID: Id },
                   async: true,
                   success:
                       function (result) {
                           if (result.length > 0) {
                               var grid = $find(result[0]);
                               var tableView = grid.get_masterTableView();                               
                               tableView.set_dataSource(result[1]);                               
                               tableView.dataBind();
                           }
                       },
                   error: function () {
                       alert('Error on binding the data');
                   }
               });
       }

Once it bind the data to grid, It seems all data in one page rather then displaying only data of first page defined in page size.

Can anyone help me out with this?

Thanks and regards,
Ruchi Patel
Radoslav
Telerik team
 answered on 05 Mar 2015
1 answer
91 views
Hello, I'm implementing a custom editor button that uses editor.showExternalDialog().

I would like to know how to:
- hide the page loading animation (the spinner in the Window)
- load an image in the editor button

Many thanks

AB
Ianko
Telerik team
 answered on 05 Mar 2015
5 answers
294 views
Hi Telerik,

is "set_cancel" method still supporting  OnClientFileUploading(http://www.telerik.com/help/aspnet-ajax/asyncupload-onclientfileuploading.html)?

I tried to use args.set_cancel(true) but got a javascript exception - Microsoft JScript runtime error: Object doesn't support property or method 'set_cancel'

Below is my code:

Javascript:
function OnClientFileUploading(sender, eventArgs) {

 

//cancel the upload

eventArgs.set_cancel(

 

true);

alert(

 

'no duplicate file: ' + args.get_fileName());

 

//hide the uploading item

$telerik.$(eventArgs.get_row()).css(

 

"display", "none");

}


HTML:

<

 

 

telerik:radasyncupload id="Radasyncupload1" runat="server"

 

OnClientFileUploading="OnClientFileUploading"

 

>

 

</telerik:radasyncupload>


Bozhidar
Telerik team
 answered on 05 Mar 2015
3 answers
94 views
Hi, I have trouble getting the image-paste-feature (inlined base64 data) of the RadEditor to work in Internet Explorer.

I see in the demo, that it actually works (IE11):
http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx

However, when I use the demo code locally, it works in Firefox, but not in IE... I'm sure I forgot something (e.g.: is there a certain script I miss? I referenced only the DLLs).

ASPX code (no codebehind code)

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Solution_Test.aspx.cs" Inherits="Solution_Test" %>
 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link href="../Common/styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-containers">
        <div class="demo-container">
            <telerik:RadEditor runat="server" ID="RadEditor1" SkinID="DefaultSetOfTools"
                Height="675px">
            </telerik:RadEditor>
        </div>
    </div>
    </form>
</body>
</html>

Ianko
Telerik team
 answered on 05 Mar 2015
4 answers
291 views
I am trying to implement radGantt per some of the demos, as it looks to be a very nice control indeed. Obviously it works ok on the demo page here : http://demos.telerik.com/aspnet-ajax/gantt/examples/overview/defaultvb.aspx

I would copy this page directly, and try and get it working, however Telerik.Web.SessionDS cannot be found, hence the tag can't be registered, and the page doesn't work. I am using the latest build, 2015.1.225.45. That's problem one.

Now at one point, I had insert working, which has subsequently stopped during some of the cobbling together of different demos. Current asp code is as follows :

  <div class="demo-container no-bg">
        <rad:RadGantt ID="RadGantt1"
            runat="server"
            DataSourceID="SqlDataSource1"
            DependenciesDataSourceID="SqlDataSource2"
            ReadOnly="false"
            SelectedView="WeekView" AutoGenerateColumns="false"  >
            <Columns>
                <rad:GanttBoundColumn DataField="Title" DataType="String" Width="120px"></rad:GanttBoundColumn>
                <rad:GanttBoundColumn DataField="Start" DataType="DateTime" DataFormatString="dd/MM/yy" Width="40px"></rad:GanttBoundColumn>
                <rad:GanttBoundColumn DataField="End" DataType="DateTime" DataFormatString="dd/MM/yy" Width="40px"></rad:GanttBoundColumn>
            </Columns>
 
            <DataBindings>
                <TasksDataBindings
                    IdField="ID" ParentIdField="ParentID"
                    StartField="Start" EndField="End"
                    OrderIdField="OrderID"
                    SummaryField="Summary"
                    TitleField="Title" PercentCompleteField="PercentComplete" />
                <DependenciesDataBindings
                    TypeField="Type" IdField="ID"
                    PredecessorIdField="PredecessorID"
                    SuccessorIdField="SuccessorID" />
            </DataBindings>
        </rad:RadGantt>
    </div>
 
    <asp:SqlDataSource runat="server" ID="SqlDataSource1"
        DeleteCommand="DELETE FROM [GanttTasks] WHERE [ID] = @ID"
        InsertCommand="INSERT INTO [GanttTasks] ([ParentID], [OrderID], [Title], [Start], [End], [PercentComplete], [Expanded], [Summary]) VALUES (@ParentID, @OrderID, @Title, @Start, @End, @PercentComplete, @Expanded, @Summary)"
        SelectCommand="SELECT * FROM [GanttTasks]"
        UpdateCommand="UPDATE [GanttTasks] SET  [Title] = @Title WHERE [ID] = @ID"
        />
    <asp:SqlDataSource runat="server" ID="SqlDataSource2" SelectCommand="SELECT * FROM [GanttDependencies]" />

There is a radScriptManager and a radWindowManager out in the master page, with default settings.

At the moment, insert does the postback, but does nothing in the database.

If I try an update, whether double clicking the task on the left hand pane, or the right hand pane, on save I just get the spinning ajax icon. Normally I would expect there to be something amiss with the UPDATE statement causing an an error during the postback, but in this case the update occurs and you can see the results in the database directly. If you refresh the page you see the update reflected in the Gantt chart.

What's additionally frustrating is that when I am trying to use the developer tools to see what's going on in the response headers, I suspect Kendo is getting in the way and it reports script timeout errors. This doesn't occur if I have the dev console off.

What would really help is a demo ( preferably not in C# ) where I can take care of CRUD directly and get at the values in the Gantt control myself. I saw one posted using LINQ but I really don't want to go down that route, I want to stick with our typical environment of parameters/stored procedure calls.

Aside from that, a very useful feature for AJAX enabled controls would be to be able to turn AJAX off, and force a full postback so any background errors can be hunted down more easily.

Thanks in advance,
 
Felix
Top achievements
Rank 1
 answered on 05 Mar 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?