Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
481 views
If I set ShowChooser="True", my selected skin is persisted.

Rather than having just the name of the skin, I wanted a sample image as well, so I pulled the skin images from
http://demos.telerik.com/aspnet-ajax/scheduler/examples/customization/defaultvb.aspx and put in a combo, but when I change the skin it's selected value isn't persisted.

I have two formdecorators, one for my page work area, and one for the area outside the working area of the page where I change the background.

When I change the skin, the standard controls aren't updated either.
Me.RadSkinManager1.Skin = Skin
 
'Attempt to update all controls on the page, which doesn't seem to do anything.
Me.RadSkinManager1.ApplyStyleSheetSkin(Me.Page)
Me.RadSkinManager1.ApplySkin(Me.Page.Form, Skin)
Me.RadFormDecorator1.Skin = Skin
Me.RadFormDecorator2.Skin = Skin

<telerik:RadSkinManager ID="RadSkinManager1" Enabled="True" PersistenceKey="TelerikSkin"
    PersistenceMode="Cookie" ShowChooser="false" runat="server" />

Tsvetina
Telerik team
 answered on 19 Dec 2011
3 answers
112 views
Already a long time we have the following setup

RadTabstrip with multipage and RadEditors in several tabs.

With this function we set the class of contentArea for each editor
function OnClientLoad(editor, args)
{
editor.get_contentArea().className = "Inhoud";
}

This class was always persisted when switching back and forth over the tabstrip.

Now in Q3-2011 the class on the contentArea is lost when I navigate back to a tab which was already opened before.

Please assist.

Marc
Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 19 Dec 2011
1 answer
139 views
I have a dropdown list in a pager template. I am attempting to set the page index of a listview using the dropdownlist in the datapager to allow the customer to jump to a record using more meaningful text than a page number. The page size will always be 1.

MARKUP
<telerik:RadListView ID="RadListView1" runat="server" AllowPaging="True" DataSourceID="sqlActPlus" ItemPlaceholderID="ActionContainer" PageSize="1">
            <LayoutTemplate>
                <asp:PlaceHolder ID="ActionContainer" runat="server" />
                <telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="RadListView1" PageSize="1">
                    <Fields>
                        <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                        <telerik:RadDataPagerButtonField FieldType="Numeric" />
                        <telerik:RadDataPagerButtonField FieldType="NextLast" />
                        <telerik:RadDataPagerTemplatePageField>
                            <PagerTemplate>
                                <asp:DropDownList ID="drpActionList" DataSourceID="sqlActPlus" DataTextField="Action" DataValueField="Action" runat="server" AutoPostBack="true" OnSelectedIndexChanged="drpActionList_SelectedIndexChanged">
                                </asp:DropDownList>
                            </PagerTemplate>
                        </telerik:RadDataPagerTemplatePageField>
                        <telerik:RadDataPagerTemplatePageField>
                            <PagerTemplate>
                                <div style="float: right">
                                    <b>Action
                                        <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" />
                                        to
                                        <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# IIF(Container.Owner.TotalRowCount > (Container.Owner.StartRowIndex+Container.Owner.PageSize), Container.Owner.StartRowIndex+Container.Owner.PageSize, Container.Owner.TotalRowCount) %>" />
                                        of
                                        <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                                        <br />
                                    </b>
                                </div>
                            </PagerTemplate>
                        </telerik:RadDataPagerTemplatePageField>
                    </Fields>
                </telerik:RadDataPager>
            </LayoutTemplate>
            <ItemTemplate>
                <fieldset>
                    <legend>Action</legend>
                    <table class="FullWidthTable">
                        <tbody>
                            <tr>
                                <th>
                                    Action Number
                                </th>
                                <th>
                                    Target Date
                                </th>
                                <th>
                                    Type
                                </th>
                            </tr>
                            <tr>
                                <td class="ReadOnlyValue">
                                    <%# Eval("ActionNo")%> 
                                </td>
                                <td class="ReadOnlyValue">
                                    <%# Eval("TargetMast", "{0:d}")%> 
                                </td>
                                <td class="ReadOnlyValue">
                                    <%# Eval("Type")%> 
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </fieldset>
            </ItemTemplate>
        </telerik:RadListView>

VB
Protected Sub drpActionList_SelectedIndexChanged(ByVal sender As DropDownList, ByVal e As System.EventArgs)
    Dim dataPager As Telerik.Web.UI.RadDataPager = DirectCast(RadListView1.FindControl("RadDataPager1"), Telerik.Web.UI.RadDataPager)
    If dataPager IsNot Nothing Then
         dataPager.PageIndex = sender.SelectedIndex ' I realize this line doesn't work
    End If
End Sub

The text value of the dropdown list is similar to "XXB123" and "IMO45687" and isn't always sequential. That is why I want to use the selected index.
Tsvetina
Telerik team
 answered on 19 Dec 2011
1 answer
94 views
I'm trying to follow your example but I don't know what I'm messing up. Essentially, I just want to be able to add images to a rotator so it displays something like a powerpoint. Here's my aspx


<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.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">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="ScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadRotator ID="RadRotator1" runat="server"
            RotatorType="SlideShowButtons" SlideShowAnimation-Type="Fade"
            Width="400" ItemWidth="400" Height="200" ItemHeight="200" CssClass="rotator"
            ScrollDirection="Left,Right">
            <ControlButtons LeftButtonID="prevButton" RightButtonID="nextButton" />
        </telerik:RadRotator>
    </div>
    </form>
</body>
</html>




