Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
128 views
I have a RadScheduler Week view with only one time row. In this case the calendar popup will be clipped.

Is there any workaround?
Plamen
Telerik team
 answered on 29 May 2012
6 answers
156 views
Hello Sir,

I have a form with Grid/Item Drag-and-Drop which works on Computer but doesn't work on iPad. Is there any way to make it work? If not, do any of upcoming releases will have Grid/Items Drag-and-Drop support for iPad?


Thank you. 
Roger
Top achievements
Rank 1
 answered on 29 May 2012
2 answers
122 views
I'm using repeater inside a user control, which is dynamically generated by other parent page inside raddock, so the hierarchy is: Page, RadDock, User Control, Repeater.

My problem is that the repeater doesn't fire Item command event,
Here is the code of the repeater inside the user control:

<asp:Repeater ID="rptrFirst5Assignments" runat="server"
    onitemdatabound="rptrFirst5Assignments_ItemDataBound"
    onitemcommand="rptrFirst5Assignments_ItemCommand"
    onitemcreated="rptrFirst5Assignments_ItemCreated" >
    <ItemTemplate>
        <table >
            <tr >
                <td >
                    <asp:Label ID="lblAssignmentID" runat="server" Text='<%# Bind("Asm_ID") %>'
                        Visible="false"></asp:Label>
                    <asp:Label ID="lblCreatedByID" runat="server" Text='<%# Bind("Asm_CreatedBy") %>'
                    Visible="false"></asp:Label>
                    <asp:Label ID="lblAssignment" runat="server" CssClass="alltext" Text='<%# Bind("Asm_Body") %>'></asp:Label>
                </td>
                 <td style="float:left;">
                  
                 <asp:LinkButton ID="btnDelete" runat="server" CausesValidation="false" CssClass="link-delete" CommandName="Delete"
                                CommandArgument='<%# Eval("Asm_ID")%>' /></td>
            </tr>
        </table>
         
    </ItemTemplate>
     
</asp:Repeater>


And this is how i dynamically create the rad docks in the parent page:
as mentioned in the demo of rad dock:
if (!Page.IsPostBack)
            {
CreateDocksFirstTime();
 
 
for (int i = 0; i < RadDockLayout1.Controls.Count; i++)
                {
                    if (RadDockLayout1.Controls[i].GetType() == typeof(RadDock))
                    {
                        RadDock radDock = (RadDock)RadDockLayout1.Controls[i];
                            List<Assignment> assignments = AssignmentBL.SearchTodayAssignments(3,5,0, SelectedDate);
                           ((Controls.TeacherDateView.TeacherDateViewAssignments)radDock.ContentContainer.Controls[0]).FillData(assignments);
                            radDock.Title =  assignments.Count ;         
                    }
                }
}
  
private void CreateDocksFirstTime()
        {
            RadDock dock3 = CreateRadDock();
  
            //adding the dock to the docklayout and then docking it to the zone to avoid ViewState issues on subsequent postback
            RadDockLayout1.Controls.Add(dock3);
            dock3.Dock(RadDockZoneAssignments);
            dock3.Height = new Unit(300, UnitType.Pixel);
  
            CreateSaveStateTrigger(dock3);
  
            //Load the selected widget in the RadDock control
            dock3.Tag = "Controls\\TeacherDateView\\TeacherDateViewAssignments.ascx";
            LoadWidget(dock3);
        }
  
  
  
  
private void LoadWidget(RadDock dock)
        {
            if (string.IsNullOrEmpty(dock.Tag))
            {
                return;
            }
            Control widget = LoadControl(dock.Tag);
            widget.EnableViewState = false;
            dock.ContentContainer.Controls.Add(widget);
        }



And then i re create them from the saved state at Page_Init as mentioned in the RadDock Demo
protected void Page_Init(object sender, EventArgs e)
        {
            //Recreate the docks in order to ensure their proper operation
            for (int i = 0; i < CurrentDockStates.Count; i++)
            {
                RadDock dock = CreateRadDockFromState(CurrentDockStates[i]);
                RadDockLayout1.Controls.Add(dock);
                //We want to save the dock state every time a dock is moved.
                CreateSaveStateTrigger(dock);
                //Load the selected widget
                LoadWidget(dock);
                if (CurrentDockStates[i].Closed == true)
                {
                    dock.Visible = false;
                }
}
}


