Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
112 views
Hi Telerik,

I am trying to re-create a RadWindow using a Content Template -- Previously, I had it created using a Navigate Url. I am finding that the RadFormDecorator isn't wanting to apply properly in this scenario?

My code:

<telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" DecoratedControls="All" DecorationZoneID="UploadDashboardWindow" Skin="Web20" />
 
 
<telerik:RadWindowManager ID="RadWindowManager1" Runat="Server" Skin="Web20" Modal="True" KeepInScreenBounds="True" EnableShadow="True" Behaviors="Close, Move" VisibleStatusbar="False" ReloadOnShow="True" ShowContentDuringLoad="False" Behavior="Close, Move" Title="Confirm Action" IconUrl="~/Content/Dashboard/Icons/radwindow_confirmdelete.png">
    <Windows>
        <telerik:RadWindow ID="HistoricalLocalSettingsWindow" Runat="Server" NavigateUrl="~/Dashboard/Dialog/Windows/HistoricalLocalSettings.aspx" OnClientShow="OnLocalSettingsShow" OnClientClose="OnHistoricalLocalSettingsClose" OnClientAutoSizeEnd="OnClientAutoSizeEnd" IconUrl="~/Content/Dashboard/Icons/radwindow_settings.png" Title="Settings" Width="450px" AutoSize="True" AutoSizeBehaviors="Height" />
        <telerik:RadWindow ID="DashboardGlobalSettingsWindow" Runat="Server" NavigateUrl="~/Dashboard/Dialog/Windows/DashboardGlobalSettings.aspx" OnClientShow="OnDashboardGlobalSettingsShow" OnClientClose="OnDashboardGlobalSettingsClose" IconUrl="~/Content/Dashboard/Icons/radwindow_settings.png" OnClientAutoSizeEnd="OnClientAutoSizeEnd" Title="Global Settings" MinHeight="337px" Height="337px" Width="450px" />
        <telerik:RadWindow ID="CustomLocalSettingsWindow" Runat="Server" NavigateUrl="~/Dashboard/Dialog/Windows/CustomLocalSettings.aspx" OnClientShow="OnLocalSettingsShow" OnClientClose="OnCustomLocalSettingsClose" IconUrl="~/Content/Dashboard/Icons/radwindow_settings.png" OnClientAutoSizeEnd="OnClientAutoSizeEnd" Title="Settings" Width="450px" Height="215px" />
        <telerik:RadWindow ID="ReportWindow" Runat="Server" Title="CableSolve Report Viewer" Width="600" Height="500" OnClientClose="OnReportWindowClose" />
     
        <telerik:RadWindow ID="UploadDashboardWindow" Runat="Server" IconUrl="~/Content/Dashboard/Icons/drive-upload.png" OnClientClose="OnUploadDashboardClose" OnClientAutoSizeEnd="OnClientAutoSizeEnd" Title="Upload Dashboard" Height="150">
            <ContentTemplate>
 
                <fieldset id="Upload Dashboard">
                    <legend>Upload Dashboard</legend>
                    <telerik:RadUpload ID="RadUpload1" Runat="server" AllowedFileExtensions=".xml" Skin="Web20" MaxFileInputsCount="1" ControlObjectsVisibility="None" Height="40px" Width="230px" BorderWidth="0px" >
                    </telerik:RadUpload>
 
                    <div class="BottomButton">
                        <telerik:RadButton ID="RadButton1" Runat="server" Skin="Web20" Text="Upload"/>
                    </div>
                </fieldset>
            </ContentTemplate>
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>

I know the Telerik guide says not to place RadWindows with ContentTemplate inside of the RadWindowManager, but I rather like keeping the things grouped "master page -> slave page"-esque. I haven't noted any troubles with this setup yet, but if I encounter them I will reconsider that implementation.

Nevertheless, the DecorationZoneID doesn't seem to be forcing the RadWindow to become decorated. When I do not use a DecorationZoneID other things go wrong on my page, however, so I am hoping to be able to use this to target the appropriate window. The thought is that I don't actually want to decorate my base page, just the pop-up window, but now the pop-up window is part of the base page.. so, yeah.

What am I doing wrong with my implementation? Thanks.

Sean