And here's my c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Office.Core;
using Microsoft.Office.Interop.PowerPoint;
using Telerik.Web.UI;
using System.Data;
using System.Collections;
 
public partial class _Default : System.Web.UI.Page
{
    MyFunctions obj = new MyFunctions();
    String webPath = System.Configuration.ConfigurationManager.AppSettings["websitePath"];
 
    protected void Page_Load(object sender, EventArgs e)
    {
 
 
        if (obj.convertPpt("myfile.pptx") == "true")
        {
 
 
            RadRotator rr = RadRotator1;
 
            rr.DataSource = CreateRotatorData();
            rr.DataBind();
            this.Controls.Add(rr);
             
        }//if obj.convertPpt
        else
        {
            Response.Write("We couldn't convert the power point");
        }//else
 
    }//page_load
 
    private ArrayList CreateRotatorData()
    {
        ArrayList al = new ArrayList();
        al.Add(ResolveUrl(webPath + "powerPointImages\\Slide1.jpg" ));
        al.Add(ResolveUrl(webPath + "powerPointImages\\Slide2.jpg" ));
 
        return al;
    }//CreateRotatorData
 
}// _Defautl
Kevin
Top achievements
Rank 2
 answered on 19 Dec 2011
2 answers
293 views
I have a RadGrid that I want to export to Excel, but above the exported grid I would like to add an addition HTML table.  After adding the table, the formatting of the export is unaligned.  I'm guessing I don't have my HTML tags correct.  All I want to accomplish is adding an HTML table above the exported grid and the table & the grid should fill 100% of the width of the screen.  Please help.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="mgrJS" runat="server">
        </telerik:RadScriptManager>
        <telerik:radajaxmanager ID="mgrAjax" runat="server">
        </telerik:radajaxmanager>       
        <telerik:RadGrid runat="server" ID="dg" Skin="WebBlue" AllowSorting="true" ></telerik:RadGrid>
        <asp:Button ID="btn" runat="server" text="Export" />
    </div>
    </form>
</body>
</html>
Imports System.Data
  
Partial Class _Default
    Inherits System.Web.UI.Page
  
    Private Function CreateDataTable() As DataTable
        Dim dt As New DataTable
        dt.Columns.Add("123", GetType(String))
        dt.Columns.Add("456", GetType(String))
        dt.Columns.Add("789", GetType(String))
        Dim r As DataRow = dt.NewRow
        r(0) = "abc"
        r(1) = "def"
        r(2) = "ghi"
        dt.Rows.Add(r)
        Return dt
    End Function
    
    Protected Sub dg_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles dg.NeedDataSource
        dg.DataSource = CreateDataTable()
    End Sub
  
    Protected Sub btn_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn.Click
        Dim header As New StringBuilder("<table style='width:100%'><tr><td></td></tr><tr><td align='center'>The Title</td></tr><tr><td></td></tr><tr><td><table style='width:100%'>")
        dg.MasterTableView.Caption = header.ToString
        dg.ExportSettings.ExportOnlyData = True
        dg.ExportSettings.OpenInNewWindow = True
        dg.ExportSettings.IgnorePaging = True
        dg.MasterTableView.ExportToExcel()
        header.Append("</table></td></tr></table>")
    End Sub
End Class
Mira
Telerik team
 answered on 19 Dec 2011
1 answer
84 views
In the RadInputManager demo the first TextBoxSetting is as follows.

http://demos.telerik.com/aspnet-ajax/input/examples/radinputmanager/firstlook/defaultcs.aspx

<telerik:TextBoxSetting BehaviorID="TextBoxBehavior1" EmptyMessage="type here" Validation-IsRequired="true">
<TargetControls>
<telerik:TargetInput ControlID="Div1" />
</TargetControls>
</telerik:TextBoxSetting>

Is this a bug or does applying the TextBoxSetting to the Div do something I'm missing.

Thanks for helping me understand this demo.
Tsvetina
Telerik team
 answered on 19 Dec 2011
5 answers
120 views
hi,
im using a rad tree list in my projects. its programmed in an user control, but i didn't load it directly, i load it from address bar, some things like this:
~/ManageDefault.aspx?type=MMPC&GrID=0
when i use this way loading, the tree list dosen't work properly, when i load it directly from .aspx page, it works right, how i can fix it?
all of my controls are in user controls, and i call them from code behind like previous link.

thanks for your helpful replies...
Tsvetina
Telerik team
 answered on 19 Dec 2011
7 answers
344 views
Hi all,

I am trying to understand how I can do a multiple column filtering but I could not find an appropriate resource for that. Obviously I am missing it, but can you please help me finding a good one? After filtering in a column, how can I do a second filtering in another column so that it becomes a second derivative filtering over the first one?

Example:
Column1       Column2 
3                    A
4                    B
6                    C
5                    C
5                    D

After the 1st filtering; FilterItem: 5, Column1
Column1      Column2
5                   C
5                   D

2nd Filtering; FilterItem: C, Column2
Column1      Column2
5                   C

Thanks,
Ervin

Maria Ilieva
Telerik team
 answered on 19 Dec 2011
4 answers
303 views
I have a radmenu with sqldatasource.What I wanna is to get child items value and save to database.I used the code below,but this gets only value of parent items.How can I get the value of child items?
RadMenu getMenu = Master.FindControl("RadMenu1") as RadMenu;
getMenu.Items[i].Value;

Emre
Top achievements
Rank 1
 answered on 19 Dec 2011
3 answers
173 views
Hi,

Dimitar Terziev
Telerik team
 answered on 19 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?