Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
142 views
how can i put html content into window without using property NavigateUrl? simply put some text or table without using one more page?

 

Georgi Tunev
Telerik team
 answered on 23 Dec 2008
1 answer
136 views
i have two combobox one to display Text and other to display Value

i need to reflect selected index change on one of them to other one
so i create a user control with tow combo box
and the put javascript function to maintain change

OnClientSelectedIndexChanging



function

 

OnClientSelectedIndexChanging(sender, eventArgs)

 

{

var

 

Combo1Item = eventArgs.get_item();

 

var

 

Combo1Value = Combo1Item.get_value();

 

var

 

Combo2 = $find("<%= RadComboBoxDescription.ClientID %>");

 

var

 

Combo2Value = Combo2.findItemByValue(Combo1Value);

 

if

 

(Combo2Value)

 

{

Combo2Value.select();

}

}


for each combo box
But when i add the function to both of them
i hade Stack overflow at line 62


Please if there is any example about same idea tell me
Regards,
Shinu
Top achievements
Rank 2
 answered on 23 Dec 2008
11 answers
502 views
Hello

not sure if this has been already solved

I am using Radtree and all the nodes are created dynamically from the DB


Some of the nodes have Child nodes some don't

how is that i can find out whether it is a child node or not

How can i say that's the child node was clicked

So please suggest

Thanks
Kavya

Shinu
Top achievements
Rank 2
 answered on 23 Dec 2008
2 answers
913 views
hello Everybody ,
i have a question and i need reply ASAP ...
i have radgrid with GridButtonColumn

 <telerik:GridButtonColumn UniqueName="ActivateColumn" CommandName="Activation" Text="DeActivate" />

and there is ItemDataBound Event handller which i want to get the GridButtonColumn in this handler
what can i do ???

  protected void Radgrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
            ObjectType currentEntity = e.Item.DataItem as ObjectType ;
            if (ObjectType != null)
            {          
               // i want to get  GridButtonColumn  here to change it's text and command name , .....
                GridButtonColumn  x = e.Item.FindControl("ActivateColumn");
                x.Text = "xxxxx" ;
                x.CommandName = "XXX";
            }
    }
Shinu
Top achievements
Rank 2
 answered on 23 Dec 2008
1 answer
144 views
ItemDataBound I create a button if the status is pending and past 10 days...I assign the click event handler to it, but it doesn't seem to fire

                              
                                    //If Date.Now is at least 10 days past the notification date
                                    if (DateTime.Now > DateTime.Parse(item.Cells[8].Text).AddDays(10))
                                    {
                                        TableCell cell = new TableCell();
                                        Button notifyButton = new Button();
                                        notifyButton.Text = "Re-send Notificaiton";
                                        notifyButton.Click += new EventHandler(notifyButton_Click);
                                        cell.Controls.Add(notifyButton);
                                        item.Cells.Add(cell);
                                    }

Any idea what should I be doing to get it to fire?
                               
Shinu
Top achievements
Rank 2
 answered on 23 Dec 2008
10 answers
275 views
I've installed the Lite RadEditor for MOSS solution on my MOSS Farm. I've made no modifications to the config files-- this is a straight OOTB installation.
When i try to use the image manager in either a list item or a Rad Editor Web Part, I'm getting an error page in the Image Manager iframe:

"/_catalogs/" contains reserved name. Please try another one."

I've found that if I add items to the Image Path in the config file it works:

    <property name="ImagesPaths">
        <item>SiteCollectionImages</item>
    </property>

