Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
144 views
Hi,

I have an web app that is over 10 years old and has gone through many revisions and upgrades...we've been using telerik's ASP.Net controls for at least 8 years now.
We can't really rewrite the entire thing to MVC, but I need the web app to match our mobile app (based on Google Material) better.
I want to step away from the heavy CSS use of the built in telerik themes.

I've had some luck incorporating this CSS theme framework that is based on Google material:
http://materializecss.com/

But in many cases, the telerik CSS is overriding or conflicting with the Materialize framework.

It would be nice if either you guys provided a Material theme for ASP.NET AJAX, or if I could keep using the Materialize framework by getting my current app using ASP.NET AJAX to push out cleaner html.

Thanks,
Sam
Sam
Top achievements
Rank 1
 answered on 05 Mar 2015
1 answer
138 views
Does anyone have a resolution for the RadButton not being focused on a Page_Load event?

ASP button you can set the .focus() in the page load event and it is truly focused when the page is displayed.  RadButton doesn't work.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="buttonnoworkie.aspx.vb" Inherits="buttonnoworkie" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
      <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="false">
  </telerik:RadScriptManager>
    <div>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
   <telerik:RadButton ID="RadButton1" runat="server" Text="RadButton"
        ResolvedRenderMode="Classic">
  </telerik:RadButton>  
    </div>
    </div>
    </form>
</body>
</html>


Partial Class buttonnoworkie
    Inherits System.Web.UI.Page
 
  Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
    RadButton1.Focus()
  End Sub
End Class

Danail Vasilev
Telerik team
 answered on 05 Mar 2015
1 answer
237 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
66 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
137 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
69 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
255 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
109 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
108 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
314 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?