Telerik Forums
UI for ASP.NET AJAX Forum
16 answers
351 views
Hello Telerik Team,


I am using Rad Editor version (2012.3.1308.35) and I am fetching Image view path and upload path with other virtual directory on Production  Server but Unable to get Image through Image Manager and most of the button and links are disable in Image Manager.

So Please let us know How we can fix this issue. I am pasting My HTML code here -

I have two site on Production Server Which is -


1- http://localhost/Admin 4.0/admin.aspx and html code of Rad Editor is following But I am giving path of other Virtual directory configured on same server Which is -
http://localhost/Belnet 4.0/LoginForm.aspx and Img Path is in http://localhost/Belnet 4.0/Img So I am writing path of Image view -~/Belnet4.0/Img and code is following please check-

  <telerik:RadEditor ID="RadEditor1" runat="server" ShowSubmitCancelButtons="false" OnClientLoad="OnClientLoad" OnClientSubmit="OnClientSelectionChange"
                    Width="835px" ToolsHeight="200px" ToolsWidth="835px"  ContentFilters="MakeUrlsAbsolute">
                <ImageManager  ViewPaths="~/Belnet4.0/Img" UploadPaths="~/Belnet4.0/Img" DeletePaths="~/Belnet4.0/Img" />
                   <FlashManager ViewPaths="/belnet4/CS" UploadPaths="/belnet4/CS" DeletePaths="/belnet4/CS" />
                   <TemplateManager ViewPaths="/belnet4/Pages" UploadPaths="/belnet4/Pages" DeletePaths="/belnet4/Pages" />
                   <DocumentManager ViewPaths="/belnet4/Docs" UploadPaths="/belnet4/Docs" DeletePaths="/belnet4/Docs" />
                   <SilverlightManager ViewPaths="/belnet4/JS" UploadPaths="/belnet4/JS" DeletePaths="/belnet4/JS" />
                 </telerik:RadEditor>



Please let me know If I need to write any thing else here .




Alok
Top achievements
Rank 1
 answered on 03 Jan 2014
1 answer
70 views
Hi,
        We are using radeditor in asp.net application.Can you provide code for changing the cursor style[i.e hand,] from hand to default  on Design,Html and Preview buttons when the editor is disabled.

I need this functionality using javascript and c#.

Please revert back with comments ASAP.

thanks
vinay
Dobromir
Telerik team
 answered on 03 Jan 2014
4 answers
473 views
Hi all,

In my application, I have rad grid. I want export it into excel. For this I am using oledb connection. The grid is exporting into the excel. Now the problem is the grid contains the footer row. The footer row is not exporting in excel. Anybody please help on this how to export the radgrid data into the excel with header and footer row. Thanks in advance.

Regards,
Akki
Princy
Top achievements
Rank 2
 answered on 03 Jan 2014
3 answers
113 views
Hi,

I have written the code for Hierarchical Grid as per the reply of support ticket id : 660933.Its working fine.

I need to recreate the structure for Hierarchical Grid every-time on button click.(because columns & rows & Childtables of grid will get changed on button click with respect to some settings as per our requirement).

If I refer 2013.2.717.35 telerik trial version dll in my code,
Scenario:
On InitLoad, the grid shows expand icon for child rows.When I click button, the expand icon disappears in the grid for child rows,once I have changed the pagesize of grid,the grid shows expand icon for child rows.

But if I refer 2012.3.1308.35 telerik trial version dll in the code,the above scenario works fine.

How to overcome the issue expand icon disappears in the grid for child rows on button click with  2013.2.717.35 telerik dll reference? Please provide me the solution as soon as possible. Thanks in advance.

Sample Code Snippet:

 protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            rdGrdCollapsibleGrid.Columns.Clear();
            rdGrdCollapsibleGrid.MasterTableView.DetailTables.Clear();    
            DataSet ds = getMockDataForCG();
            CreateHierarchicalGridStructure(rdGrdCollapsibleGrid, ds);
            rdGrdCollapsibleGrid.DataBind();        
        }   
    }

    protected void rdGrdCollapsibleGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
        if (!e.IsFromDetailTable)
        { 
            DataSet ds = getMockDataForCG();
            if (ds.Tables[ds.Tables.Count - 2] != null && ds.Tables[ds.Tables.Count - 2].Rows.Count > 0)
                rdGrdCollapsibleGrid.VirtualItemCount = Convert.ToInt32(ds.Tables[ds.Tables.Count - 2].Rows[0][ds.Tables[ds.Tables.Count - 2].Columns.Count - 1]);
            rdGrdCollapsibleGrid.DataSource = ds.Tables[0];
        }       
    }

  protected void rdGrdCollapsibleGrid_DetailTableDataBind(object sender, GridDetailTableDataBindEventArgs e)
    {      
          //Here code for binding data onto respective detail table of  grid
    }

    protected void btnRecreate_Click(object sender, EventArgs e)
    {
        rdGrdCollapsibleGrid.Columns.Clear();
        rdGrdCollapsibleGrid.MasterTableView.DetailTables.Clear();
        DataSet ds = getMockDataForCG();
       CreateHierarchicalGridStructure(rdGrdCollapsibleGrid, ds);
       rdGrdCollapsibleGrid.Rebind();
    }
