Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
132 views
Dear Telerik,

Would it be possible to show the weeknumber in the DateHeader of the TimeLineView??
Peter
Telerik team
 answered on 04 Nov 2009
1 answer
126 views

hi,

radeditor1.ConfigFile="~/RadControls/Editor/ConfigFile.xml"
how to give  Latest  Version (RadControls for ASP.NET AJAX Q2 2009 SP1 )  (.ConfigFile)?



Thanks and regards
Vivekanandan.R
Rumen
Telerik team
 answered on 04 Nov 2009
2 answers
148 views
I have found when a tabstrip is created in either an ascx or in the parent aspx page and placed in a table, the tabstrip has a shifting effect to the right. Both the text and tab will shift to the right. If the same is not in a table, everything works okay. 

 This is the code for the ascx:
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="radTabs.ascx.vb" Inherits="AjaxLoadingStatusPanel.radTabs" %> 
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" Align="Justify" 
    AutoPostBack="false" Orientation="HorizontalTop" Skin="Forest">  
    <Tabs> 
        <telerik:RadTab Text="ASCX_Page1" runat="server">  
        </telerik:RadTab> 
        <telerik:RadTab Text="ASCX_Page2" runat="server">  
        </telerik:RadTab> 
        <telerik:RadTab Text="ASCX_Page3" runat="server">  
        </telerik:RadTab> 
        <telerik:RadTab Text="ASCX_Page4" runat="server">  
        </telerik:RadTab> 
        <telerik:RadTab Text="ASCX_Page5" runat="server">  
        </telerik:RadTab> 
    </Tabs> 
</telerik:RadTabStrip> 
 This is the code for the aspx page:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="tabdemo.aspx.vb" Inherits="AjaxLoadingStatusPanel.tabdemo" %> 
 
<%@ Register TagPrefix="rad" TagName="radTabs" Src="~/radTabs.ascx" %> 
<!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="radAjaxScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <asp:Label ID="label0" runat="server">Do a refresh and watch the tabstrips that are in the tables. You should see the text shift to the right</asp:Label> 
    <br /><br /> 
    <asp:Label ID="label1" runat="server">This ASCX is in a table</asp:Label> 
    <table width="100%">  
        <tr> 
            <td> 
                <rad:radTabs ID="radTabs1" runat="server" /> 
            </td> 
        </tr> 
    </table> 
    <br /> 
    <asp:Label ID="label2" runat="server">This ASCX is in a div tag</asp:Label> 
    <div> 
        <rad:radTabs ID="radTabs2" runat="server" /> 
    </div> 
    <br /> 
    <asp:Label ID="label3" runat="server">This HTML is in a table</asp:Label> 
    <table width="100%">  
        <tr> 
            <td> 
                <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Align="Justify" 
                    AutoPostBack="false" Orientation="HorizontalTop" Skin="Forest">  
                    <Tabs> 
                        <telerik:RadTab Text="HTML_Page1" runat="server">  
                        </telerik:RadTab> 
                        <telerik:RadTab Text="HTML_Page2" runat="server">  
                        </telerik:RadTab> 
                        <telerik:RadTab Text="HTML_Page3" runat="server">  
                        </telerik:RadTab> 
                        <telerik:RadTab Text="HTML_Page4" runat="server">  
                        </telerik:RadTab> 
                        <telerik:RadTab Text="HTML_Page5" runat="server">  
                        </telerik:RadTab> 
                    </Tabs> 
                </telerik:RadTabStrip> 
            </td> 
        </tr> 
    </table> 
    <br /> 
    <asp:Label ID="label4" runat="server">This HTML is in a div tag</asp:Label> 
    <div> 
        <telerik:RadTabStrip ID="RadTabStrip2" runat="server" Align="Justify" 
            AutoPostBack="false" Orientation="HorizontalTop" Skin="Forest">  
            <Tabs> 
                <telerik:RadTab Text="HTML_Page1" runat="server">  
                </telerik:RadTab> 
                <telerik:RadTab Text="HTML_Page2" runat="server">  
                </telerik:RadTab> 
                <telerik:RadTab Text="HTML_Page3" runat="server">  
                </telerik:RadTab> 
                <telerik:RadTab Text="HTML_Page4" runat="server">  
                </telerik:RadTab> 
                <telerik:RadTab Text="HTML_Page5" runat="server">  
                </telerik:RadTab> 
            </Tabs> 
        </telerik:RadTabStrip> 
    </div> 
    </form> 
</body> 
</html> 
 
dhuss
Top achievements
Rank 1
 answered on 04 Nov 2009