But that leaves users unable to browse the libraries on the current Web for images, which makes the image viewer pretty useless in our environment (we have many Webs in the Site Collection that don't have permissions to any single library such as the SiteCollectionImages library).

Our environment runs MOSS 2007 SP1,  has a single Farm with one Site Collection that uses the Collaboration Portal template, and a site Collection for each user's My Site. The mains site collection has about fifty subsites that mostly use the publishing site template.

We have several SharePoint test boxes with the same environments set up, and we're getting this error on each one. I'm finding that on a fresh SharePoint install of MOSS on a virtual server, this problem is not present.

Any help is greatly appreciated.

Here is the full error info:

Server Error in '/' Application.

"/_catalogs/" contains reserved name. Please try another one.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Microsoft.SharePoint.SPException: "/_catalogs/" contains reserved name. Please try another one.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SPException: "/_catalogs/" contains reserved name. Please try another one.]
Microsoft.SharePoint.SPGlobal.ValidateWebName(String strWebName, Boolean bAcceptLeadingTrailingSlash) +362
Microsoft.SharePoint.SPSite.OpenWeb(String strUrl, Boolean requireExactUrl) +44
Microsoft.SharePoint.SPSite.OpenWeb(String strUrl) +32
Telerik.SharePoint.Editor.SPContentProvider.GetSPFolderFromPath(String path) +215
Telerik.SharePoint.Editor.SPContentProvider.ResolveDirectory(String path) +11
Telerik.SharePoint.Editor.SPContentProvider.ResolveRootDirectoryAsTree(String path) +4
Telerik.WebControls.RadEditorUtils.FileBrowserContentProvider.ResolveViewPaths() +83
Telerik.WebControls.EditorControls.FileBrowser.SerializeViewPaths() +104
Telerik.WebControls.EditorControls.FileBrowser.OnPreRender(EventArgs e) +168
System.Web.UI.Control.PreRenderRecursiveInternal() +86
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
shilpa
Top achievements
Rank 1
 answered on 23 Dec 2008
2 answers
329 views
I getting this wierd error and really struggling with it. I was able to make a simpler project and reproduce the problem. Here is the problem:

I've a RadGrid (with ClientSelect Column and another column) within a RadAjaxPanel. I select a row and click on a link (outside the grid but within radajaxpanel) to open up a RadWindow to do something. First time i select a row and click on the link, it promptly shows up a radwindow. I close the radwindow and try the same process again, this time i get runtime error - Microsoft JScript runtime error: Object doesn't support this property or method.

The problem goes away if I remove RadAjaxPanel. I tried same thing w/ UpdatePanel. However its the same issue...
I'm using VS2008 w/ Telerik Q2 904.35 version.

Here is the Default.aspx code:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title></title>  
      
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True"></telerik:RadScriptManager> 
    <telerik:RadScriptBlock runat="server">  
    <script type="text/javascript">  
    function ShipOut() {  
            var grid = $find("<%= RadGrid1.ClientID %>").get_masterTableView().get_selectedItems();  
            if (grid == null || grid.length < 1)  
                return;  
            var docids = "";  
            var docids1 = "";  
            for (i = 0; i < grid.length; i++) {  
                var dataitem = grid[i];  
                docidsdocids = docids + dataitem.get_cell("DocID").innerText + ",";  //.getDataKeyValue("DocID").toString();  
            }  
            if (docids.length > 1)  
                docidsdocids1 = docids.substring(0, docids.length - 1);  
            var wnd = window.radopen("CreateManifest.aspx?DocID=" + docids1, "ShipOut");  
            wnd.setSize(600, 400);  
            wnd.set_modal(true);  
            wnd.set_title("ShipOut");  
            wnd.add_close(OnClientClose);  
            return false;  
        }  
        function OnClientClose(sender, eventArgs) {  
            var btn = document.getElementById('btnRebind').click();  
        }  
    </script> 
    </telerik:RadScriptBlock> 
      
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="WebBlue"></telerik:RadWindowManager> 
    <div> 
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" AutoPostBack="true" MultiPageID="RadMultiPage1">  
        <Tabs> 
            <telerik:RadTab Text="page1" runat="server" PageViewID="RadPageView1"></telerik:RadTab> 
            <telerik:RadTab Text="page2" runat="server" PageViewID="RadPageView2"></telerik:RadTab> 
        </Tabs> 
        </telerik:RadTabStrip> 
        <asp:UpdatePanel runat="server"><ContentTemplate> 
          
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">  
        <telerik:RadPageView ID="RadPageView1" runat="server">page 1</telerik:RadPageView> 
            <telerik:RadPageView ID="RadPageView2" runat="server">  
          
                <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None">  
                    <MasterTableView> 
                        <RowIndicatorColumn> 
                            <HeaderStyle Width="20px" /> 
                        </RowIndicatorColumn> 
                        <ExpandCollapseColumn> 
                            <HeaderStyle Width="20px" /> 
                        </ExpandCollapseColumn> 
                        <Columns> 
                         <telerik:GridClientSelectColumn UniqueName="testselect"></telerik:GridClientSelectColumn>                           
                        </Columns> 
                    </MasterTableView> 
                    <ClientSettings> 
                        <Selecting AllowRowSelect="True" /> 
                    </ClientSettings> 
                    <FilterMenu EnableTheming="True">  
                        <CollapseAnimation Duration="200" Type="OutQuint" /> 
                    </FilterMenu> 
                </telerik:RadGrid> 
                <href="#" onclick="return ShipOut();" id="lnkShipOutwards" runat="server"   
                            enableviewstate="True">CREATE MANIFEST</a> 
        </telerik:RadPageView> 
        </telerik:RadMultiPage> 
    <asp:Button ID="btnRebind" runat="server" Text="Button" /> 
    </ContentTemplate></asp:UpdatePanel> 
    </div>      
    </form> 
