Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
149 views
I have looked through most of these posts and still cannot get the text at the root level to align center or even bottom.  I am sure there is a simple solution to this but with so many configuration settings its tough tell.

Here is what I thought would have changed the alignment:

.RadMenu_dbsNav .rmRootGroup
{
border: 1px solid #6788BE;
background-color: #E8E8E8;
height:50px;
width: 700px;
vertical-align:text-bottom;
}

Thanks in advance,

Shanti

Yana
Telerik team
 answered on 03 May 2010
3 answers
102 views
Hi

I have a design issue in tabstrip controls. Child tabs are not visible. Sub tabs are squeezed (vertically).

Please find the attached picture.

Thanks
Yana
Telerik team
 answered on 03 May 2010
1 answer
87 views
Hi,

When i try to add schedular to my site. Its raise error. Other controls working fine. Why that?

Following error has raising

Error Creating Control - RadScheduler1Unable to cast object of type 'Telerik.Web.UI.RadScheduler' to type 'Telerik.Web.UI.RadScheduler'.

krds
lakmal

Veronica
Telerik team
 answered on 03 May 2010
1 answer
83 views
In RadGrid , you have provided one sample - Client edit with Batch Server Update. In this template columns having a textbox and a label are added. Labels are visible on first load and on double click of the cell, label hides and textbox becomes visible.
I want this functionality with keyboard. The problem I am facing is - these cells never get focus beause they neither have link nor in edit mode. Also I am not able to perform grouping these template columns. Error I amgetting is - Expression can not be null or empty.

How can I do that?
Thanks,
Sushma
Tsvetoslav
Telerik team
 answered on 03 May 2010
1 answer
134 views
Hi,

I have the following Combobox and TreeView on a page.
            <telerik:RadComboBox ID="ContextCombo" DataTextField="Name" DataValueField="Id" EmptyMessage="Select Context" 
                        AutoPostBack="True" runat="server" Height="200px" Skin="Office2007" Width="250px"  
                        onselectedindexchanged="ContextCombo_SelectedIndexChanged">  
            </telerik:RadComboBox> 
 


                            <telerik:RadTreeView ID="QuestionsAndAnswersTree" runat="server"  
                            OnClientMouseOver="ClientMouseOver"  OnClientNodeDropping="onNodeDropping" 
                            <contextmenus> 
                                <telerik:RadTreeViewContextMenu ID="ContextMenuLHRootCreateQuestion" runat="server"
                                    <Items> 
                                        <telerik:RadMenuItem  
                                            ImageUrl="~/App_Themes/MasterPlan/TreeImages/question_add.png"  
                                            Text="Create Question" Value="CreateQuestion" /> 
                                     </Items> 
                                     <collapseanimation type="None" /> 
                                     <collapseanimation  
                                        type="None" /> 
                                 </telerik:RadTreeViewContextMenu> 
                         </contextmenus> 
                          
                      </telerik:RadTreeView> 
 

The client handlers are defined as
        <script type="text/javascript"
 
            function onNodeDropping(sender, args) { 
                // prompt for drag action / display dialog  
                var dest = args.get_destNode(); 
                //window.radopen("DragDropPromptDialog.aspx?EventArg=" + args, "DragPromptDialog"); 
                //args.set_cancel(true); 
            } 
            function ClientMouseOver(sender, args) { 
                return
            }  
    </script> 

When I open this page in Firefox 3.6.3 the client events do not fire.
The error console of Firefox shows me this error - ClientMouseOver is not defined + a link pointing to the error in the generated file.Clicking on the link highlights the following code in the file
<div id="ctl00_MainContent_ContextCombo" class="RadComboBox RadComboBox_Office2007" style="width:250px;display:-moz-inline-stack;display:inline-block;zoom:1;*display:inline;"

Not sure if the error has something to do with the display attribute(-moz-inline=stack)
The page works fire on IE 8.
Please help!!!!

Veronica
Telerik team
 answered on 03 May 2010