Eyup
Telerik team
 answered on 03 Jan 2014
4 answers
137 views
Using a radskinmanager with showchooser set to True

Is there a way to limit the choices shown in the dropdown?

I would just like to show Metro Touch and Default

thanks!
Mike
Top achievements
Rank 1
 answered on 03 Jan 2014
1 answer
71 views
How do I determine if a radlistbox is empty using javascript?

Thanks
Thomas
Shinu
Top achievements
Rank 2
 answered on 03 Jan 2014
5 answers
283 views
Hi,
I am using rad tree view within asp.net page. In page i have set the MaintainScrollPositionOnPostback="true". But when i expand the tree, scroll position goes to expanded item. I want my page's scroll position to remain same. Let me know how can i fix this.

Thanks,
Shinu
Top achievements
Rank 2
 answered on 03 Jan 2014
5 answers
284 views
I have a RadGrid that exports to a PDF. In order for the export to work, I need to issue the args.set_enableAjax(false); in javascript for the postback to happen. The problem is, the Loading Panel isn't closing. I'm left with the spinning image and a disabled grid.

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        var radWindow1 = null;
        var radGrid1 = null;
         
        Sys.Application.add_load(documentReady);
        function documentReady() {
            radGrid1 = $find("<%= RadGrid1.ClientID %>");
            }
        function onRequestStart(sender, args) {
            if (args.get_eventTarget().indexOf("ExportToPdf") >= 0)
                args.set_enableAjax(false);          
        }
    </script>
</telerik:RadCodeBlock>

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="onRequestStart">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

Anyone know how to fix this?
Steve
Top achievements
Rank 1
 answered on 03 Jan 2014
8 answers
139 views
Greetings,

The RadGrid's GridTemplateColumn seems to break between .NET35 and .NET4+.  Running the simple code below works fine for .NET3.5 and breaks for .NET4+, see the attached .PNGs.      

 Any idea why?

Thank you,
Gary.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
 
<!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>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
        <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" AllowPaging="True"
 
            AllowSorting="True" AutoGenerateColumns="False" AllowFilteringByColumn="True"
 
            OnNeedDataSource="RadGrid1_NeedDataSource" >
 
            <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
 
            <MasterTableView DataKeyNames="ID">
 
                <Columns>
 
                    <telerik:GridBoundColumn DataField="ID" HeaderText="ID" UniqueName="ID" SortExpression="ID">
 
                    </telerik:GridBoundColumn>
 
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name" UniqueName="Name" SortExpression="Name">
 
                    </telerik:GridBoundColumn>
 
                    <telerik:GridTemplateColumn>
 
                        <ItemTemplate>
 
                           <asp:HyperLink ID="EditLink" runat="server" Text="Edit"></asp:HyperLink>
 
                        </ItemTemplate>
 
                    </telerik:GridTemplateColumn>
 
                </Columns>
 
            </MasterTableView>
 
        </telerik:RadGrid>
    </div>
    </form>
</body>
</html>

using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
using System.Data;
using System.Configuration;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
 
public partial class Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
 
    protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
        dynamic data = new[] {
 
                new { ID = 1, Name ="Name1"},
                new { ID = 2, Name = "Name2"},
                new { ID = 3, Name = "Name3"},
                new { ID = 4, Name = "Name4"},
                new { ID = 5, Name = "Name5"},
                new { ID = 6, Name ="Name6"},
                new { ID = 7, Name = "Name7"},
                new { ID = 8, Name = "Name8"},
                new { ID = 9, Name = "Name9"},
                new { ID = 10, Name = "Name10"},
                new { ID = 11, Name ="Name11"},
                new { ID = 12, Name = "Name12"},
                new { ID = 13, Name = "Name13"},
                new { ID = 14, Name = "Name14"},
                new { ID = 15, Name = "Name15"}
            };
 
        RadGrid1.DataSource = data;
    }
}

Gary
Top achievements
Rank 1
 answered on 03 Jan 2014
5 answers
93 views

I would like to display a grid like in this example: http://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/programmatic-hierarchy/defaultcs.aspx.  In my case, I want to load both detailtables at the same time, but hide the second detailtable until the user clicks the first item.  I do not need to get the data from the second detailtable again, I want it to be all there after the original binding of the grid.

Is this possible?

a.wilks
Top achievements
Rank 1
 answered on 02 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?