Note that i have buttons inside the user control and they work correctly, Also repeater_ItemDataBound and ItemCreated event handlers are firing correctly.


Any suggestions??
Faten
Top achievements
Rank 1
 answered on 29 May 2012
1 answer
94 views
Hi all I have designed my page using Tabstrip and Panel as follows

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="addEmployee.aspx.cs" Inherits="addEmployee" %>
 
<%@ 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>
    <link href="TabStrip.Vista.css" rel="stylesheet" type="text/css" />
    <link href="PanelBar.Office2010Silver.css" rel="stylesheet" type="text/css" />
    <link href="PanelBar.Vista.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="StyleSheet.css" />
    <link href="ComboBox.Office2010Silver.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
        UnSelectChildren="True" Skin="Vista" EnableEmbeddedSkins="false" ClickSelectedTab="True"
        AutoPostBack="True" SelectedIndex="0">
        <Tabs>
            <telerik:RadTab runat="server" Text="Personal" Selected="True" PageViewID="RadPageView1">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Racing" PageViewID="RadPageView5">
                <Tabs>
                    <telerik:RadTab Text="Running" PageViewID="RadPageView6" />
                    <telerik:RadTab Text="Swimming" PageViewID="RadPageView7" />
                    <telerik:RadTab Text="Skiing" PageViewID="RadPageView8" />
                </Tabs>
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Gymnastics" PageViewID="RadPageView9">
                <Tabs>
                    <telerik:RadTab Text="Vault" PageViewID="RadPageView10" />
                    <telerik:RadTab Text="Uneven Bars" PageViewID="RadPageView11" />
                    <telerik:RadTab Text="Balance Beam" PageViewID="RadPageView12" />
                </Tabs>
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">
        <telerik:RadPageView ID="RadPageView1" runat="server">
            <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
                <telerik:RadPanelBar runat="server" ID="RadPanelBar1" ExpandMode="FullExpandedItem"
                    Skin="Vista" EnableEmbeddedSkins="false" Width="400px">
                    <Items>
                        <telerik:RadPanelItem Expanded="true" Text="Employee Personal Information" runat="server"
                            Selected="true">
                            <Items>
                                <telerik:RadPanelItem Value="AccountInformation" runat="server">
                                    <ItemTemplate>
                                        <div class="text" style="background-color: #edf9fe">
                                            <ul class="formList" id="accountInfo">
                                                <li>
                                                    <asp:Label Width="150px" runat="server" ID="lblFirstName" AssociatedControlID="accountName">First Name</asp:Label>
                                                    <asp:TextBox ID="accountName" CssClass="textInput" runat="server" ValidationGroup="accountValidation"
                                                        Width="200px"></asp:TextBox>
                                                    <asp:RequiredFieldValidator runat="server" ID="rqrdName" ValidationGroup="accountValidation"
                                                        ControlToValidate="accountName" ErrorMessage="First name is required" Text="*"></asp:RequiredFieldValidator>
                                                </li>
                                                <li>
                                                    <asp:Label runat="server" Width="150px" ID="lblMiddle" AssociatedControlID="txtMiddle">Middle Initial</asp:Label>
                                                    <asp:TextBox ID="txtMiddle" CssClass="textInput" runat="server" Width="200px"></asp:TextBox>
                                                </li>
                                                <li>
                                                    <asp:Label runat="server" Width="150px" ID="lblLastName" AssociatedControlID="txtLastName">Last Name</asp:Label>
                                                    <asp:TextBox CssClass="textInput" ValidationGroup="accountValidation" ID="txtLastName"
                                                        runat="server" Width="200px"></asp:TextBox>
                                                    <asp:RequiredFieldValidator runat="server" ValidationGroup="accountValidation" ID="rqrdLast"
                                                        ControlToValidate="txtLastName" ErrorMessage="LastName is required" Text="*"></asp:RequiredFieldValidator>
                                                </li>
                                                <li>
                                                    <asp:Label runat="server" ID="lblSSN" AssociatedControlID="txtSSN" Width="150px">Social Security Number</asp:Label>
                                                    <telerik:RadMaskedTextBox Mask="###-##-####" runat="server" ID="txtSSN" Width="200px"
                                                        ValidationGroup="accountValidation">
                                                    </telerik:RadMaskedTextBox>
                                                    <asp:RequiredFieldValidator runat="server" ValidationGroup="accountValidation" ID="rqrdSSN"
                                                        ControlToValidate="txtSSN" ErrorMessage="SSN is required" Text="*"></asp:RequiredFieldValidator>
                                                </li>
                                                <li>
                                                    <asp:Label runat="server" ID="lblHireDate" AssociatedControlID="radDtHiredate" Width="150px">Hire Date</asp:Label>
                                                    <telerik:RadDatePicker ID="radDtHiredate" Width="200px" runat="server" MinDate="1900-01-01"
                                                        AutoPostBack="true">
                                                        <Calendar ID="calHire" RangeMinDate="1900-01-01" runat="server">
                                                        </Calendar>
                                                    </telerik:RadDatePicker>
                                                </li>
                                                <li>
                                                    <asp:Label runat="server" ID="lblGender" AssociatedControlID="RadComboBox1" Width="150px">Gender</asp:Label>
                                                    <telerik:RadComboBox ID="RadComboBox1" AutoPostBack="true" CssClass="ComboBox" runat="server"
                                                        Width="200px">
                                                    </telerik:RadComboBox>
                                                </li>
                                                <li>
                                                    <asp:Label runat="server" ID="lblDob" AssociatedControlID="radDtDOB" Width="150px">Date Of Birth</asp:Label>
                                                    <telerik:RadDatePicker ID="radDtDOB" Width="200px" runat="server" MinDate="1900-01-01"
                                                        AutoPostBack="true">
                                                        <Calendar ID="calDob" RangeMinDate="1900-01-01" runat="server">
                                                        </Calendar>
                                                    </telerik:RadDatePicker>
                                                </li>
                                                <li>
                                                    <asp:Label runat="server" ID="lblPayFrequency" AssociatedControlID="radPayFrequency" Width="150px">Pay Frequency</asp:Label>
                                                    <telerik:RadComboBox ID="radPayFrequency" AutoPostBack="true" CssClass="ComboBox" runat="server"
                                                        Width="200px">
                                                    </telerik:RadComboBox>
                                                </li>
                                            </ul>
                                            <br />
                                            <asp:ValidationSummary runat="server" ID="validationSummary" CssClass="validationSummary" />
                                            <br />
                                            <br />
                                        </div>
                                    </ItemTemplate>
                                </telerik:RadPanelItem>
                            </Items>
                        </telerik:RadPanelItem>
                    </Items>
                </telerik:RadPanelBar>
            </telerik:RadAjaxPanel>
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView2" runat="server">
            <h3 class="title">
                Court sports: Tennis</h3>
            Tennis is a sport played between two players (singles) or between two teams of two
            players each (doubles). Each player uses a strung racquet to strike a hollow rubber
            ball covered with felt (most of the time Optic Yellow, but can be any color or even
            two-tone) over a net into the opponent's court.
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView3" runat="server">
            <h3 class="title">
                Court sports: Badminton</h3>
            Badminton is a racquet sport played by either two opposing players (singles) or
            two opposing pairs (doubles), who take positions on opposite halves of a rectangular
            court that is divided by a net. Players score points by striking a shuttlecock with
            their racquet so that it passes over the net and lands in their opponents' half
            of the court. A rally ends once the shuttlecock has struck the ground, and the shuttlecock
            may only be struck once by each side before it passes over the net.
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView4" runat="server">
            <h3 class="title">
                Court sports: Squash</h3>
            Squash is a racquet sport that was formerly called squash racquets, a reference
            to the "squashable" soft ball used in the game (compared with the harder ball used
            in its parent game Racquets (or rackets; see below)). The game is played by two
            players (or four players for doubles) with "standard" rackets in a four-walled court
            with a small, hollow rubber ball. Squash is characterized as a "high-impact" exercise
            that can place strain on the joints, notably the knees.
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView5" runat="server">
            <h3 class="title">
                Racing sports</h3>
            <ul>
                <li>Human-powered: running (many types), swimming (many types), skiing (many types),
                    ice speed skating</li>
                <li>Human-assisted: cycling (several types), rowing, canoeing, kayaking, dragon boat
                    racing, wheelchair racing, bobsledding and luge</li>
                <li>Animal and animal-assisted: horse racing (several types), greyhound racing, pigeon
                    racing, dog racing, chariot racing</li>
                <li>Machine-powered: auto racing (many types), motorboat racing, motorcycle racing (many
                    varieties), air racing</li>
            </ul>
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView6" runat="server">
            <h3 class="title">
                Racing sports: Running</h3>
            Running is both a competition and a type of training for sports which have running
            or endurance components. As a sport it is split into events divided by distance
            and sometimes includes permutations such as the obstacles in Steeplechase and hurdles.
            Running races are contests to determine which of the competitors is able to run
            a certain distance in the shortest time. Today, competitive running events make
            up the core of the sport of athletics. Events are usually grouped into several classes,
            each requiring substantially different athletic strengths and involving different
            tactics, training methods, and types of competitors.
            <br />
            Running competitions have probably existed for most of humanity's history, and were
            a key part of the ancient Olympic Games as well as the modern Olympics. Today, road
            racing is a popular sport among non-professional athletes, who included over 7.7
            million people in America alone in 2002.
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView7" runat="server">
            <h3 class="title">
                Racing sports: Swimming</h3>
            The goal of competitive swimming is to be the fastest over a given distance. Competitive
            swimming became popular in the nineteenth century, and comprises 36 individual events
            - 18 male events and 18 female events, however the IOC only recognizes 34 events
            - 17 male and 17 female events. Swimming is an event at the Summer Olympic Games,
            where male and female athletes compete in 13 of the recognized events each. Olympic
            events are held in a 50 meter pool. Competitive swimming's international governing
            body is FINA (Fédération Internationale de Natation), the International Swimming
            Federation.<br />
            The four competitive strokes are the butterfly, backstroke, breaststroke, and front
            crawl (freestyle). "Freestyle" and "front crawl" are often used interchangeably,
            but "freestyle" properly refers to an unregulated competitive event rather than
            to any particular stroke. Swimmers generally choose to swim front crawl in a freestyle
            event since it is the fastest stroke. In events that require specific strokes, disqualification
            will occur if the stroke is not swum correctly, for example if the swimmer does
            not touch the wall with two hands during breaststroke or butterfly.
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView8" runat="server">
            <h3 class="title">
                Racing sports: Skiing</h3>
            Snow skiing is a group of sports utilizing skis as primary equipment. Skis are used
            in conjunction with boots that connect to the ski with use of a binding. Although
            snowboarding shares the general characteristics of skiing sports, it evolved from
            surfing and skateboarding and so is not considered a type of skiing. The posture
            assumed in snowboarding is a side on action whereas the skiing posture is primarily
            front facing.<br />
            Skiing can be grouped into two general categories. Nordic skiing is the oldest category
            and includes sport that evolved from skiing as done in Scandinavia. Nordic style
            bindings attach at the toes of the skier's boots, but not at the heels. Alpine skiing
            includes sports that evolved from skiing as done in the Alps. Alpine bindings attach
            at both the toe and the heel of the skier's boots. As with many disciplines, such
            as Telemark skiing, there is some crossover. However, binding style and history
            tend to dictate whether a style is considered Nordic or Alpine. Thus, in view of
            its lack of a locking heel, and its roots in Telemark, Norway, Telemark is generally
            considered a Nordic discipline.
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView9" runat="server">
            <h3 class="title">
                Gymnastics</h3>
            Gymnastics is a sport involving performance of exercises requiring physical strength,
            agility and coordination. Artistic Gymnastics is the best known and most popular
            of the gymnastics sports governed by the Fédération Internationale de Gymnastique
            (FIG). It typically involves exercises on uneven bars, balance beam, floor exercise,
            and vault (for women), and high bar, parallel bars, still rings, floor exercise,
            vault, and pommel horse (for men). It evolved from exercises used by the ancient
            Greeks, including skills for mounting and dismounting a horse, and circus performance
            skills. Other forms of gymnastics are rhythmic gymnastics, various trampolining
            sports and aerobic and acrobatic gymnastics.
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView10" runat="server">
            <h3 class="title">
                Gymnastics: Vault</h3>
            In the vaulting events gymnasts: sprint down a 25 meter (about 82 feet) runway,
            jump onto a beatboard - a kind of springboard, (run/ take-off segment), land momentarily,
            generally inverted on the hands, on the vaulting horse or vaulting table, (pre flight
            segment), then spring or block off of this platform to a two footed landing (post
            flight segment). The post flight segment may include one or more multiple saltos
            or somersaults, and or twisting movements. In 2001, the traditional vaulting horse
            was replaced with a new apparatus, sometimes known as a tongue or table. The new
            apparatus is more stable, wider, and longer than the older vaulting horse - approx.
            1m in length and 1m in width, gives gymnasts a larger blocking surface, and is therefore
            safer than the old vaulting horse. With the addition of this new, safer vaulting
            table, gymnasts are attempting more difficult and dangerous vaults.
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView11" runat="server">
            <h3 class="title">
                Gymnastics: Uneven Bars</h3>
            On the uneven bars (also known as asymmetric bars, UK), the gymnast navigates two
            horizontal bars set at different heights. The height is generally fixed, but the
            width may be adjusted. Gymnasts perform swinging, circling, transitional, and release
            moves,that may pass over, under, and between the two bars. Movements may pass through
            the handstand. Gymnasts often mount the Uneven Bars using a beatboard (springboard).
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView12" runat="server">
            <h3 class="title">
                Gymnastics: Balance Beam</h3>
            The gymnast performs a choreographed routine from 60 to 80 seconds in length consisting
            of leaps, acrobatic skills, somersaults, turns and dance elements on a padded sprung
            beam. Apparatus norms set by the International Gymnastics Federation (used for Olympic
            and most elite competitions) specify the beam must be 125 cm (4' 1") high, 500 cm
            (16' 5") long, and 10 cm (4") wide. The event requires in particular, balance, flexibility
            and strength.
        </telerik:RadPageView>
    </telerik:RadMultiPage>
    <div>
    </div>
    </form>
</body>
</html>

This works fine in mozila but when coming to  Chrome I am unable to view the exact view which I had in Mozila can some one help me.
Kate
Telerik team
 answered on 29 May 2012
1 answer
106 views
I have a radTreeList inside a radDock.  The radDock is fixed height and the radTreeList is larger than the fixed height so there is a vertical scroll bar on the radDock, which is what I want.  I also have an ajax manager to make the radTreeList use ajax with a loading panel.  The issue is when an item command event from the radTreeList is fired, the loading panel gets its attributes from the radTreeList and not the parent radDock to set the absolute height and width properties.  So what is displayed is a loading panel larger than the radDock (See attached image).  

I've tried a couple of different settings but have not been able to fix it.  I'm sure there is a simple solution but I have not been able to find one.  


ASPX Code
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"/>
        <telerik:RadSkinManager ID="RadSkinManager1" Runat="server">
        </telerik:RadSkinManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" EnableSkinTransparency="true" >
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="radTreeList1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="radTreeList1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadDockLayout runat="server" ID="RadDockLayout1">
            <telerik:RadDockZone runat="server" ID="RadDockZone1" Style="float: left; margin-right: 15px;" Width="310" BorderStyle="none">
                <telerik:RadDock runat="server" ID="dockSwitched" DefaultCommands="ExpandCollapse" EnableRoundedCorners="true" style="padding-bottom:10px;" height="200px" EnableDrag="false">
                    <ContentTemplate>
                        <telerik:RadTreeList ID="radTreeList1" runat="server" Width="275px" DataKeyNames="ID" ParentDataKeyNames="PID"  ShowOuterBorders="false" AutoGenerateColumns="false" AllowPaging="false" AllowSorting="true">
                            <Columns>
                                <telerik:TreeListBoundColumn DataField="Text" HeaderText="Text" SortExpression="Text"><HeaderStyle HorizontalAlign="Center" /><ItemStyle Wrap="false" /></telerik:TreeListBoundColumn>
                                <telerik:TreeListBoundColumn DataField="ID" HeaderText="ID" SortExpression="ID"><HeaderStyle HorizontalAlign="Center" /><ItemStyle Wrap="false" /></telerik:TreeListBoundColumn>
                                <telerik:TreeListBoundColumn DataField="PID" HeaderText="Parent" SortExpression="PID"><HeaderStyle HorizontalAlign="Center" /><ItemStyle Wrap="false" /></telerik:TreeListBoundColumn>
                            </Columns>
                        </telerik:RadTreeList>
                    </ContentTemplate>
                </telerik:RadDock>
            </telerik:RadDockZone>
        </telerik:RadDockLayout>

VB Code
Partial Class Test
    Inherits System.Web.UI.Page
 
    Protected Sub radTreeList1_ItemCommand(sender As Object, e As Telerik.Web.UI.TreeListCommandEventArgs) Handles radTreeList1.ItemCommand
        System.Threading.Thread.Sleep(5000)
    End Sub
 
    Protected Sub radTreeList1_NeedDataSource(sender As Object, e As Telerik.Web.UI.TreeListNeedDataSourceEventArgs) Handles radTreeList1.NeedDataSource
        Dim list As New ArrayList()
 
        list.Add(New TestListItem(1, "Item 1", 2))
        list.Add(New TestListItem(2, "Item 2", Nothing))
        list.Add(New TestListItem(3, "Item 3", 2))
        list.Add(New TestListItem(4, "Item 4", 5))
        list.Add(New TestListItem(5, "Item 5", Nothing))
        list.Add(New TestListItem(6, "Item 6", 2))
        list.Add(New TestListItem(7, "Item 7", 5))
        list.Add(New TestListItem(8, "Item 8", 3))
        list.Add(New TestListItem(9, "Item 9", 3))
        list.Add(New TestListItem(10, "Item 10", 3))
        list.Add(New TestListItem(11, "Item 5", Nothing))
        list.Add(New TestListItem(12, "Item 5", Nothing))
        list.Add(New TestListItem(13, "Item 5", Nothing))
        list.Add(New TestListItem(14, "Item 5", Nothing))
        list.Add(New TestListItem(15, "Item 5", Nothing))
        list.Add(New TestListItem(16, "Item 5", Nothing))
        list.Add(New TestListItem(17, "Item 5", Nothing))
        list.Add(New TestListItem(18, "Item 5", Nothing))
        list.Add(New TestListItem(19, "Item 5", Nothing))
        list.Add(New TestListItem(20, "Item 10", 3))
        list.Add(New TestListItem(21, "Item 5", Nothing))
        list.Add(New TestListItem(22, "Item 5", Nothing))
        list.Add(New TestListItem(23, "Item 5", Nothing))
        list.Add(New TestListItem(24, "Item 5", Nothing))
        list.Add(New TestListItem(25, "Item 5", Nothing))
        list.Add(New TestListItem(26, "Item 5", Nothing))
        list.Add(New TestListItem(27, "Item 5", Nothing))
        list.Add(New TestListItem(28, "Item 5", Nothing))
        list.Add(New TestListItem(29, "Item 5", Nothing))
 
        radTreeList1.DataSource = list
    End Sub
 
    Public Class TestListItem
        Public Property ID() As System.Nullable(Of Integer)
            Get
                Return m_ID
            End Get
            Set(ByVal value As System.Nullable(Of Integer))
                m_ID = Value
            End Set
        End Property
        Private m_ID As System.Nullable(Of Integer)
        Public Property PID() As System.Nullable(Of Integer)
            Get
                Return m_PID
            End Get
            Set(ByVal value As System.Nullable(Of Integer))
                m_PID = Value
            End Set
        End Property
        Private m_PID As System.Nullable(Of Integer)
        Public Property Text() As String
            Get
                Return m_Text
            End Get
            Set(ByVal value As String)
                m_Text = Value
            End Set
        End Property
        Private m_Text As String
        Public Sub New(ByVal id__1 As System.Nullable(Of Integer), ByVal text__2 As String, ByVal pid__3 As System.Nullable(Of Integer))
            ID = id__1
            Text = text__2
            PID = pid__3
        End Sub
    End Class
End Class


Thanks,
Greg
Slav
Telerik team
 answered on 29 May 2012
0 answers
196 views
Hi All,
My requirement is I want to find control values ( created dynamically) which was placed in Placeholder.
My scenario is I am using one grid with 2 columns (RadCombobox and Placeholder). So in first postback I have to create radtexetbox or  RadCombobox dynamically and have to add  placeholder ( This selection is based on value in first column RadCombobox). In 2nd postback I have to find the values of previously created dynamic control. I tried looking into forums with title "Getting PlaceHolder control values". But I am getting Null values. So Can you please help me in finding solution.

Thanks in advance......
Ratan
Top achievements
Rank 1
 asked on 29 May 2012
1 answer
81 views
Can we add two images in grid Expand columns and one image work for Expand the column and 2nd image work for open the context men menu.

Is it possible or not.

If it is possible can you send me any demo or suggest me way to do.

It is urgent please ,i shall be very thankful to you.


Thanks Telerik support Team. 
Eyup
Telerik team
 answered on 29 May 2012
6 answers
85 views
I have a page which prints the contents (a grid)  of a rad pane. I want the grid skin styles to get printed so I use

ClientScript.GetWebResourceUrl(GetType(RadGrid),"Telerik.Web.UI.Skins.Office2007.Grid.Office2007.css")

and then pass the result as an absolute path to the pane.print() method.

This doesn't seem to work since upgrading to the latest controls and the external Skins assembly. It worked before.

The "Telerik.Web.UI.Skins.Office2007.Grid.Office2007.css" seems like it ought to work, but my print page is not applying the grid skin. Is there some alteration I need to make to this code to reference the grid skin?

Milena
Telerik team
 answered on 29 May 2012
5 answers
114 views
Hello,
We plan to use script sharp compiler fromp Nikhil Kothari, will i work with RadAjax ?

Thanks
CS
Dobromir
Telerik team
 answered on 29 May 2012
5 answers
703 views

Hi,
 I have used a radgrid with template coulmns which contains dropdowns and textbox..
 Now i will change these values. Button which saves these changes in radgrid is outside of radgrid. Now how can i identify only edited rows in radgrid and save ?

Below is code with only template columns
 <MasterTableView AllowFilteringByColumn="true">
                    <Columns>
                        <%--<telerik:GridBoundColumn HeaderText="Group Level" UniqueName="prdlvl" DataField="prdlvl"
                            Visible="true" ReadOnly="true">
                        </telerik:GridBoundColumn>--%>
                        <telerik:GridTemplateColumn HeaderText="Group Level" UniqueName="prdlvl" Visible="true">
                            <ItemTemplate>
                                <asp:Label ID="afslblproductlvl" runat="server" Text='<%#Eval("prdlvl")%>'></asp:Label>
                            </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <%--        <telerik:GridBoundColumn HeaderText="Description" UniqueName="prdlvldsc" DataField="prdlvldsc"
                                Visible="true">
                            </telerik:GridBoundColumn>--%>
                            <telerik:GridTemplateColumn HeaderText="Description" UniqueName="prdlvldsc" DataField="budverdsc"
                                Visible="true">
                                <itemtemplate>
                         <asp:TextBox ID = "afstxtProductGrpDescription" runat="server"  Text='<%#Eval("prdlvldsc")%>' Width= "100%"></asp:TextBox>
                             </itemtemplate>
                            </telerik:GridTemplateColumn>
                    </Columns>
                </MasterTableView>

Will looping each item can i know which item is edited in ??

foreach (GridDataItem ObjeACH in rdGrdMenu.Items)
        {
}

Regards,
Akki
Shinu
Top achievements
Rank 2
 answered on 29 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?