2 answers
389 views
I have a site that uses telerik controls, usually i use my owned server for deployment(a company server), everything works fine there. When i make deployment on a shared hosting, however, it gives me the error. I tried to pinpoint the error source, so i made a new website using VS2008, and simply added one radcalendar. i have all needed assemblies in bin folder.
The strange is that the site when i first uploaded to arvixe, was working fine, it was compiled and containing controls from telerik and other third party components.
I tried the website on 2 different hosting, arvixe.com and webhost4life.com, the result. is the same.
Also i noticed that in both hosting, i can't upload a precompiled site (either updatable or non updatable). It makes another error: "default.aspx" is not not precompiled or something...
so i tried to upload the source code. If it is a simple asp.net site without any telerik, then it works, otherwise it gives me the below error.
what could be wrong ?
Anyway, i started to believe that the shared hosting(in general since it is 2 different hosting) doesn't allow my app to read assemblies located inside my website folder (bin folder), so in case of precompiled dlls from website, it is not reading them. Also in case of telerik assembly (Telerik.Web.UI) it is not able read the assembly for maybe the same security restrictions.

Of course the hosting said that they have no problem, and that i should check what is the solution, i already tried all solutions suggested on this forum, nothing worked, So far i tried this:
1-recheck assembly version
2-reupload the telerik assembly to make sure it is not corrupted
3-isolate the problem by including just one calendar on one page, still same problem

Also it is also important to mention that i got a problem before this, i tried to use Cssfriendly.dll for some menu (before i discover how awesome is telerik :D) and it also made problem.

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The module was expected to contain an assembly manifest.

Source Error:

Line 4:      Namespace="System.Web.UI" TagPrefix="asp" %>
Line 5:  
Line 6:  <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
Line 7:  
Line 8:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Source File: /default.aspx    Line: 6

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.UI' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


NADAV YEHESKEL
Top achievements
Rank 2
 answered on 03 May 2010
