Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
67 views
Hello,

I am trying to find out how to properly align a Gantt chart.  There are two Series and each series only contains one actual point, but they should be in different segments (1 & 2).  I can get this behavior to somewhat work by inserting a dummy item in each series, but even when trying to hide, set empty, and change the dummy item to 0px, it still holds the space even though it isn't there.  Below, this is to the left of the first and to the right of the second.  How can I achieve two series with one in each column where it doesn't have this empty yet allocated item space?



Here is the code I have that produces the above:
<telerik:RadChart ID="chartAnchorTip" SkinsOverrideStyles="true" runat="server" Width="225px"
    Height="200px" AutoLayout="true">
    <Appearance Border-Visible="false" Dimensions-AutoSize="true" TextQuality="ClearTypeGridFit" />
    <ChartTitle Visible="false" />
    <PlotArea Appearance-FillStyle-MainColor="White" Appearance-FillStyle-FillType="Solid">
        <XAxis MaxValue="6" MinValue="1" Step="1" />
        <YAxis MaxValue="60" Step="5" AxisMode="Extended" Visible="False" />
        <YAxis2 MaxValue="5" MinValue="1" Step="1" Visible="False" />
    </PlotArea>
    <Series>
        <telerik:ChartSeries Name="Series 1" Type="gantt">
            <Appearance LegendDisplayMode="ItemLabels" EmptyValue-Mode="Zero">
                <FillStyle MainColor="Green">
                </FillStyle>
            </Appearance>
            <Items>
                <telerik:ChartSeriesItem Visible="False" Empty="true" Label-Appearance-Visible="false"
                    Label-Appearance-Dimensions-Width="0px" Label-Appearance-Position-AlignedPosition="None"
                    PointAppearance-Dimensions-Width="0px" />
                <telerik:ChartSeriesItem YValue="20" YValue2="30" Name="Item 2" />
            </Items>
        </telerik:ChartSeries>
    </Series>
    <Series>
        <telerik:ChartSeries Name="Series 2" Type="gantt">
            <Appearance LegendDisplayMode="ItemLabels" EmptyValue-Mode="Zero">
                <FillStyle MainColor="Blue">
                </FillStyle>
            </Appearance>
            <Items>
                <telerik:ChartSeriesItem YValue="30" YValue2="40" Name="Item 1" />
                <telerik:ChartSeriesItem Visible="False" Empty="true" Label-Appearance-Visible="false"
                    Label-Appearance-Dimensions-Width="0px" Label-Appearance-Position-AlignedPosition="None"
                    PointAppearance-Dimensions-Width="0px" />
            </Items>
        </telerik:ChartSeries>
    </Series>
    <Legend Visible="false" />
</telerik:RadChart>
Steve
Top achievements
Rank 1
 answered on 27 Mar 2013
2 answers
110 views
Hi

We are using RadGrids with Microsoft's Dynamic Data scaffolding.

In testing these grids with the new Radfilter control, I found that the fileter displays the underlying database attribute names intsead of the column header labels assigned to the grid columns (GridColumn.HeaderText). This creates and issue for our users as they cannot easily detrmine the column the wish to filter on. Also, it appears that the column type is derived from the underlying database attribute as well.

For example- we create a virtual attribute based on a concatentation of a numeric id and a string label - based on a joined table and using a foreign key (routefk in master table is linked to routes table, with route id and routelabel concatenated and displayed.) The radfilter displays the column as "routefk" and expects the user to enter a number.

Is there any way we can force the filter to use the column labels and types instead of the underlying data labels and data types.
Francisco
Top achievements
Rank 1
 answered on 27 Mar 2013
1 answer
92 views
Hi

      i have two texbox and database if i enter dates in the two textbox means
      it will retrive the database value between this two dates enterd in the textbox


 Regards
P.Mugil
Vasil
Telerik team
 answered on 27 Mar 2013
5 answers
376 views
Hello,

