Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 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
144 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
227 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
127 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
140 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
152 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
778 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
3 answers
160 views
How could I RadDateTimePicker Enable/Disable using java script

Advance Thanks
Tamim
Tamim
Top achievements
Rank 1
 answered on 29 May 2012
22 answers
1.0K+ views

I have the RadScriptManager and the RadComboBox working correctly on my site for most users, but several have reported encountering JavaScript errors that I cannot reproduce/ troubleshoot.

The details of the error they are encountering are below.  Anyone have any ideas on how to resovle/troubleshoot this?


 

The error seems to imply a request that does not return JavaScript, but that doesn’t make sense since the error is occurring with http://aspnet-scripts.telerikstatic.com/ajaxz/2010.2.929/Common/Core.js

Error Details:
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; Tablet PC 2.0; .NET4.0C; InfoPath.3; MS-RTC LM 8; Zune 4.7)

 

Timestamp: Tue, 8 Feb 2011 00:00:24 UTC

Message: Invalid character

Line: 1

Char: 1

Code: 0

URI: http://aspnet-scripts.telerikstatic.com/ajaxz/2010.2.929/Common/Core.js

 

Message: Invalid character

Line: 1

Char: 1

Code: 0

URI: http://aspnet-scripts.telerikstatic.com/ajaxz/2010.2.929/Common/jQuery.js

 

Message: Invalid character

Line: 1

Char: 1

Code: 0

URI: http://aspnet-scripts.telerikstatic.com/ajaxz/2010.2.929/Common/jQueryPlugins.js

 

Message: Invalid character

Line: 1

Char: 1

Code: 0

URI: http://aspnet-scripts.telerikstatic.com/ajaxz/2010.2.929/Common/Navigation/NavigationScripts.js

 

Message: Invalid character

Line: 1

Char: 1

Code: 0

URI: http://aspnet-scripts.telerikstatic.com/ajaxz/2010.2.929/ComboBox/RadComboBoxScripts.js

 

Message: 'Telerik' is undefined

Line: 306

Char: 5

Code: 0

URI: http://mySiteUrl

Dimitar Terziev
Telerik team
 answered on 29 May 2012
6 answers
210 views
I have a grid which uses advanced databinding to a collection of custom objects. My declaration is below. The grid exists in a pageview of a tab which is not selected by default. When I switch to the tab this grid is on, I get the following javascript error and the grid does not display:

a[d].get_visible is not a function

which points to line 1561 of the script resource:
var a=this._owner.get_masterTableView().get_columns(); 
for(var d in a){if(!a[d].get_visible()){this._owner.get_masterTableView().showColumn(d); //error is here

when I switch tabs, I get a reference to the grid client-side and repaint. What is odd is, if I select the tab this grid is on by default, it binds and displays properly. It is only when the page loads with a different tab by default that this error occurs when I switch to this grid's tab. Anyhow, this page is fairly complicated, so I first wanted to see if you can tell from the error and what it is pointing to, what might be causing this error. I checked the datasource and it has 31 rows and data for each column in the grid declaration, so I don't think it is a data issue.

Grid Declaration:
<telerik:RadGrid id="rgDataSCHX"
                        runat="server"
                        AutoGenerateColumns="False"
                        Skin="Office2007"
                        AllowSorting="False"
                        AllowPaging="False"
                        Height="100%"
                        ShowFooter="False"
                        >
 
            <MasterTableView 
                        DataKeyNames="Id"
                        ClientDataKeyNames="Id"
                        Width="100%"
                        TableLayout="Fixed"
                        UseAllDataFields="True"
                        >
                 
                <Columns>
                    <telerik:GridBoundColumn HeaderStyle-Width="100px" HeaderText="Group" DataField="GroupName"  />
                    <telerik:GridBoundColumn HeaderStyle-Width="55px" HeaderText="P(#N)" DataField="PlacementStatCount" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderTooltip="Current Work Placement Count"/>
                    <telerik:GridBoundColumn HeaderStyle-Width="55px" HeaderText="P(#D)" DataField="PlacementPoolCount" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderTooltip="Current Work Placement Pool"/>
                    <telerik:GridBoundColumn HeaderStyle-Width="55px" HeaderText="P(%)" DataField="PlacementPctString" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderTooltip="Current Work Placement %"/>
                    <telerik:GridBoundColumn HeaderStyle-Width="60px" HeaderText="WA(#N)" DataField="WorkAssessmentPlacementStatCount" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderTooltip="Current Work Assessment Count"/>
                    <telerik:GridBoundColumn HeaderStyle-Width="55px" HeaderText="WA(#D)" DataField="WorkAssessmentPlacementPoolCount" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderTooltip="Current Work Assessment Pool"/>
                    <telerik:GridBoundColumn HeaderStyle-Width="55px" HeaderText="WA(%)" DataField="WorkAssessmentPlacementPctString" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderTooltip="Current Work Assessment %"/>
                    <telerik:GridBoundColumn HeaderStyle-Width="55px" HeaderText="CP(#N)" DataField="NonWorkPlacementStatCount" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderTooltip="Current Community Placement Count"/>
                    <telerik:GridBoundColumn HeaderStyle-Width="55px" HeaderText="CP(#D)" DataField="NonWorkPlacementPoolCount" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderTooltip="Current Community Placement Pool"/>
                    <telerik:GridBoundColumn HeaderStyle-Width="55px" HeaderText="C(%)" DataField="NonWorkPlacementPctString" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderTooltip="Current Community Placement %"/>
                </Columns>
                <CommandItemTemplate>
                 
                </CommandItemTemplate>
            </MasterTableView>
            <ItemStyle BorderStyle="None" />
            <GroupingSettings GroupByFieldsSeparator="" CaseSensitive="False" />
            <ClientSettings  AllowExpandCollapse="False">
                <ClientEvents OnFilterMenuShowing=""  />
                <Selecting AllowRowSelect="False"  />
                <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="100%" FrozenColumnsCount="1" />
                <Resizing AllowColumnResize="False" ClipCellContentOnResize="False" EnableRealTimeResize="False" ResizeGridOnColumnResize="True"/>
            </ClientSettings>
            <ExportSettings ExportOnlyData="true" OpenInNewWindow="true" IgnorePaging="true"  >
                <Excel Format="ExcelML" FileExtension="xls" />
            </ExportSettings>
        </telerik:RadGrid>

Andrey
Telerik team
 answered on 29 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?