Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
684 views

Using UI for ASP.NET AJAX Q1 2016, with VS 2013. My situation is below:
 
 1a) Exporting SQL Data to users weekly basis into an Excel File via SSIS Package. Works Fine...
 
 1b) Super User add/edit's some Cell (Not row/column) data elements in that Excel File based on data from a 3rd Party.
 
 Now Super user want to Publish that Excel Data into Web just as read only to other user's.
 
 My intention:
 
 2a) How to hide toolbar, formula bar, Making Cells/Formula's read only and just show export to Excel Button using below Prototype.


 2b) Possible when exporting to Excel, instead of Save/Save as (in #2a),  allow open/save/cancel like below RadGrid Demo. 99% of the time, user will prefer to open the file prior to save it.

 

Thanks a lot.
 
 gc_0620
 

 

Ivan Danchev
Telerik team
 answered on 07 Mar 2016
3 answers
153 views

I open the RadWindow by the code.  Both OpenDownloadFile and OpenDownloadFile1 does not work.

The code is actually copied from my old code.  Now my version is 2015Q3.  Old code is working fine in old Telerik versions.

IE11 displays error: Object doesn't support property or method '_createDefaultTable'.

 

Regards

Alfred

 

 

 

01.<a href="javascript:void(0)" onclick="OpenDownloadFile();">Run JavaScript Code</a>
02. 
03.function OpenDownloadFile() {
04.     var wndManager = $find("<%=RadWindowManager1.ClientID%>");
05.     var oWnd = wndManager.open("Popup_DownloadFile.aspx", "RadWindow1");
06.     oWnd.center();
07. 
08.}
09. 
10.function OpenDownloadFile1() {
11.            var oWnd = radopen("Popup_DownloadFile.aspx?ID=" + FileID, null); // open radwindow        
12.            oWnd.set_title("Download File");
13.            oWnd.set_visibleStatusbar(false);
14.            oWnd.setSize(700, 1000);
15.            oWnd.moveTo(100, 50);
16.            window.scrollTo(100, 100)
17.             
18.        }

Alfred
Top achievements
Rank 1
 answered on 07 Mar 2016
1 answer
105 views

Hi there,

I came across an RadEditor inconsistent issue in IE, when I right click on the Editor, no context menu shows in IE, but I do get a context menu including cut, copy, paste in Firefox. I would like the Editor to show the context menu in both IE and Firefox. Is there anyone can help? Thanks a lot.

Following is my test code:

 

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadEditorTest.aspx.cs" Inherits="RadEditorTest" %>
<!DOCTYPE html>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
        <telerik:RadEditor runat="server" ID="tb_taskinstructionRichEdit" EditModes="Design" Width="99%" Height="200px">
                <Tools>
                <telerik:EditorToolGroup >
                    <telerik:EditorTool Name="Bold"></telerik:EditorTool>
                    <telerik:EditorTool Name="Italic"></telerik:EditorTool>
                    <telerik:EditorTool Name="Underline"></telerik:EditorTool>
                    <telerik:EditorSeparator></telerik:EditorSeparator>
                    <telerik:EditorTool Name="ForeColor"></telerik:EditorTool>
                    <telerik:EditorTool Name="BackColor"></telerik:EditorTool>
                    <telerik:EditorSeparator></telerik:EditorSeparator>
                    <telerik:EditorTool Name="FontName"></telerik:EditorTool>
                    <telerik:EditorTool Name="RealFontSize"></telerik:EditorTool>
                    <telerik:EditorSeparator></telerik:EditorSeparator>
                    <telerik:EditorTool Name="Indent" />
                    <telerik:EditorTool Name="Outdent" />
                    <telerik:EditorTool Name="JustifyLeft" />
                    <telerik:EditorTool Name="JustifyCenter" />
                    <telerik:EditorTool Name="JustifyRight" />
                    <telerik:EditorTool Name="JustifyFull" />
                    <telerik:EditorTool Name="JustifyNone" />
                    <telerik:EditorTool Name="InsertOrderedList" />
                    <telerik:EditorTool Name="InsertUnOrderedList" />
                    <telerik:EditorTool Name="InsertLink" />
                    <telerik:EditorTool Name="InsertTableLight" />
                    <telerik:EditorSeparator></telerik:EditorSeparator>
                    <telerik:EditorTool Name="Redo" />
                    <telerik:EditorTool Name="Undo" />      
                </telerik:EditorToolGroup>
            </Tools>
        </telerik:RadEditor>
    </div>
    </form>
</body>
</html>

 

 

Vessy
Telerik team
 answered on 07 Mar 2016
3 answers
259 views

I have a problem when I disable the viewState for the RadScheduler.  I know it's not safe doing that but I want my page to be as light as possible. 

In the Page_load event, I load appointments from a database (on Init and Postback).  The problem I have is that I cannot retreive the new appointments in the scheduler after a postback.  If I check the Appointments collection, I don't have the new ones.

Can someone explain why I lost the new ones ?  I was thinking that it's on the LoadPostData that you retreive the new data from the control.  Do I miss something ?

    protected void Page_Load(object sender, EventArgs e)
    {
      // Check AppointmentCollection.  Always o element inside.
      AppointmentCollection appointments = RadScheduler1.Appointments;

      // Load Appointment
      DateTime now = DateTime.UtcNow;
      now = new DateTime(now.Year, now.Month, now.Day, now.Hour, 0, 0);
      List<AppointmentInfo> appointments = new List<AppointmentInfo>();

      appointments.Add(new AppointmentInfo("Programmer le scheduler", now, now.AddHours(1)));

      RadScheduler1.DataKeyField = "ID";
      RadScheduler1.DataSubjectField = "Subject";
      RadScheduler1.DataStartField = "Start";
      RadScheduler1.DataEndField = "End";
      RadScheduler1.DataSource = appointments;
    }

Nencho
Telerik team
 answered on 07 Mar 2016
16 answers
206 views

Hi, 

I'm not getting any loading panes loading when using the material skin.  Is there a known issue?  The below works when I set the skin on the loading panel as black but not when Material...

 

<html lang="en">
    <head runat="server">
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Login Page</title>
    </head>
  <body >
        <form id="uxLoginForm" runat="server">
            <telerik:RadScriptManager ID="uxRadScriptManager" runat="server"></telerik:RadScriptManager>
            <telerik:RadStyleSheetManager ID="uxRadStyleSheetManager" Runat="server"></telerik:RadStyleSheetManager>
            <div id="test" style="width:1000px;height:100px;background-color:red;">ddd</div>
            <telerik:RadAjaxManager ID="uxRadAjaxManager" runat="server" >
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="test">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="test" LoadingPanelID="uxLoadingPanel" />
                        </UpdatedControls>
                        </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
            <telerik:RadAjaxLoadingPanel ID="uxLoadingPanel" Runat="server" Skin="Material" ></telerik:RadAjaxLoadingPanel>
        </form>           
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
                function pageLoad() {
                    currentLoadingPanel = $find("<%= uxLoadingPanel.ClientID %>");
                    currentLoadingPanel.show("test");
 
                };
            </script>
        </telerik:RadCodeBlock>
    </body>
</html>

 

Maria Ilieva
Telerik team
 answered on 07 Mar 2016
1 answer
139 views

Hi there;

If I have a GridGroupFooterItem (or HeaderItem), is there an easy way for me to tell what grouping level it belongs to?

J

Konstantin Dikov
Telerik team
 answered on 07 Mar 2016
1 answer
126 views

I am trying to integrate telerik controls into a web application that was recently upgraded from .net 1.1 to 4.5.  Needless to say the pages and configs contain all sorts of quirky legacy stuff . I have set up a test page in this webapplication.  On this page I am completely unable to get the RadNavigation control to run. I have it set up as in the Demo. No code behind. I always get a javascript error from the browser on the initial display of the page.

Unhandled exception at line 40, column 40 in http://aspnet-scripts.telerikstatic.com/ajaxz/2016.1.113/Navigation/RadNavigationScripts.js

0x800a138f - JavaScript runtime error: Unable to get property 'toLowerCase' of undefined or null reference

 

If I check fiddler I don't see a tolowercase call on this line.

Any help on this one. I'm guessing it's some sort of config issue since I'm not actually trying to do anything other than get a very very basic sample to run.

Thanks!

Ivan Danchev
Telerik team
 answered on 07 Mar 2016
1 answer
186 views

Hi

 

I am using  http://demos.telerik.com/aspnet-ajax/menu/examples/functionality/templates/defaultcs.aspx to generate menu

How can i use the bread crumb up to the level RadSiteMapNode. I was using following code sample  but not working 

 

using System;
using System.Collections.Generic;
using Telerik.Web.UI;
  
namespace Menu.Examples.Programming.ShowPath
{
    public partial class DefaultCS : System.Web.UI.Page
    {
        //If RadMenu is data bound, please use its DataBound event instead of PageLoad.
        protected void Page_Load(object sender, EventArgs e)
        {
            RadMenuItem currentItem = RadMenu1.FindItemByUrl(Request.Url.PathAndQuery);
            if (currentItem != null)
            {
                //Select the current item and his parents
                currentItem.HighlightPath();
                //Update the title of the
                PageTitleLiteral.Text = currentItem.Text;
                //Populate the breadcrumb
                DataBindBreadCrumbSiteMap(currentItem);
            }
            else
                RadMenu1.Items[0].HighlightPath();
                  
        }
  
        private void DataBindBreadCrumbSiteMap(RadMenuItem currentItem)
        {
            List<RadMenuItem> breadCrumbPath = new List<RadMenuItem>();
            while (currentItem != null)
            {
                breadCrumbPath.Insert(0, currentItem);
                currentItem = currentItem.Owner as RadMenuItem;
            }
            BreadCrumbSiteMap.DataSource = breadCrumbPath;
            BreadCrumbSiteMap.DataBind();
        }
    }
}

<telerik:RadMenu RenderMode="Lightweight" runat="server" ID="RadMenu1" Skin="Glow">
            <DefaultGroupSettings Height="270px" />
            <Items>
                <telerik:RadMenuItem Text="Asia">
                    <ContentTemplate>
                        <telerik:RadSiteMap runat="server" ID="RadSiteMap1" Skin="Glow" CssClass="itemContent asia">
                            <DefaultLevelSettings ListLayout-RepeatColumns="3"></DefaultLevelSettings>
                            <Nodes>
                                <telerik:RadSiteMapNode Text="Afghanistan"></telerik:RadSiteMapNode>
                                <telerik:RadSiteMapNode Text="Bangladesh"></telerik:RadSiteMapNode>
                                <telerik:RadSiteMapNode Text="Cambodia"></telerik:RadSiteMapNode>
                                <telerik:RadSiteMapNode Text="China"></telerik:RadSiteMapNode>
                                <telerik:RadSiteMapNode Text="India"></telerik:RadSiteMapNode>
                                <telerik:RadSiteMapNode Text="Indonesia"></telerik:RadSiteMapNode>
                                <telerik:RadSiteMapNode Text="Iran"></telerik:RadSiteMapNode>
                                <telerik:RadSiteMapNode Text="Iraq"></telerik:RadSiteMapNode>
                                <telerik:RadSiteMapNode Text="Japan"></telerik:RadSiteMapNode>
                                <telerik:RadSiteMapNode Text="Maldives"></telerik:RadSiteMapNode>
                                <telerik:RadSiteMapNode Text="Philippines"></telerik:RadSiteMapNode>
                                <telerik:RadSiteMapNode Text="Saudi Arabia"></telerik:RadSiteMapNode>
                                <telerik:RadSiteMapNode Text="Thailand"></telerik:RadSiteMapNode>
                                <telerik:RadSiteMapNode Text="Yemen"></telerik:RadSiteMapNode>
                                <telerik:RadSiteMapNode Text="United Arab Emirates"></telerik:RadSiteMapNode>
  
                            </Nodes>
                        </telerik:RadSiteMap>
                    </ContentTemplate>
                </telerik:RadMenuItem>
     </Items>
</telerik:RadMenu>

Veselin Tsvetanov
Telerik team
 answered on 07 Mar 2016
5 answers
173 views
For the other controls you can click on them and a property window will popup to give them a name, but not for the text box?..How come? How do we name them?
Vessy
Telerik team
 answered on 07 Mar 2016
3 answers
108 views

Hello,

I have a RadGrid with MasterView, a child GridTableView, and then a further child GridTableView. On a Button firing in the child view I do this:

    protected void CIncludeConnection_Click(object sender, EventArgs e)
    {
        IncludeConnection_Click(sender, e);
        RebindChildren();
    }

    protected void CExcludeConnection_Click(object sender, EventArgs e)
    {
        ExcludeConnection_Click(sender, e);
        RebindChildren();
    }

 protected void RebindChildren()
    {
        GridTableView tableView = (GridTableView)ConnectionsGrid.MasterTableView.Items[0].ChildItem.NestedTableViews[0]; // accessing child gridview of first parentitem

        tableView.Rebind(); 
    }

which works fine, the grid view updates visually and no collapsing occurs.

The problem is with the Grandchild view where I do this:

    protected void GCIncludeConnection_Click(object sender, EventArgs e)
    {
        IncludeConnection_Click(sender, e);
        RebindGrandChildren();
    }

    protected void GCExcludeConnection_Click(object sender, EventArgs e)
    {
        ExcludeConnection_Click(sender, e);
        RebindGrandChildren();
    }

    protected void RebindGrandChildren()
    {
        GridTableView tableView = (GridTableView)ConnectionsGrid.MasterTableView.Items[0].ChildItem.NestedTableViews[0]; // accessing child gridview of first parentitem

        GridTableView nestedView = (GridTableView)tableView.Items[0].ChildItem.NestedTableViews[0]; // Accessing grandchild gridview

        nestedView.Rebind();
    }

Which works correctly but does not update visually at all.

Is there a generic method of addressing any grid at any depth and Rebinding without collapsing (a generic Masterview rebind collapses) from a button event given the sender object and the EventArgs?

protected void AnyConnectionOperation_Click(object sender, EventArgs e) ?

Thanks,

 

 

 

 

Viktor Tachev
Telerik team
 answered on 07 Mar 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?