Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
80 views
I've been using the RadSplitter a lot to organize my page layouts and have been doing lots of nesting with them. I've run into a sitatuion where the content of a RadSplitter's pane does not show unless the RadSplitter VisibleDuringInit property is set to True? Even then the layout initially displays as crammed in the top left and if I resize the browser then it correctly fills the page?

My Page is organized like this:

<RadSplitter1>
<RadPane> Tabstrip</RadPane>

<RadPane>

<RadMultipage>
<RadPageView>
<RadSplitter2><RadPane>
Content doesn't show up unless VisibleDuringInit=True
</RadPane></RadSplitter2>
</RadPageView>
</RadMultipage>

</RadPane>
</RadSplitter1>


Thanks, JM
Dobromir
Telerik team
 answered on 11 Oct 2011
2 answers
129 views
While attempting to use the RadRotator, built upon one of telerik's examples, the data seems to be read fine from the database, however when attempting to display the RadRotator just freezes displaying on partilal data. Here is my code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="OCSNews.aspx.vb" Inherits="NewsFeed_OCSNews" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title>News Ticker</title>
</head>
<script runat="server">
    Protected Function GetDayOfWeek(dateTimeString As String) As String
        Dim result As DateTime = DateTime.Parse(dateTimeString)
        Dim dayOfWeek As String = [Enum].GetName(GetType(DayOfWeek), result.DayOfWeek)
        Return dayOfWeek
    End Function
    Protected Function GetTimeOnly(dateValue As String) As String
        Return System.DateTime.Parse(dateValue).ToString("hh:mm tt")
    End Function
    Protected Function GetDateOnly(dateValue As String) As String
        Return System.DateTime.Parse(CDate(dateValue)).ToString("ddd, MMM d, yyyy")
    End Function
 
</script>
<body>
    <form id="frmDefault" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <table id="tblNews" runat="server">
        <tr>
            <td>
                <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="InfoUpdatePanel">
                    <AjaxSettings>
                        <telerik:AjaxSetting AjaxControlID="rotSchoolNews">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="panSchoolNews" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                    </AjaxSettings>
                </telerik:RadAjaxManager>
                <telerik:RadAjaxLoadingPanel ID="InfoUpdatePanel" runat="server" Transparency="30"
                    BackColor="#E0E0E0">
                    <asp:Image ID="imgLoading" runat="server" ImageUrl="~/Images/sm_loading.gif" Width="60px"
                        Style="border: 0px;" AlternateText="Loading..." ToolTip="Loading..." />
                </telerik:RadAjaxLoadingPanel>
                <div id="panSchoolNews" runat="server">
                    <a href='<%# Eval("Event_DTG").ToString() %>' style="cursor: pointer; text-decoration: none;
                        color: Black; background-image: url('images/Monday.png');"></a>
                    <div>
                        <div class="backElement">
                            <br />
                            <telerik:RadRotator ID="rotSchoolNews" ScrollDirection="Up" ScrollDuration="2000"
                                runat="server" Width="493px" ItemWidth="493px" Height="344px" ItemHeight="64px"
                                FrameDuration="1" InitialItemIndex="-1" CssClass="rotator" DataSourceID="SqlNews">
                                <ItemTemplate>
                                    <div class="itemTemplate" onclick="javascript:popwindowfull('NewsFeed/OCSNews.aspx?ID=<%# DataBinder.Eval(Container.DataItem,"Event_ID") %>')"
                                        style="background-image: url('images/<%# Me.GetDayOfWeek(Eval("Event_DTG").ToString()) %>.png');">
                                        <div class="dateTime">
                                            <div class="time">
                                                <%# (Me.GetTimeOnly(DataBinder.Eval(Container.DataItem, "Event_DTG")))%>
                                            </div>
                                            <div class="date">
                                                <%# (Me.GetDateOnly(DataBinder.Eval(Container.DataItem, "Event_DTG")))%>
                                            </div>
                                        </div>
                                        <div class="title">
                                            <span>
                                                <%# System.Web.HttpUtility.HtmlEncode(DataBinder.Eval(Container.DataItem, "Event_Headline").ToString())%>
                                            </span>
                                        </div>
                                    </div>
                                </ItemTemplate>
                            </telerik:RadRotator>
                        </div>
                        <asp:SqlDataSource ID="SqlNews" runat="server" ConnectionString="<%$ ConnectionStrings:OglethorpeConnectionString %>"
                            SelectCommand="SELECT Event_ID, Event_DTG, Event_Headline, Event_Text, Event_Group, Event_Location FROM OCS_Event WHERE (Event_EffectiveDate <= getdate()) AND (Event_DTG >= getdate()) ORDER BY Event_DTG">
                        </asp:SqlDataSource>
                    </div>
                </div>
 
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
I can't seem to figure out what's going on. Can anyone please help? Thanks
P.S. I have attached a screen shot to help visualize the isssue.
Slav
Telerik team
 answered on 11 Oct 2011
1 answer
207 views
I'm currently using a RadTreeList control and I want to enable this control by a function in Javascript, how can i do that?
Another way to solve my problem is, how can i select a specified row from a radtreelistview searching by the ID control.
Radoslav
Telerik team
 answered on 11 Oct 2011
1 answer
68 views
I am using the RadGrid default skin and when rendering in IE7, I am not getting the alternating row styles or the hover row style. Please see the attached image.
Pavlina
Telerik team
 answered on 11 Oct 2011
3 answers
157 views
Hello ,
    
    I have a problem that when export grid data to word ,word column width problem 

Refer attachment 
Nithin
Top achievements
Rank 1
 answered on 11 Oct 2011