1 answer
155 views

Hi all,

I made a Master/detail page with 2 Radgrids (Persons and their Cars). When I start the page everything is ok. I get Persons and the Cars of the first person. After selecting the second row in the person grid (the row is clientside selectable and there is a postback with AJAX), I expect the cars of the second person, but I receive an error:

An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll

It is impossible for me to debug this error.

ÃŒ am using ADO.NET entities. When a person is selected in the first grid, the id of the person is passed to the EntityDataSourceCar Datasource with a Control parameter in the Where parameters. The first time works because of the default values...

Has anybody a clue? Downhere is the code of the aspx. The aspx.cs is empty.

Thanks in advance,
Joost



<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %> 
 
<%@ Register Assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" 
    Namespace="System.Web.UI.WebControls" TagPrefix="asp" %> 
<!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> 
            <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" /> 
        </Scripts> 
    </telerik:RadScriptManager> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
     <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="rgPerson">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="rgPerson" /> 
                    <telerik:AjaxUpdatedControl ControlID="rgCars" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <div> 
        <telerik:RadGrid ID="rgPerson" runat="server" AllowFilteringByColumn="True" AllowPaging="True" 
            AllowSorting="True" DataSourceID="EntityDataSourcePerson" GridLines="None" AllowAutomaticDeletes="True" 
            AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AutoGenerateDeleteColumn="True" 
            AutoGenerateEditColumn="True" ShowGroupPanel="True">  
            <ClientSettings AllowKeyboardNavigation="true" EnablePostBackOnRowClick="true">  
                <Selecting AllowRowSelect="true" /> 
            </ClientSettings> 
            <MasterTableView AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="EntityDataSourcePerson" 
                CommandItemDisplay="Top" EditMode="PopUp">  
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="id" DataType="System.Int32" HeaderText="id" ReadOnly="True" 
                        SortExpression="id" UniqueName="id">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name" 
                        UniqueName="Name">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="City" HeaderText="City" SortExpression="City" 
                        UniqueName="City">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridDateTimeColumn DataField="Birthday" HeaderText="Birthday" SortExpression="Birthday" 
                        UniqueName="Birthday">  
                    </telerik:GridDateTimeColumn> 
                </Columns> 
            </MasterTableView> 
        </telerik:RadGrid> 
        <br /> 
        <telerik:RadGrid ID="rgCar" runat="server" AllowFilteringByColumn="True" AllowPaging="True" 
            AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" 
            AllowSorting="True" AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" 
            DataSourceID="EntityDataSourceCar" GridLines="None">  
            <MasterTableView AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="EntityDataSourceCar" 
                CommandItemDisplay="Top">  
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="id" DataType="System.Int32" HeaderText="id" ReadOnly="True" 
                        SortExpression="id" UniqueName="id">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Brand" HeaderText="Brand" SortExpression="Brand" 
                        UniqueName="Brand">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="PlateNumber" HeaderText="PlateNumber" SortExpression="PlateNumber" 
                        UniqueName="PlateNumber">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Color" HeaderText="Color" SortExpression="Color" 
                        UniqueName="Color">  
                    </telerik:GridBoundColumn> 
                      
                </Columns> 
            </MasterTableView> 
            <ClientSettings> 
                <Selecting AllowRowSelect="True" /> 
            </ClientSettings> 
        </telerik:RadGrid> 
        <asp:EntityDataSource ID="EntityDataSourcePerson" runat="server" ConnectionString="name=TestEntities" 
            DefaultContainerName="TestEntities" EnableDelete="True" EnableInsert="True" EnableUpdate="True" 
            EntitySetName="Person">  
        </asp:EntityDataSource> 
        <asp:EntityDataSource ID="EntityDataSourceCar" runat="server" ConnectionString="name=TestEntities" 
            DefaultContainerName="TestEntities" EnableDelete="True" EnableInsert="True" EnableUpdate="True" AutoGenerateWhereClause="true" 
            EntitySetName="Car">  
            <WhereParameters> 
                <asp:ControlParameter ControlID="rgPerson" DefaultValue="1" Name="Person.id" PropertyName="SelectedValue" 
                    Type="Int32" /> 
            </WhereParameters> 
        </asp:EntityDataSource> 
    </div> 
    </form> 
</body> 
</html> 
 
Kiara
Top achievements
Rank 1
 answered on 04 Nov 2009
3 answers
162 views
Hi folks,

I use a radtabstrip to load usercontrols on demand pretty much like the example at TabStrip / Load on Demand RadPageView. On my usercontrol I have javascript code in a radcodeblock, but this code is not loaded into the page if I use ajax.