I am using a Radlistview with a nested Radlistview nested under the top level <ItemTemplate> tag area. In the nested itemTemplate I display groups of emails by groupID's. So each group contains 5 emails within that group. Under each group there is an edit button, so my problem is that when the user clicks the edit button the editItemTemplate doesn't display so the user can edit the group of emails by that pertain to that groupID. And the edit button needs to make all items within that group editable.  I tried using my layout under the nested EditItemTemplate tag and also under the parent EditItemTemplate tag. 

My code is below. Any help would be great.

Thanks

<%@ Page Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeFile="ListDeactivation.aspx.cs" Inherits="ListDeactivation" Title="Partner List Deactivation" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
 
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True"></telerik:RadScriptManager>
 
<style type="text/css">
 
.products
{
    empty-cells: show;
    table-layout: fixed;
    border-collapse: collapse;
    width: 100%;
}
.products th
{
    background-color: #C3D8F1;
    padding: 5px;
    border-bottom: 1px solid #5D8CC9;
    color: #00156E;
    text-align: left;
    width:130px;
}
.products td
{
    padding: 4px 7px 3px 7px;
}
 
.orders td
{
    padding:0;
    width:auto;
}
.orders table
{
    table-layout:fixed;
    border-collapse:collapse;
    width:100%;
}
.orders table td
{
    width:130px;
    padding: 4px 7px 3px 7px;
    padding:3px 3px 3px 7px;
}
 
.orders table tr:last-child td
{
    border-bottom:none;
}
 
.hidden
{
    display:none;
}
 