EDIT: It seems its something to do with the DecorationZone. If I remove that it decorates the control properly.
Moreover, if I wrap the RadWindowManager in a div with ID "RadWindowsWrapper", and then set the DecorationZoneID="RadWindowsWrapper" I get -some- of the styling, but not all? I see my fieldset gain rounded corners, but it did not color properly. It colors properly if I remove the DecorationZoneID.
Sean
Top achievements
Rank 2
 answered on 12 Sep 2011
3 answers
77 views
I want to setup  the Calendar.DateTimeFormat.CalendarWeekRule property in the Edit Format for my Tree List control
Andrey
Telerik team
 answered on 12 Sep 2011
1 answer
96 views
Hi,

I have followed this example http://www.telerik.com/community/forums/aspnet-ajax/scheduler/replacing-schedulerinfo-in-resourcespopulating-not-working.aspx and it is working fine

the thing is, I need to change the group by for example,
I have 3 rooms (one,two,three) and the user can select which rooms he likes to show (one,two) or (one,three),
when calling rebind the ResourcesPopulatingis not being called , also when using server side rebind with Ajax call the "ResourcesPopulating" is being called by the control do not get updated and the grouping display stay the same (although the resource count changes on the control)

Please advise,
Mickey
Peter
Telerik team
 answered on 12 Sep 2011
3 answers
203 views
Hi,

I'm using default skin for RadComboBox but I would like its border to become black on mouse hover. I know that RadComboBox uses background image to draw the border. Could you give me any suggestions how to solve my issue?

Thanks,
Andrey
Ivana
Telerik team
 answered on 12 Sep 2011
2 answers
45 views
Hi

In the below example,
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultcs.aspx

Ajaxloadpanel is displayed in the middle of the radgrid. I don't see any properties set to do it. I tried backgroundposition, style but nothing works. Loadpanel is always displaying on the top of the radgrid. How to make it display over the radgrid?

Thanks
Vijaianand
Top achievements
Rank 1
 answered on 12 Sep 2011
1 answer
159 views
Hi,

I have an issue that is already related in other tickets of this forum, but hasn't really been resolved or didn't resolve my problem. I'm working with ASP.NET/AJAX/C#.

I want to be able to refresh a Radgrid after removing elements thanks to a button. In the click event of the button, i remove the element from the source and then call the rebind() function of the Radgrid. The element is only removed from the source but not from the datagrid. If i want the datagrid view to be modified, i have to reopen the window.

How can i resolve this issue ?

Thanks in advance.
Iana Tsolova
Telerik team
 answered on 12 Sep 2011
2 answers
412 views
Hello,

Using RadControls for ASP.NET v2011.2.712.35

How do I get the checked value using Javascript for a GridClientSelectColumn in a RadGrid when I click a row in a RadGrid?

Thanks,

Randall Price
Senior Developer
Virginia Tech
Randall
Top achievements
Rank 2
 answered on 12 Sep 2011
5 answers
151 views
Hello

I'm not getting this right. I want to display a feed from youtube. All the data is comming in fine. The youtube feeds will return chuncks of video's with a startindex ... so I have to use the PageIndexChanged to alter the paging.

Alas, it does only work correct afer I click one of the pages. This means that on original page load, it will still take the default pagesize of 10. Any help would be wonderful.

Btw, this is a radListview with radDatapager.


protected override void LoadPage()
{
    // make youtube channel
    channel = new YouTubeChannel(PMSettings.GetPortalSetting("channel"),
                                 PMSettings.GetPortalSetting("devkey"),
                                 PMSettings.GetModuleSetting("pagesize", 6));
 
    if (!IsPostBack)
    {
        // request video feed
        feed = channel.Search("", 1);
 
        // configure list view
        ListViewVideos.PageSize = feed.PageSize;
        ListViewVideos.VirtualItemCount = feed.TotalResults;
 
        // data bind
        ListViewVideos.DataSource = feed.Entries;
        ListViewVideos.DataBind();
    }
}
 
protected void ListViewVideos_PageIndexChanged(object sender, Telerik.Web.UI.RadListViewPageChangedEventArgs e)
{
    // request video feed
    feed = channel.Search("", e.NewPageIndex + 1);
 
    // configure list view
    ListViewVideos.PageSize = feed.PageSize;
    ListViewVideos.VirtualItemCount = feed.TotalResults;
 
    // data bind
    ListViewVideos.DataSource = feed.Entries;
    ListViewVideos.DataBind();
}

Iana Tsolova
Telerik team
 answered on 12 Sep 2011