In my testpage I have a function showing a normal javascript alert, which is called from an asp button. If i include the code below (to retrive the usercontrol via ajax), the button doesn't work, bot do I remove the ajax updater, and by this update the full site by loading an usercontrol there is no problems.

<telerik:AjaxSetting AjaxControlID="RadTabStrip1"> 
    <UpdatedControls> 
        <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" /> 
        <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanUnderRadWin" /> 
    </UpdatedControls> 
</telerik:AjaxSetting> 
<telerik:AjaxSetting AjaxControlID="RadMultiPage1"> 
    <UpdatedControls> 
        <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanUnderRadWin" /> 
    </UpdatedControls> 
</telerik:AjaxSetting> 

What should I do?
Ahrensberg
Top achievements
Rank 1
 answered on 04 Nov 2009
1 answer
182 views
Hi,

I have 5 charts on my page. Sometimes I'm getting a popup error message saying;
"Error loading RadChart image.
You may also wish to check the ASP.NET Trace for further details.
Display stack trace?"

Is ther eany way to fix this issue?

Thanks,
Ruben.
Giuseppe
Telerik team
 answered on 04 Nov 2009
5 answers
359 views
Hello, I have a couple of issues with the grid control and column sizing.  Here is my scenerio; I have grid inside a div that is set for 100% width.  I did look at http://demos.telerik.com/aspnet-ajax/grid/examples/client/scrolling/defaultcs.aspx and near as I can tell I did it all correctly.

Issue 1:
I have two columns that are given a header style width of 100px. When I open the form the two columns are split equally to the width of the window. My expectation is that they are two columns at 100px each with a filler block taking up the rest of the space.  I open the form and then manully resize the columns back to 100px this is indeed what I get.

Issue 2:
I have 6 columns at 150px each.  Sometimes (not consistently) the grid wil shrink the columns rather than display a horizontal scroll bar. So I end up with 6 columns at 75px each rather than getting a scroll bar.

Issue 3:
Why is it that when I fix the column headers  (UseStaticHeaders) There is a white box at the top of the scroll bar rather than a column header.  It looks correct if I have UseStaticHeaders turned off.

Here is the page
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="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"> 
 
<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> 
            <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" /> 
        </Scripts> 
    </telerik:RadScriptManager> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
    </telerik:RadAjaxManager> 
    <div> 
        <p>Both columns are specified as 100 px, the scroll bars are turn on so why are my columns wider than 100 px?</p> 
        <p>Why is there a little empty white box looking like a nudist at a grand ball sitting at the top of the vertical scroll bar.</p> 
        <telerik:RadGrid ID="Grid" runat="server"   
                Width="100%" Height="200px" 
                AllowFilteringByColumn="false"   
                ShowStatusBar="true" AllowSorting="true" 
                AutoGenerateColumns="false"   
                AllowPaging="True" AllowCustomPaging="True"   
                OnNeedDataSource="GridNeedDataSource" > 
 
                <PagerStyle Mode="NextPrevAndNumeric"/>  
                <ClientSettings AllowDragToGroup="false" > 
                    <Scrolling AllowScroll="true" 
                               EnableVirtualScrollPaging="false" 
                               SaveScrollPosition="false" 
                               UseStaticHeaders="true"/>  
                    <Resizing  AllowColumnResize="true" 
                               AllowRowResize="false" 
                               EnableRealTimeResize="false" 
                               ResizeGridOnColumnResize="false" 
                               ClipCellContentOnResize="true"/>  
                    <Selecting AllowRowSelect="true" />                                     
                </ClientSettings> 
                <MasterTableView AllowCustomSorting="true" TableLayout="Fixed">  
                    <Columns> 
                        <telerik:GridBoundColumn HeaderText="Col1" DataField="field1">  
                            <HeaderStyle Width="100" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn HeaderText="Col2" DataField="field2">  
                            <HeaderStyle Width="100" /> 
                        </telerik:GridBoundColumn> 
 
                    </Columns> 
                </MasterTableView> 
        </telerik:RadGrid> 
    </div> 
      
    <div> 
    <p>If you open this in a browser window that is less than 900px, rather than a scroll bar I get a smaller columns why?</p> 
    <p>If I fix the grid width to 600 px, I get the scroll bars.</p> 
        <telerik:RadGrid ID="Grid2" runat="server"   
                Width="100%" Height="200px" 
                AllowFilteringByColumn="false"   
                ShowStatusBar="true" AllowSorting="true" 
                AutoGenerateColumns="false"   
                AllowPaging="True" AllowCustomPaging="True"   
                OnNeedDataSource="GridNeedDataSource" > 
 
                <PagerStyle Mode="NextPrevAndNumeric"/>  
                <ClientSettings AllowDragToGroup="false" > 
                    <Scrolling AllowScroll="true" 
                               EnableVirtualScrollPaging="false" 
                               SaveScrollPosition="false" 
                               UseStaticHeaders="true"/>  
                    <Resizing  AllowColumnResize="true" 
                               AllowRowResize="false" 
                               EnableRealTimeResize="false" 
                               ResizeGridOnColumnResize="false" 
                               ClipCellContentOnResize="true"/>  
                    <Selecting AllowRowSelect="true" />                                     
                </ClientSettings> 
                <MasterTableView AllowCustomSorting="true" TableLayout="Fixed">  
                    <Columns> 
                        <telerik:GridBoundColumn HeaderText="Col1" DataField="field1">  
                            <HeaderStyle Width="150" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn HeaderText="Col2" DataField="field2">  
                            <HeaderStyle Width="150" /> 
                        </telerik:GridBoundColumn> 
                          
                        <telerik:GridBoundColumn HeaderText="Col3" DataField="field2">  
                            <HeaderStyle Width="150" /> 
                        </telerik:GridBoundColumn> 
                          
                        <telerik:GridBoundColumn HeaderText="Col4" DataField="field2">  
                            <HeaderStyle Width="150" /> 
                        </telerik:GridBoundColumn> 
                          
                                                <telerik:GridBoundColumn HeaderText="Col3" DataField="field2">  
                            <HeaderStyle Width="150" /> 
                        </telerik:GridBoundColumn> 
                          
                        <telerik:GridBoundColumn HeaderText="Col4" DataField="field2">  
                            <HeaderStyle Width="150" /> 
                        </telerik:GridBoundColumn> 
                          
                    </Columns> 
                </MasterTableView> 
        </telerik:RadGrid> 
    </div> 
    </form> 
