Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
92 views
Hi all,

I'm using below control in the application.
Telerik controls version : 2008.2.1001.35 (for Telerik.Web.UI.dll)

I'm trying to open an image in image map editor using the telerik controls. I see below error on the screen
-----------------------------------------------------------------------------------------------------------------------------------------------------

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Timestamp: Tue, 22 Jun 2010 15:26:48 UTC

Message: Invalid argument.
Line: 364
Char: 1
Code: 0
URI: http://deployweb27-vmh/virtualdir/ScriptResource.axd?d=WihqqjEecAvyXn5-_QocbnEzf1z_E-GzP_v5dtQ6cZfRAzpvwqzpyxaV0rtWxIicBR08FUEttZiRB1oCoINiECSdH-8vyPnUoXCPt2k6RkU1&t=ffffffffdfc5bbf0

-------------------------------------------------------------------------------------------------------------- ------------------------------

Investigation:
Based on some calculation, I see some negative value is assigning to a variable _45 in scriptResource.axd in the function wrapwithRoundCorners(). Just for testing purpose, I've modified to a positive value in debug window. I didn't see any issue then. If I left this with -ve value, it is throwing above said error.

Question:
I would like to know whether there are any issues with the combination of IE8 and windows7. Any inputs are appreciable to further proceed on this.


Thanks,
Mallesh.

Rumen
Telerik team
 answered on 23 Jun 2010
1 answer
167 views
Hi Telerik,

We are wanting to modify some built-in dialogs for RADEditor. The version of RADeditor that we have installed is 5.7.3.0 and we have MOSS 2007. 
In the instructions it says to copy the EditorDialogs folder to the \wpresources\RadEditorSharePoint\5.x.x.0__1f131a624888eeed\Resources\ directory.

My question is where do I copy the EditorDialogs folder from initially? I can't seem to locate it.

Thanks,
Claudz
Rumen
Telerik team
 answered on 23 Jun 2010
6 answers
272 views
Hi,

I have created application where tabs are generating dynamically.  When I am trying to delete those tabs with cross bar I am getting error like undefined tabs. Can any one solve this issue. I am getting error in javascript code. I can delete tabs with button click event. But I am unable to delete the code with crossbar. The Issue is in
        <%# DataBinder.Eval(Container, "Text") %> 

the text value is not binding there. How to bind the dynamically generating text value.
 protected void Page_Load(object sender, EventArgs e) 
    { 
        if (!Page.IsPostBack) 
        { 
            RadTab tab = new RadTab(); 
            tab.Text = string.Format("New Page {0}", 1); 
            RadTabStrip1.Tabs.Add(tab); 
 
            RadPageView pageView = new RadPageView(); 
            pageView.Height = new Unit("50px"); 
            pageView.Width = new Unit("1300px"); 
            RadMultiPage1.PageViews.Add(pageView); 
 
            BuildPageViewContents(pageView, RadTabStrip1.Tabs.Count); 
            RadTabStrip1.SelectedIndex = 0
 
        } 
    } 
 
    private void BuildPageViewContents(RadPageView pageView, int index) 
    { 
        pageView.ID = "Page " + index.ToString(); 
        pageView.Controls.Add(new LiteralControl(" <B>New page</B>" + (index).ToString())); 
    } 
 
    protected void Button1_Click(object sender, EventArgs e) 
    { 
 
        RadTab tab = new RadTab(); 
        tab.Text = string.Format("New Page {0}", RadTabStrip1.Tabs.Count + 1); 
        RadTabStrip1.ID = "Tab " + RadTabStrip1.Tabs.Count;  
        RadTabStrip1.Tabs.Add(tab); 
 
        RadPageView pageView = new RadPageView(); 
        pageView.ID = "Page " + pageView.Index.ToString(); 
        RadMultiPage1.ID = "page" + pageView.Index.ToString(); 
        RadMultiPage1.PageViews.Add(pageView); 
 
        BuildPageViewContents(pageView, RadTabStrip1.Tabs.Count); 
        RadTabStrip1RadTabStrip1.SelectedIndex = RadTabStrip1.SelectedIndex + 1; 
        RadMultiPage1.SelectedIndex = RadTabStrip1.SelectedIndex; 
 
    } 
 
 