</body> 
</html> 
 

Here is Default.aspx.cs code -

using System;  
using System.Collections.Generic;  
using System.Linq;  
using System.Web;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
using System.Data;  
 
 
namespace WebApplication1  
{  
    public partial class _Default : System.Web.UI.Page  
    {  
        protected void Page_Load(object sender, EventArgs e)  
        {  
            if (!IsPostBack)  
            {  
                DataTable dT = new DataTable();  
                dT.Columns.Add("DocID");  
                DataRow row1 = dT.NewRow();  
                row1["DocID"] = 1;  
                dT.Rows.Add(row1);  
                row1 = dT.NewRow();  
                row1["DocID"] = 2;  
                dT.Rows.Add(row1);  
                row1 = dT.NewRow();  
                row1["DocID"] = 3;  
                dT.Rows.Add(row1);  
                row1 = dT.NewRow();  
                row1["DocID"] = 4;  
                dT.Rows.Add(row1);  
                row1 = dT.NewRow();  
                row1["DocID"] = 5;  
                dT.Rows.Add(row1);  
                dT.AcceptChanges();  
                RadGrid1.DataSource = dT;  
                RadGrid1.DataBind();  
            }  
 
        }          
    }  


CreateManifest.aspx code is just plain html.. w/ script manager... which is irrelevant.

PLEASE HELP!!
msingh
Top achievements
Rank 1
 answered on 23 Dec 2008
5 answers
233 views
I try to make Multiple ComboBoxes. When URL http://domen/MultipleComboBoxes.aspx that all works for me. And when at me URL http://domen/MultipleComboBoxes / that arises javascript an error: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame:: http://localhost:2437/WebResource.axd? d = _ xqoAC_y7luLaqnRFtp75Q2&t=633319519957187500:: WebForm_DoCallback:: line 85" data: no] http://localhost:2437/ScriptResource.axd? d=GiHDpx3Edvlp530KVXGWp5ALxOE0Ls5RydtpO73IdXUf62yfsN_0xRfWfirAYu0IMgaxSEVmE72x95NmRQhs1A2&t=633583814480000000 Line 655. How to get rid of an error?
Alex
Top achievements
Rank 1
 answered on 22 Dec 2008
2 answers
115 views
Just like http://www.ebay.com/ has a drop down with 3 columns when you click CATEGORIES, I would like to implement the same kind of thing on my own site.

Is there are way to do this with RadMenu ?

Thanks in advance!


Tim
Top achievements
Rank 2
 answered on 22 Dec 2008
1 answer
60 views
I keep getting a OutOfMemoryException when trying to install the latest RAD DNN module zip file. It seems to occur at different points but never makes it through all the way. Anyone else see this issue?



Digital Man
Top achievements
Rank 2
 answered on 22 Dec 2008
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?