</body> 
</html> 
 


And the code behind
using System;  
using Telerik.Web.UI;  
 
public partial class Default : System.Web.UI.Page   
{  
    public class Foo  
    {  
        public Foo()  
        {  
            Field1 = Guid.NewGuid().ToString();  
            Field2 = Guid.NewGuid().ToString();  
        }  
        public string Field1 { get; set; }  
        public string Field2 { get; set; }  
    }  
 
    private Foo[] FooArray = new[]  
                                 {  
                                     new Foo(),  
                                     new Foo(),  
                                     new Foo(),  
                                     new Foo(),  
                                     new Foo(),  
                                     new Foo(),  
                                     new Foo(),  
                                     new Foo(),  
                                     new Foo(),  
                                     new Foo(),  
                                     new Foo(),  
                                 };  
 
    protected void Page_Load(object sender, EventArgs e)  
    {  
          
    }  
 
    protected void GridNeedDataSource(object source, GridNeedDataSourceEventArgs e)  
    {  
        Grid.DataSource = FooArray;  
        Grid2.DataSource = FooArray;  
    }      
}  
 
tmlipinski
Top achievements
Rank 1
 answered on 04 Nov 2009
1 answer
91 views
Hi,
Problem in getting radeditor control id from javascript.

I am using rad editor in my application. i have placed the rad editor in a usercontrol and i wish to use that in my aspx pages normally how we place usercontrols in web pages. here the problem is i am using ajax modal popup. i have linkbutton in my web page and in the click event i am opening a pop up with the usercontrol (editor). so far it is working fine and able to read editor content in the server side. i have a button inside the popup and onclientclink event i want to validate the editor blank or not .
to do this i need to get the editor (usercontrol) id from the javascript.

Could any one help me to get out from this.
 
Rumen
Telerik team
 answered on 04 Nov 2009
3 answers
115 views
Hello everyone...

I try to create a custom skin based on Office 2007, and I couldn't

I try to use the stylebuilder.telerik.com page, but it only shows you 1 level of the tab strip, so its really difficult to use that tool,

I try to modify the CSS file and it was a total failure since i haven't work with css before,

So, could someone tell me how to create a custom skin to represent the image below?  with the 2 levels of tab strip?

All help is welcome...  I need to deliver this control asap, so the company buy this tools, so that's the hurry.

Thanks

Best Regards!
Jose.
Kamen Bundev
Telerik team
 answered on 04 Nov 2009
1 answer
74 views

hi,

When i programitically add custom tools to editor, i 's  like in the atachment appears, how can i stop this.

Rumen
Telerik team
 answered on 04 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?