1 answer
146 views
I'm currently trying to get an iFrame to dynamically load pages based upon menu click. I've tried various methods but none want to work. Ideally, though, I'd prefer to have them loaded into a Panel if possible.

My code at the minute looks like this (obviously it's not complete as I'm only testing things):

protected void RadMenu1_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)
 {
     RadMenuItem item = e.Item as RadMenuItem;
 
     switch (item.Text)
     {
         case "Banners": Panel1.Attributes.Add("src", "~/Banners.aspx");
             break;
         case "Categories":
             break;
         case "Countries and Counties":
             break;
         case "Facilities":
             break;
         case "Links Manager":
             break;
         case "Login Security Questions":
             break;
         case "Regions":
             break;
         case "Vouchers":
             break;
         case "User Accounts":
             break;
     }
 }

And here's the markup:

<telerik:RadAjaxPanel runat="server" ID="AjaxPanel" HorizontalAlign="NotSet">
        <table align="center" border="0px" cellpadding="0px" cellspacing="0px">
            <tr>
                <td>
                    <telerik:RadMenu ID="RadMenu1" runat="server" Skin="Forest" Width="950px" Style="top: 0px;
                        left: 0px" OnItemClick="RadMenu1_ItemClick">
                        <Items>
                            <telerik:RadMenuItem runat="server" Owner="RadMenu1" Text="User Accounts" CssClass="left">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" Owner="RadMenu1" Text="System Setup" CssClass="left">
                                <Items>
                                    <telerik:RadMenuItem runat="server" Owner="" Text="Banners" CssClass="left">
                                    </telerik:RadMenuItem>
                                    <telerik:RadMenuItem runat="server" Owner="" Text="Categories" CssClass="left">
                                    </telerik:RadMenuItem>
                                    <telerik:RadMenuItem runat="server" Owner="" Text="Countries and Counties" CssClass="left">
                                    </telerik:RadMenuItem>
                                    <telerik:RadMenuItem runat="server" Owner="" Text="Facilities" CssClass="left">
                                    </telerik:RadMenuItem>
                                    <telerik:RadMenuItem runat="server" Owner="" Text="Links Manager" CssClass="left">
                                    </telerik:RadMenuItem>
                                    <telerik:RadMenuItem runat="server" Owner="" Text="Login Security Questions" CssClass="left">
                                    </telerik:RadMenuItem>
                                    <telerik:RadMenuItem runat="server" Owner="" Text="Regions" CssClass="left">
                                    </telerik:RadMenuItem>
                                    <telerik:RadMenuItem runat="server" Owner="" Text="Vouchers" CssClass="left">
                                    </telerik:RadMenuItem>
                                </Items>
                            </telerik:RadMenuItem>
                        </Items>
                    </telerik:RadMenu>
                </td>
            </tr>
        </table>
        <div>
            <asp:LoginName ID="LoginName1" runat="server" />
            <asp:LoginStatus ID="LoginStatus1" runat="server" />
        </div>
        <div class="center_panel">
            <iframe id="Panel1" width="100%" runat="server"></iframe>
        </div>
    </telerik:RadAjaxPanel>
    <telerik:RadAjaxManager runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadMenu1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadMenu1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
Peter
Telerik team
 answered on 11 Oct 2011
1 answer
69 views
Hi There,

I have implemented a self referencing radGrid as provided in the documentation, only change made was using an image button instead of button as in the example
http://www.telerik.com/help/aspnet-ajax/grid-self-referencing-hierarchy.html

It worked fine with .net framework 2.0, we recently migrated to 4.0 and now its showing up a javascript error on click of the image button. Attaching the javascript error image.

How can I resolve this?

Thanks,
Vinay
Marin
Telerik team
 answered on 11 Oct 2011
1 answer
73 views
hey all,
When creating an appointment in month view, are the hours dropdowns available or are they only available in Day and week view??

Thanks
Alex
Plamen
Telerik team
 answered on 11 Oct 2011
1 answer
115 views
Hi,

I am implemeting the following similar grid,
related example

The Discounted checkbox column is firstly shown as true/false column and after double click, the checkboxs will show up and allow editing, my question is
Can it just show yes/no instead of true/false and how?
or it be maked to an editable checkbox column so that I can simply check/uncheck a box, instead of making it editable by first double clicking or by making an editCommand column?  

Thanks
Marin
Telerik team
 answered on 11 Oct 2011
1 answer
144 views
Hi!

I'm trying to do something.

I need to have different inline editor base on the type of edition...

It can be an insert or an edit.

I want to be able to have different ColumnEditor defined in the event CreateColumnEditor of the RadGrid depending on if it's edit mode or insert mode.

The event gives object but I have no clue if it is an insert or an edit.

Is there a way to identify if the event was fired for an insert or an edit?

Thanks!

protected void RadGrid_OnCreateColumnEditor(object sender, Telerik.Web.UI.GridCreateColumnEditorEventArgs e) 
        { 
            if (e.Column is GridBoundColumn) 
            { 
                if ((e.Column as GridBoundColumn).DataField == "UserValue") 
                { 
                    e.ColumnEditor = new NumericColumnEditor("UserValue"); 
                } 
                else if ((e.Column as GridBoundColumn).DataField == "UserId") 
                { 
                    e.ColumnEditor = new LabelColumnEditor("UserId"); 
                } 
                else if ((e.Column as GridBoundColumn).DataField == "UserName") 
                { 
                    e.ColumnEditor = new LabelColumnEditor("UserName"); 
                } 
            } 
        }
Radoslav
Telerik team
 answered on 11 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?