.aspx 
 
 
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadTab.aspx.cs" Inherits="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
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" /> 
</head> 
<body> 
    <form id="form1" runat="server"
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
        <Scripts> 
            <%--Needed for JavaScript IntelliSense in VS2010--%> 
            <%--For VS2008 replace RadScriptManager with ScriptManager--%> 
            <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"
            /* <![CDATA[ */
            function deleteTab(tabText)
            {
                var tabStrip = $find("<%= RadTabStrip1.ClientID %>");
                var multiPage = $find("<%= RadMultiPage1.ClientID %>");
                var tab = tabStrip.findTabByText(tab.toString());
                
//                if (tab != null) 
//                  {
//                    alert(tab.toString());
//                  }
//                else alert(" TAB IS NULL ");
                
                var pageView = tab.get_pageView();
                
                var tabToSelect = tab.get_nextTab();
                if (!tabToSelect)
                    tabToSelect = tab.get_previousTab();
                    
                tabStrip.get_tabs().remove(tab);
                multiPage.get_pageViews().remove(pageView);
                
                if (tabToSelect)
                    tabToSelect.set_selected(true);
            }
            /* ]]> */ 
    </script> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
    </telerik:RadAjaxManager> 
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Height="50px" SelectedIndex="0" Width="1300px" MultiPageID="RadMultiPage1"
      <TabTemplate> 
        <%# DataBinder.Eval(Container, "Text") %> 
        <img style="margin-left: 50px" src="delete.gif" alt="delete" onclick="deleteTab('<%# DataBinder.Eval(Container, "Text") %>')" /> 
      </TabTemplate> 
    </telerik:RadTabStrip> 
    <div> 
         <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Add Tab" /> 
         <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Delete Tab" /> 
    </div> 
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"  
                          Height="320px" Width="700px" BorderStyle="Solid" OnPageViewItemCreated="RadMultiPage1_PageViewItemCreated1"
    </telerik:RadMultiPage> 
    </form> 
</body> 
</html> 
smith spd
Top achievements
Rank 1
 answered on 22 Jun 2010
1 answer
91 views

Hi All,
           i am using RadTabstrip in MOSS environment

<PublishingNavigation:PortalSiteMapDataSource ID="SiteMapDS" Runat="server" 
       SiteMapProvider="CurrentNavSiteMapProvider" EnableViewState="true" StartFromCurrentNode="true"   
       StartingNodeOffset="0" ShowStartingNode="false"/>  
     <telerik:RadTabStrip runat="server" ID="RadTabStrip1" skin="Suntab" EnableEmbeddedSkins="false" DataSourceID="SiteMapDS"/> 

How ever iam getting an error in Javascript (IE and Chrome ) in ScriptResource.axd