</style>   
    
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="UpdatePanel1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="UpdatePanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>               
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="lstVpanel">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="lstVpanel" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<asp:Label runat="Server" ID="lblTitle" Font-Size="Large" ForeColor="#339ec6" Font-Bold="True" >List Deactivation</asp:Label>
             
    <asp:Panel ID="UpdatePanel1" runat="server">
     
    <asp:Label id="lblError" runat="server" Font-Bold="true" ForeColor="Red"></asp:Label>
     
        <div id="topDiv" runat="server" cellpadding="0" cellspacing="0" style="position:relative;">
             
            <div style="position: relative; top: 20px">
                <asp:Label ID="lblPartners" runat="server" Font-Bold="true" Text="Partners:"></asp:Label>
            </div>
            <div style="left: 175px; position: relative;">
                <telerik:RadComboBox ID="cbTeams" runat="server" AutoPostBack="true" Skin="Default" OnSelectedIndexChanged="cbTeams_SelectedIndexChanged">
                    <CollapseAnimation Duration="10" Type="InOutElastic"  />
                </telerik:RadComboBox>           
            </div>
             
             
            <hr />
            <asp:Panel ID="lstVpanel" runat="server">
            <telerik:RadListView ID="lvSeeds" AllowPaging="True" OnItemDataBound="lvSeeds_ItemDataBound" AllowMultiItemSelection="true" ItemPlaceholderID="SeedHolder" OnItemCommand="listView_ItemCommand" runat="server" Skin="Outlook" OnPageIndexChanged="lvSeeds_PageIndexChanged">
                <ValidationSettings EnableValidation="true" />
                <LayoutTemplate >
                 
                <table cellpadding="0" cellspacing="0"  width="100%;"  style="clear: both;">
                        <tr>
                            <td>                               
                                <telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="lvSeeds"
                                    PageSize="6">
                                    <Fields>
                                        <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                                        <telerik:RadDataPagerButtonField FieldType="Numeric" />
                                        <telerik:RadDataPagerButtonField FieldType="NextLast" />
                                        <telerik:RadDataPagerTemplatePageField>
                                            <PagerTemplate>
                                                <div style="float: right">
                                                    <b>Items
                                                        <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" />
                                                        to
                                                        <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# 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>
                            </td>
                        </tr>                           
                    </table>
                   <asp:Panel ID="HierarchyPanel" runat="Server">
                        <table id="products" class="products">
                            <thead>
                                <tr>
                                <th></th>
                                <th>Seed Name</th>
                                <th>Domain</th>
                                <th>Password</th>
                                <th>Status</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr id="SeedHolder" runat="server"></tr>
                                <tr>
                                <td>
                                    <asp:Button id="btnInsert" runat="server" Text="Insert Seed" OnClick="btnInsert_Click" />
                                </td>
                                </tr>
                            </tbody>
                        </table>
                    </asp:Panel>
                </LayoutTemplate>
                 
                <ItemTemplate>                                               
                        <tr>
                            <td></td>
                            <td style="border:none" colspan="4" class="hidden">
                                <%# Session["groupID"] = Eval("groupID").ToString() %>                              
                            </td>
                        </tr>
                        <tr class="orders">
                            <td></td>
                            <td colspan="4">
                                <telerik:RadListView ID="nestedView" runat="server" DataKeyNames="seedID" ItemPlaceholderID="nestedHolder">
                                <LayoutTemplate>
                                    <table>
                                        <asp:PlaceHolder ID="nestedHolder" runat="server"></asp:PlaceHolder>
                                    </table>
                                    <br />
                                    <br />
                                    <table>
                                    <tr>
                                        <td style="float:right">
                                            <asp:Button ID="btnEdit" runat="server" Text="Edit" CommandName="Edit" CausesValidation="false" />
                                        </td>
                                    </tr>
                                    </table>
                                </LayoutTemplate>
                                <ItemTemplate>                                   
                                        <tr>                                       
                                             
                                            <td>
                                               <%# Eval("seedName")%>
                                            </td>
                                            <td>
                                               <%# Eval("DomainName")%>
                                            </td>
                                            <td>
                                                <%# Eval("password")%>
                                            </td>
                                            <td>
                                               <%# Eval("statusName")%>
                                            </td>                                         
                                        </tr>
                                         
                                    </ItemTemplate>
                                  
                                    <EditItemTemplate>
                    <fieldset style="float:left; width: 350px; margin-top: 5px; margin-left: 5px;
                                margin-right: 5px; margin-bottom: 5px; padding-left: 15px;">
                        <table cellpadding="0" cellspacing="0" style="height: 100%;width: 100%">
                        <tr>
                            <td>
                                <table cellpadding="5" cellspacing="1">
                                    <tr>
                                        <td style="width: 10%">Seed:</td>
                                        <td style="width: 20%">
                                          <asp:TextBox ID="txtSeedName1" runat="server" Text='<%# Bind("SeedName") %>' />
                                          <asp:RequiredFieldValidator ID="rvSeedName" runat="server" ControlToValidate="txtSeedName1"
                                            ErrorMessage="Please enter seed name" Display="Dynamic" />        
                                        </td>
                                        <td>
                                            <asp:Label ID="lblDomain1" runat="server" Text="gmail.com" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 10%">Password:</td>
                                        <td style="width: 20%">
                                          <asp:TextBox ID="txtPassword1" TextMode="Password" runat="server" Text='<%# Bind("Password") %>' />
                                          <asp:RequiredFieldValidator ID="rvSeedPassword" runat="server" ControlToValidate="txtPassword1"
                                            ErrorMessage="Please enter seeds password" Display="Dynamic" />
                                        </td>
                                    </tr>
                                </table>
                            </td>                           
                        </tr>
                        <tr>
                             
                            <td>
                                <asp:Button ID="btnPerformInsert" runat="server" Text="Insert" CommandName="PerformInsert" />
                             
                                <asp:Button ID="btnCancelInsert" runat="server" Text="Cancel" CommandName="Cancel" CausesValidation="false" />
                            </td>
                        </tr>
                    </table>
                    </fieldset>
                </EditItemTemplate>
                                  
                                </telerik:RadListView>                               
                            </td>                           
                        </tr>                                
                </ItemTemplate>
                 
                <InsertItemTemplate>
                    <fieldset style="float:left; width: 350px; margin-top: 5px; margin-left: 5px;
                                margin-right: 5px; margin-bottom: 5px; padding-left: 15px;">
                        <table cellpadding="0" cellspacing="0" style="height: 100%;width: 100%">
                        <tr>
                            <td>
                                <table cellpadding="5" cellspacing="1">
                                    <tr>
                                        <td style="width: 10%">Seed:</td>
                                        <td style="width: 20%">
                                          <asp:TextBox ID="txtSeedName1" runat="server" Text='<%# Bind("SeedName1") %>' />
                                          <asp:RequiredFieldValidator ID="rvSeedName" runat="server" ControlToValidate="txtSeedName1"
                                            ErrorMessage="Please enter seed name" Display="Dynamic" />        
                                        </td>
                                        <td>
                                            <asp:Label ID="lblDomain1" runat="server" Text="gmail.com" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 10%">Password:</td>
                                        <td style="width: 20%">
                                          <asp:TextBox ID="txtPassword1" TextMode="Password" runat="server" Text='<%# Bind("Password1") %>' />
                                          <asp:RequiredFieldValidator ID="rvSeedPassword" runat="server" ControlToValidate="txtPassword1"
                                            ErrorMessage="Please enter seeds password" Display="Dynamic" />
                                        </td>
                                    </tr>                                  
                                    <tr>
                                        <td style="width: 10%">Seed:</td>
                                        <td style="width: 20%">
                                          <asp:TextBox ID="txtSeedName2" runat="server" Text='<%# Bind("SeedName2") %>' />
                                          <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtSeedName2"
                                            ErrorMessage="Please enter seed name" Display="Dynamic" />        
                                        </td>
                                        <td>
                                            <asp:Label ID="lblDomain2" runat="server" Text="hotmail.com" />
                                        </td>
                                         
                                    </tr>
                                    <tr>
                                        <td style="width: 10%">Password:</td>
                                        <td style="width: 20%">
                                          <asp:TextBox ID="txtPassword2" TextMode="Password" runat="server" Text='<%# Bind("Password2") %>' />
                                          <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtPassword2"
                                            ErrorMessage="Please enter seeds password" Display="Dynamic" />
                                        </td>
                          
                                    </tr>
                                    <tr>
                                        <td style="width: 10%">Seed:</td>
                                        <td style="width: 20%">
                                          <asp:TextBox ID="txtSeedName3" runat="server" Text='<%# Bind("SeedName3") %>' />
                                          <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtSeedName3"
                                            ErrorMessage="Please enter seed name" Display="Dynamic" />        
                                        </td>
                                        <td>
                                            <asp:Label ID="lblDomain3" runat="server" Text="yahoo.com" />
                                        </td>
                                         
                                    </tr>
                                    <tr>
                                        <td style="width: 10%">Password:</td>
                                        <td style="width: 20%">
                                          <asp:TextBox ID="txtPassword3" TextMode="Password" runat="server" Text='<%# Bind("Password3") %>' />
                                          <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword3"
                                            ErrorMessage="Please enter seeds password" Display="Dynamic" />
                                        </td>
                          
                                    </tr>
                                     
                                    <tr>
                                        <td style="width: 10%">Seed:</td>
                                        <td style="width: 20%">
                                          <asp:TextBox ID="txtSeedName4" runat="server" Text='<%# Bind("SeedName4") %>' />
                                          <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtSeedName4"
                                            ErrorMessage="Please enter seed name" Display="Dynamic" />        
                                        </td>
                                        <td>
                                            <asp:Label ID="lblDomain4" runat="server" Text="gmx.com" />
                                        </td>
                                         
                                    </tr>
                                    <tr>
                                        <td style="width: 10%">Password:</td>
                                        <td style="width: 20%">
                                          <asp:TextBox ID="txtPassword4" TextMode="Password" runat="server" Text='<%# Bind("Password4") %>' />
                                          <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtPassword4"
                                            ErrorMessage="Please enter seeds password" Display="Dynamic" />
                                        </td>                        
                                    </tr>
                                     
                                    <tr>
                                        <td style="width: 10%">Seed:</td>
                                        <td style="width: 20%">
                                          <asp:TextBox ID="txtSeedName5" runat="server" Text='<%# Bind("SeedName5") %>' />
                                          <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtSeedName5"
                                            ErrorMessage="Please enter seed name" Display="Dynamic" />        
                                        </td>
                                        <td>
                                            <asp:Label ID="lblDomain5" runat="server" Text="aol.com" />
                                        </td>
                                         
                                    </tr>
                                    <tr>
                                        <td style="width: 10%">Password:</td>
                                        <td style="width: 20%">
                                          <asp:TextBox ID="txtPassword5" TextMode="Password" runat="server" Text='<%# Bind("Password5") %>' />
                                          <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtPassword5"
                                            ErrorMessage="Please enter seeds password" Display="Dynamic" />
                                        </td>
                          
                                    </tr>
                                     
                                </table>
                            </td>                           
                        </tr>
                        <tr>
                             
                            <td>
                                <asp:Button ID="btnPerformInsert" runat="server" Text="Insert" CommandName="PerformInsert" />
                             
                                <asp:Button ID="btnCancelInsert" runat="server" Text="Cancel" CommandName="Cancel" CausesValidation="false" />
                            </td>
                        </tr>
                    </table>
                    </fieldset>
                </InsertItemTemplate>
                                 
                </telerik:RadListView>
                </asp:Panel>
            </div>
         
    </asp:Panel>
     
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Skin="Default" runat="server" Transparency="10" EnableSkinTransparency="true">
        <asp:Label ID="lblLoading" Font-Size="large" runat="server" ForeColor="Red">Loading...</asp:Label>
    </telerik:RadAjaxLoadingPanel>
     