1 answer
63 views
I attack the picture below, show that the word dint scrolling

Client Side
<telerik:RadRotator ID="dtMessage" runat="server" PauseOnMouseOver ="false" 
FrameDuration="1" Height="55px" ItemHeight="55px" Width="737px" ItemWidth="737px">
<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr><td align="center" valign="middle" ><asp:Label ID="lblMsg" runat="server"></asp:Label></td></tr>
<tr><td align="center" valign="middle"><asp:Label ID="lblMsg2" runat="server"></asp:Label></td></tr>
</table>
<asp:HiddenField ID="hldMsg1" Value ='<%# Eval("Msg1") %>' runat="server" />
<asp:HiddenField ID="hldMsg2" Value ='<%# Eval("Msg2") %>' runat="server" />
<asp:HiddenField ID="hldFontFace" Value ='<%# Eval("FontFace") %>' runat="server" />
<asp:HiddenField ID="hldFontSize" Value ='<%# Eval("FontSize") %>' runat="server" />
<asp:HiddenField ID="hldFontColor" Value ='<%# Eval("FontColor") %>' runat="server" />
<asp:HiddenField ID="hldDirection" Value ='<%# Eval("MessageDirection") %>' runat="server" />
</ItemTemplate>
</telerik:RadRotator>

On the Server Side
dtMessage.DataSource = objDS.Tables(5)
dtMessage.DataBind()
 
Dim strColor As String = objDS.Tables(5).Rows(0)("FontColor").ToString
Dim strDirection As String = objDS.Tables(5).Rows(0)("MessageDirection").ToString
 Dim intMsgSpeed As Integer = objDS.Tables(5).Rows(0)("MessageSpeed").ToString
 
 
If strDirection = "Down" Then
dtMessage.ScrollDirection = RotatorScrollDirection.Down
 ElseIf strDirection = "Up" Then
 dtMessage.ScrollDirection = RotatorScrollDirection.Up
 ElseIf strDirection = "Left" Then
  dtMessage.ScrollDirection = RotatorScrollDirection.Left
 Else
dtMessage.ScrollDirection = RotatorScrollDirection.Right
 End If
 
If strDirection = "Up" Or strDirection = "Down" Then
  dtMessage.ScrollDuration = intMsgSpeed * 1000
Else
  dtMessage.ScrollDuration = intMsgSpeed * 10000
End If
Niko
Telerik team
 answered on 12 Sep 2011
8 answers
187 views
I have a RadPanelBar that I am using that has dynamic heights for the childheightproperty.

Seems to be an issue related to IE8 compatibility mode?

When I load the panelbar, all panels are collapsed.  When I expand any of the panels (except the bottom one), I am seeing a "ghost" of the panel BELOW the one I open remaining in the spot where it was before I expanded the panel above it.  In this case, the panel has a background image applied via CSS.

As a result, I have to "click" on this ghost, in order to see the content of the panel I just opened.

HELP

My code:

foreach (XmlNode Panel in Panels)
            {
                string PanelName = Panel.SelectSingleNode("PanelText").InnerText;
                string PanelImage = Panel.SelectSingleNode("PanelImage").InnerXml;
                string PanelContent = Panel.SelectSingleNode("PanelContentText").InnerText;
                int PanelContentHeight = 0;
                Telerik.Web.UI.RadPanelItem item = new Telerik.Web.UI.RadPanelItem(PanelName, "");
                Telerik.Web.UI.RadPanelItem childPanelItem = new Telerik.Web.UI.RadPanelItem("", "");

                item.ChildGroupHeight = 200;

                string strInnerHtml = string.Empty;

                strInnerHtml += "<div>" + PanelContent + "</div><br />";
                if (PanelImage != null)
                {
                    strInnerHtml += "<div align='center'>" + PanelImage + "</div>";
                }

                PanelItemTemplate template = new PanelItemTemplate(strInnerHtml);
                childPanelItem.ItemTemplate = template;
                try
                {
                    PanelContentHeight = Convert.ToInt32(Panel.SelectSingleNode("PanelContentHeight").InnerText);
                    item.ChildGroupHeight = PanelContentHeight;
                }
                catch
                {
                    item.ChildGroupHeight = 200;
                }
                item.Items.Add(childPanelItem);
                item.Expanded = false;
                this.RadPanelBar1.Items.Add(item);
            }
July
Top achievements
Rank 2
 answered on 12 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?