1 answer
133 views
I have got a button on the grid that when clicked sets a viewstate item to a file.
Now when i try use the response it gives me a error.
Now i have seen you can do it by
RadAjaxPanel1.ResponseScripts.Add(String.Format(@"window.location.href = ""{0}"";", http://yoursite.com/Your_File));

But how would one use this to do

response.binarywrite(byte[])

Please any help will be much appreciated. If this is in the incorrect section plese relocate.
Thanks
Veli
Telerik team
 answered on 03 May 2010
1 answer
624 views
Hi,

I have a webpage with the following controls and javascript function

 function closeWin(args)
{
  radalert("Hello world", "350", "150", "alert");
}



<telerik:RadAjaxPanel ID="UpdatePanel1" runat="server">

<asp:LinkButton ID="btnOK" runat="server" OnClientClick="javascript:closeWin(0);"><span>OK</span></asp:LinkButton>
<asp:LinkButton ID="btnCancel" runat="server" href="javascript:closeWin(-1);" ><span>Cancel</span></asp:LinkButton>

</telerik:RadAjaxPanel>

given the above code, i want to display alert using radalert, how to do it, please note i dont want to use server side code for registering the javascript function

Thanks,


Shinu
Top achievements
Rank 2
 answered on 03 May 2010
1 answer
69 views
I've implemented the Load On Demand for the RadTabStrip & RadMultiPage and followed the sample show in http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/loadondemand/defaultcs.aspx . My Second and Third tabs load user controls in them.

This working fine with the Q3 2009 Trial Version, but when I purchased the Q1 2010 Developer Version, this stopped working and I receive and error "Two components with the same id 'mpageMain' can't be added to the application".

Here is my ASPX
<%@ Page   
    Language="C#"   
    AutoEventWireup="true"   
    CodeBehind="OnDemandLoad.aspx.cs"   
    Inherits="Telerik.OnDemandLoad" %> 
 
<!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> 
    <title>On Demand Load</title> 
</head> 
<body> 
    <form id="frmOnDemandLoad" runat="server">  
    <asp:ScriptManager ID="smgrMain" runat="server" /> 
      
    <telerik:RadTabStrip  
        ID="tsMain" 
        runat="server" 
        Align="Left" 
        SelectedIndex="0" 
        MultiPageID="mpageMain" 
        OnClientTabSelecting="tsMain_ClientTabSelecting" 
        OnTabClick="tsMain_TabClick" > 
        <Tabs> 
            <telerik:RadTab Text="Alpha" PageViewID="pvAlpha" /> 
            <telerik:RadTab Text="Beta" PageViewID="Beta"/>  
            <telerik:RadTab Text="Gama" PageViewID="Gama"/>  
        </Tabs> 
    </telerik:RadTabStrip> 
      
    <telerik:RadMultiPage   
        ID="mpageMain"   
        runat="server"   
        SelectedIndex="0" 
        OnPageViewCreated="mpageMain_PageViewCreated" 
        ScrollBars="None" 
        BorderWidth="1px">  
        <telerik:RadPageView ID="pvAlpha" runat="server">Alpha</telerik:RadPageView> 
    </telerik:RadMultiPage> 
      
    <telerik:RadAjaxManager ID="amgrMain" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="tsMain">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="tsMain" /> 
                    <telerik:AjaxUpdatedControl ControlID="mpageMain" LoadingPanelID="alpDefault" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="mpageMain">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="mpageMain" LoadingPanelID="alpDefault" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings>   
    </telerik:RadAjaxManager> 
      
    <telerik:RadAjaxLoadingPanel ID="alpDefault" runat="server" /> 
    <telerik:RadScriptBlock ID="rcbMain" runat="server">  
      
        <script language="javascript" type="text/javascript">  
            function tsMain_ClientTabSelecting(sender, args)    
            {    
                if (args.get_tab().get_pageView())    
                {    
                    if(args.get_tab().get_pageView().get_id())    
                    {    
                        args.get_tab().set_postBack(false);    
                    }    
                }    
            }    
        </script> 
    </telerik:RadScriptBlock> 
    </form> 
</body> 
</html> 
 

And my code behind
        private void AddPageView(string pageViewID)  
        {  
            RadPageView pageView = new RadPageView();  
            pageView.ID = pageViewID;  
            mpageMain.PageViews.Add(pageView);  
        }  
 
        protected void tsMain_TabClick(object sender, RadTabStripEventArgs e)  
        {  
            AddPageView(e.Tab.Text);  
            if (e.Tab.PageView == null)  
            {  
                e.Tab.PageViewID = e.Tab.Text;  
            }  
            e.Tab.PageView.Height = Unit.Pixel(e.Tab.Index * 100); 
            e.Tab.PageView.Selected = true;  
        }  
 
        protected void mpageMain_PageViewCreated(object sender, RadMultiPageEventArgs e)  
        {  
            // Load the User Control  
 
            //string strUserControl = "~/UserControls/" + e.PageView.ID + ".ascx";  
            //Control objControl = Page.LoadControl(strUserControl);  
            //objControl.ID = e.PageView.ID + "_userControl";  
            //e.PageView.Controls.Add(objControl);  
        } 

I can no longer use Q3 2009 as it has the Grid's OnCommand Client Event problem.

Is there anything different to be done for the Q1 2010 version?
Yana
Telerik team
 answered on 03 May 2010
1 answer
232 views
We have a control having a Radgrid. Dataset is provided to this grid from page. In some scenario, we are not able to provide dataset to the grid. In that case we are getting follwoing error:
this.ColGroup.Cols is null or not an object.
This error also occurs when there are no columns in the datasource.

In case when Datasource is null we have set it to:

wgEntityList.DataSource =

new Object[0];

 


But still we are facing this issue.

Also we are not able to place this control multiple times on our page because one page can not have multiple RadAjaxManagers.
Please help in this regard.

Thanks,
Sushma

Nikolay Rusev
Telerik team
 answered on 03 May 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?