</asp:Content>
Marin
Telerik team
 answered on 27 Mar 2013
1 answer
121 views

Hi all,

I have used Radtreelist and add, edit in popup window.
How to set Popup window alignment Right side.
see Image1 - Normal open popup window
Image2 - I want popup window open in this format

My Sample Coding:

<tr>
                <td>
                    <telerik:RadTreeList ID="RadTreeListWork" runat="server" OnNeedDataSource="RadTreeListWork_NeedDataSource"
                        OnUpdateCommand="RadTreeListWork_UpdateCommand" OnInsertCommand="RadTreeListWork_InsertCommand"
                        ParentDataKeyNames="WorkParentId" DataKeyNames="WorkId" AutoGenerateColumns="False"
                        OnItemDataBound="RadTreeListWork_ItemDataBound" EditMode="PopUp" OnDeleteCommand="RadTreeListWork_DeleteCommand"
                        OnItemCreated="RadTreeListWork_ItemCreated" AllowMultiItemEdit="False" Culture="(Default)"
                        GridLines="None" IsItemInserted="False" ShowOuterBorders="False" Width="500px"
                        PageSize="10" AllowPaging="true" EditFormSettings-PopUpSettings-Modal="true">
                        <Columns>
                            <telerik:TreeListEditCommandColumn UniqueName="InsertCommandColumn" ButtonType="ImageButton"
                                ShowEditButton="false" HeaderStyle-Width="20px" ItemStyle-HorizontalAlign="Center" />
                            <telerik:TreeListButtonColumn CommandName="Edit" Text="Edit" UniqueName="EditCommandColumn"
                                ButtonType="ImageButton" HeaderStyle-Width="20px" ItemStyle-HorizontalAlign="Center"
                                HeaderText="EDIT" />
                            <telerik:TreeListBoundColumn DataField="WorkId" HeaderText="WorkId" ReadOnly="true"
                                UniqueName="WorkId" HeaderStyle-Width="75px" ForceExtractValue="Always" Visible="false" />
                            <telerik:TreeListBoundColumn DataField="WorkParentId" HeaderText="WorkParentId" HeaderStyle-Width="65px"
                                UniqueName="WorkParentId" ReadOnly="true" ForceExtractValue="Always" Visible="false" />
                            <telerik:TreeListBoundColumn DataField="WorkName" HeaderText="NAME" UniqueName="WorkName"
                                HeaderStyle-Width="100px">
                                <HeaderStyle Font-Bold="true" Font-Size="Small"></HeaderStyle>
                            </telerik:TreeListBoundColumn>
                            <telerik:TreeListBoundColumn DataField="WorkDescription" HeaderText="DESCRIPTION"
                                UniqueName="WorkDescription" HeaderStyle-Width="200px">
                                <HeaderStyle Font-Bold="true" Font-Size="Small"></HeaderStyle>
                            </telerik:TreeListBoundColumn>
                            <telerik:TreeListBoundColumn DataField="UnitCode" HeaderText="UNIT" UniqueName="UnitCode"
                                HeaderStyle-Width="100px">
                                <HeaderStyle Font-Bold="true" Font-Size="Small"></HeaderStyle>
                            </telerik:TreeListBoundColumn>
                            <telerik:TreeListTemplateColumn DataField="Quantity" HeaderText="QUANTITY" UniqueName="Quantity"
                                HeaderStyle-Width="100px">
                                <HeaderStyle Font-Bold="true" Font-Size="Small"></HeaderStyle>
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="Qty" Text='<%# Eval("Quantity") %>'></asp:Label>
                                </ItemTemplate>
                            </telerik:TreeListTemplateColumn>
                            <telerik:TreeListTemplateColumn DataField="Rate" HeaderText="RATE ($)" UniqueName="Rate"
                                HeaderStyle-Width="100px">
                                <HeaderStyle Font-Bold="true" Font-Size="Small"></HeaderStyle>
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="Rte" Text='<%# Eval("Rate") %>'></asp:Label>
                                </ItemTemplate>
                            </telerik:TreeListTemplateColumn>
                            <telerik:TreeListTemplateColumn DataField="Amount" HeaderText="AMOUNT ($)" UniqueName="Amount"
                                HeaderStyle-Width="100px">
                                <HeaderStyle Font-Bold="true" Font-Size="Small"></HeaderStyle>
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="Amt" Text='<%# Eval("Amount") %>'></asp:Label>
                                </ItemTemplate>
                            </telerik:TreeListTemplateColumn>
                            <telerik:TreeListButtonColumn ButtonType="ImageButton" UniqueName="DeleteCommandColumn"
                                Text="Delete" CommandArgument="Child" CommandName="Delete" HeaderStyle-Width="20px" />
                        </Columns>
                        <ValidationSettings CommandsToValidate="PerformInsert, Update" EnableValidation="true" />
                        <EditFormSettings CaptionFormatString="Create" EditFormType="Template" PopUpSettings-Width="400px">
                            <FormTemplate>
                                <div style="margin-left: 1%;">
                                    <table width="100%">
                                        <tr>
                                            <td style="height: 75px; width: 75%;">
                                                <table style="float: right;">
                                                    <tr>
                                                        <td>
                                                            <asp:Label ID="Label3" runat="server" ForeColor="Red" Text="*" Width="1px"></asp:Label>
                                                            <asp:Label ID="Label2" Text="Mandatory Field(s)" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                </table>
                                                <br />
                                                <br />
                                                <fieldset>
                                                    <legend style="margin-bottom: 10px">Work Definition</legend>
                                                    <table cellspacing="2" cellpadding="1" width="100%" border="0">
                                                        <tr>
                                                            <td align="right">
                                                                <asp:Label ID="Label1" runat="server" ForeColor="Red" Text="*" Width="1px"></asp:Label>
                                                                Code :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox Width="90%" ID="WorkName" AutoCompleteType="Disabled" runat="server"
                                                                    MaxLength="5" Text='<%# Bind("WorkName") %>'></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top" align="right">
                                                                <asp:Label ID="Label4" runat="server" ForeColor="Red" Text="*" Width="1px"></asp:Label>
                                                                Description :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox Width="90%" ID="WorkDescription" AutoCompleteType="Disabled" runat="server"
                                                                    MaxLength="300" TextMode="MultiLine" Height="100px" Text='<%# Bind("WorkDescription") %>'></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top" align="right">
                                                                Unit :
                                                            </td>
                                                            <td>
                                                                <telerik:RadComboBox runat="server" ID="UnitCode" Skin="Vista" AppendDataBoundItems="True"
                                                                    AutoPostBack="True" DataTextField="UnitName" DataValueField="UnitCode" Height="200px"
                                                                    OnSelectedIndexChanged="UnitCode_SelectedIndexChanged">
                                                                </telerik:RadComboBox>
                                                            </td>
                                                            <%--<td>
                                                                <telerik:RadComboBox runat="server" ID="UnitCode">
                                                                </telerik:RadComboBox>
                                                            </td>--%>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top" align="right">
                                                                <asp:Label ID="Label9" runat="server" ForeColor="Red" Text="*" Width="1px" Visible="false"></asp:Label>
                                                                Quantity :
                                                            </td>
                                                            <td>
                                                                <telerik:RadNumericTextBox Width="50%" ID="Quantity" AutoCompleteType="Disabled"
                                                                    MaxLength="6" FocusedStyle-BackColor="Lavender" runat="server" Text='<%# Bind("Quantity") %>'
                                                                    onkeydown="return (event.keyCode!=13);" ReadOnly="true">
                                                                    <NumberFormat GroupSeparator="" DecimalDigits="0" AllowRounding="true" KeepNotRoundedValue="false" />
                                                                    <IncrementSettings InterceptMouseWheel="false" InterceptArrowKeys="false" />
                                                                    <ClientEvents OnKeyPress="KeyPress" />
                                                                </telerik:RadNumericTextBox>
                                                                <%--<telerik:RadListBox runat="server" ID="UnitNo">
                                                                </telerik:RadListBox>--%>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top" align="right">
                                                                <asp:Label ID="Label10" runat="server" ForeColor="Red" Text="*" Width="1px" Visible="false"></asp:Label>
                                                                Rate ($):
                                                            </td>
                                                            <td>
                                                                <telerik:RadNumericTextBox Width="50%" ID="Rate" AutoCompleteType="Disabled" MaxLength="6"
                                                                    ReadOnly="true" FocusedStyle-BackColor="Lavender" runat="server" Text='<%# Bind("Rate") %>'
                                                                    onkeydown="return (event.keyCode!=13);">
                                                                    <NumberFormat GroupSeparator="" DecimalDigits="0" AllowRounding="true" KeepNotRoundedValue="false" />
                                                                    <IncrementSettings InterceptMouseWheel="false" InterceptArrowKeys="false" />
                                                                    <ClientEvents OnKeyPress="KeyPress" />
                                                                </telerik:RadNumericTextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top" align="right">
                                                                Amount ($):
                                                            </td>
                                                            <td>
                                                                <telerik:RadNumericTextBox Width="50%" ID="Amount" AutoCompleteType="Disabled" MaxLength="6"
                                                                    FocusedStyle-BackColor="Lavender" runat="server" Text='<%# Bind("Amount") %>'
                                                                    onkeydown="return (event.keyCode!=13);" ReadOnly="true">
                                                                    <NumberFormat GroupSeparator="" DecimalDigits="0" AllowRounding="true" KeepNotRoundedValue="false" />
                                                                    <IncrementSettings InterceptMouseWheel="false" InterceptArrowKeys="false" />
                                                                    <ClientEvents OnKeyPress="KeyPress" />
                                                                </telerik:RadNumericTextBox>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </fieldset>
                                            </td>
                                        </tr>
                                    </table>
                                    <table>
                                        <tr>
                                            <td>
                                                <telerik:RadButton ID="btnUpdate" Text='<%# (Container is TreeListEditFormInsertItem) ? "Insert" : "Update" %>'
                                                    runat="server" CommandName='<%# (Container is TreeListEditFormInsertItem) ? "PerformInsert" : "Update" %>'
                                                    Icon-PrimaryIconCssClass="rbOk">
                                                </telerik:RadButton>
                                                &nbsp;
                                                <telerik:RadButton ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                                    CommandName="Cancel" Icon-PrimaryIconCssClass="rbCancel">
                                                </telerik:RadButton>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </FormTemplate>
                            <PopUpSettings Modal="True"></PopUpSettings>
                        </EditFormSettings>
                    </telerik:RadTreeList>
                </td>
            </tr>