,set_element:function(_c2){  
this._element=_c2;  
thisthis._element._item=this;  
this._element._itemTypeName=Object.getTypeName(this);  

this._element is null or not an object. when i remove the RadTabstrip this error does not happen

Can somebody let me know what could be the reason

Thanks in Advance
Thomson
Dimitar Milushev
Telerik team
 answered on 22 Jun 2010
1 answer
56 views

we want insert appointment , and when we click on the insert  the dialog like attach here opened before the appointment details is open.

We want to cancel this dialog and pass to appointment details  Immediately.

Can we do that?

Thank you!

Veronica
Telerik team
 answered on 22 Jun 2010
1 answer
81 views
Hi,
I am trying to open an aspx page from a radwindow by setting its navigateurl property. I have a button on the aspx page which does a postback when I click it the first time, however it does not do a post back anytime after that. Is there any setting that I need to do for this or am i missing something here?


Petio Petkov
Telerik team
 answered on 22 Jun 2010
5 answers
198 views
Hi guys !

I am a bit lost with the use of RadAjaxManager, and I don't know how to regulate the error : "Message d'exception : Only one instance of a RadAjaxManager can be added to the page!"

Indeed I developped a page.aspx in which I use a component.ascx

This component contains a tree view with a RadAjaxManager.

But in page.aspx, I am using a RadComboBox, and I would like to do a filter as this example : http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/filteringcombo/defaultcs.aspx

That is why I need to add to my page :
telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadComboBox2"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadComboBox1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 

But if I do that, as I have already a RadAjaxManager in component.ascx, I have the error : " Message d'exception : Only one instance of a RadAjaxManager can be added to the page!"

So I know why I have this error but I really can't find a solution to make it working...

Can you please help me ?

Thanks


Seth
Top achievements
Rank 1
 answered on 22 Jun 2010
2 answers
95 views
Version: 2009 Q3
Internet Explorer 8
Visual Studio 2005


The tab strip, if set to use the Forest skin has style issue for Chinese Characters.  Similar issues are found if I have both Chinese and English characters.  May I know how to fix it?


Thanks.
Alfred
Top achievements
Rank 1
 answered on 22 Jun 2010
2 answers
117 views
Hi, I'am constructing filter expression directly, not using FilterContainerID. I have RadTreeView, which must be ajax refreshed, when user click apply button in filter. I use next code to support ajax refresh filter, when user edit filter expression:
<rad:RadAjaxManagerProxy ID="AjaxManagerProxy" runat="server">  
    <AjaxSettings> 
        <rad:AjaxSetting AjaxControlID="Filter">  
            <UpdatedControls> 
                <rad:AjaxUpdatedControl ControlID="Filter" LoadingPanelID="LoadingPanel"/>  
            </UpdatedControls> 
       </rad:AjaxSetting> 
    </AjaxSettings> 
</rad:RadAjaxManagerProxy> 
Next code refresh RadTreeView on each user filter edit operation, this wrong. I need refresh only RadTreeView(not full page with other controls) on apply button click:
<rad:RadAjaxManagerProxy ID="AjaxManagerProxy" runat="server">  
    <AjaxSettings> 
        <rad:AjaxSetting AjaxControlID="Filter">  
            <UpdatedControls> 
                <rad:AjaxUpdatedControl ControlID="Filter" LoadingPanelID="LoadingPanel"/>  
                <rad:AjaxUpdatedControl ControlID="TreeView" LoadingPanelID="LoadingPanel"/>  
            </UpdatedControls> 
       </rad:AjaxSetting> 
    </AjaxSettings> 
</rad:RadAjaxManagerProxy> 
Next code, throws
"Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00$ctl00$MainMasterContent$MainContent$TreeViewPanel'. If it is being updated dynamically then it must be inside another UpdatePanel."
when user click apply button:
protected void Page_Load(object sender, EventArgs e)     
{     
    var applyFilterButton = Filter.Controls.OfType<Button>().First();     
    
    var ajaxSetting = new AjaxSetting(applyFilterButton.UniqueID);     
    ajaxSetting.UpdatedControls.Add(new AjaxUpdatedControl(TreeView.ID, LoadingPanel.ID));     
    AjaxManagerProxy.AjaxSettings.Add(ajaxSetting);     
}   

Please, help solve this problem.
Jonny
Top achievements
Rank 1
 answered on 22 Jun 2010
3 answers
127 views
In my edit template, i am trying to bind the items to the Textbox for editing, this does not work and I am left with a blank textbox.  I am data binding on a datatable.  the item template shows the data correctly, I then have to hit the edit button twice(dunno why) then i see the 3 empty text boxes.  Any help is appreciated.

//Code Behind file
 dt = new DataTable();
            dt.Columns.Add("SummaryID");
            dt.Columns.Add("BegTimeStamp");
            dt.Columns.Add("EndTimeStamp");
            DataRow dr = dt.NewRow();
            dr["SummaryID"] = "Rule 1";
            dr["BegTimeStamp"] = "5/21/2010 6:00:00 AM";
            dr["EndTimeStamp"] = "5/24/2010 6:00:00 PM";
            dt.Rows.Add(dr);

  protected void ruleLV_NeedDataSource(object sender, RadListViewNeedDataSourceEventArgs e)
    {
        ruleLV.DataSource = dt;
    }
//end code behind

<telerik:RadListView ID="ruleLV" runat="server"
                            ItemPlaceholderID="RulePlaceHolder"
                            onneeddatasource="ruleLV_NeedDataSource" Skin="Windows7"
                             onselectedindexchanged="ruleLV_SelectedIndexChanged"
                             onitemcommand="ruleLV_ItemCommand" DataKeyNames="SummaryID"
                            >
                         <LayoutTemplate>
                          <table runat="server" >
                           <tr>
                            <th id="SummaryIdHdr" runat="server" width="150px">Rule ID</th>
                            <th id="BegTimeStampHdr" runat="server" width="200px">Start Date/Time</th>
                            <th id="EndTimeStampHdr" runat="server" width="200px">End Date/Time</th>
                           </tr>
                           
                           <tr id="RulePlaceHolder" runat="server" ></tr>
                          
                          </table>
                           <fieldset style="text-align: center; background-color: white;">
                          
                        </fieldset>
                         </LayoutTemplate>
                            <EditItemTemplate>
                             
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("SummaryID") %>'></asp:TextBox>
                                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("BegTimeStamp") %>'></asp:TextBox>
                                <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("EndTimeStamp") %>'></asp:TextBox>
                            </EditItemTemplate>
                         <ItemTemplate>
                   
                         <tr ID="rules" bgColor="White" runat="server">
                            <td> <%#Eval("SummaryID") %></td>
                            <td> <%#Eval("BegTimeStamp") %></td>
                            <td> <%#Eval("EndTimeStamp") %></td>
                            <td><asp:Button Id="EditButton" Text="Edit" runat="server" CommandName="Edit" /> </td>
                          </tr >
                
                         </ItemTemplate>
                      
                       
                        </telerik:RadListView>
Jeremy
Top achievements
Rank 1
 answered on 22 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?