Advance & Thanks,
Ansari.
Andrey
Telerik team
 answered on 27 Mar 2013
4 answers
1.3K+ views
Hi all member,
I want Make enter key behave like tab key .in my form there are multi control like  RadInput and Rad grid and RadButton ,how to Make enter key behave like tab key which go to next control , not fire default button click when it not focus
please help to me 
thanks
Vasil
Telerik team
 answered on 27 Mar 2013
3 answers
76 views
Have you changed the default z-index in 2013Q1?

I had a css overlay "eu cookie warning" which is now obscured by a radpanelbar since upgrading to 2013Q1.

I have fixed this by explicitly setting a very high z-index for the overlay, which is fine.

But can you confirm whether this is a bug, or do you have a new updated list of default z-indices for all controls.
Kate
Telerik team
 answered on 27 Mar 2013
4 answers
139 views
I'm trying to have a radgrid that uses the needdatasource event to allow filtering/sorting, but how do I keep client side changes made to the grid in between loads?

For example, the page loads, then a user clicks a button which changes the selected row on the client side. The user then sorts/filters and the changes are gone. I would like those changes to be preserved. The changes are actually committed to the server on another button click. Is this possible?
Shawn
Top achievements
Rank 1
 answered on 27 Mar 2013
2 answers
435 views
Hi, I have a Panel Bar on a page that will display different errors for different reasons (from a query string).
I want to tell the Panel Bar (On Page Load - a protected void will be called) to Expand or Enable certain RadPanelItem(s).

Code Behind:
protected void LoadPanelItems()
{
    RadPanelItem expired = rdPnlStatusError.FindItemByValue("ExpiredPassword");
    RadPanelItem locked = rdPnlStatusError.FindItemByValue("AccountLocked");
    RadPanelItem invalid = rdPnlStatusError.FindItemByValue("InvalidLogin");
    RadPanelItem forgot = rdPnlStatusError.FindItemByValue("ForgotPassword");
     
    var errCode = GetError(Request.QueryString["eCode"]);
    switch (errCode)
    {
        case "ValidExpired":
            expired.Expanded = true;
            locked.Enabled = false;
            invalid.Enabled = false;
            forgot.Enabled = false;
            break;
        case "AccountLocked":
            locked.Expanded = true;
            expired.Enabled = false;
            invalid.Enabled = false;
            forgot.Enabled = false;
            break;
        case "Invalid":
            invalid.Expanded = true;
            locked.Enabled = false;
            expired.Enabled = false;
            forgot.Enabled = false;
            break;
        case "ForgotPassword":
            forgot.Expanded=true;
            invalid.Enabled = false;
            locked.Enabled = false;
            expired.Enabled = false;
            break;
    }

It doesn't work - is there any way I CAN get that to work?
Christoph
Top achievements
Rank 1
 answered on 27 Mar 2013
2 answers
111 views
Hello,

I am not sure if this is a Window issue or a DropDownTree issue, so I am just putting this here.

I am using a Window as a modal popup set to AutoSize based on the initial content.  Inside of this I have several controls, of them the DropDownTree.  When the DropDownTree is expanded it causes the Window to force scrollbars to appear both Vertically and Horizontally.  I am looking for one of two possible solutions to correct this so there are no scrollbars on the Window: 1) Allow the DropDownTree to expand outside of the Window instead of inside of it.  2) Have the DropDownTree shift when expanded so it operates more like the ComboBox where it is aware of the Window's frame and adjusts its height accordingly, and then places the scrollbar inside the tree instead of the Window.

Thanks for the help.
Steve
Top achievements
Rank 1
 answered on 27 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?