Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
151 views
Hi All

I am a little bit confused about the difference between RadFormDecorator and RadSkinManager ?

The main functionality of both of them is to apply a skin to other ASP.NET and Rad Controls on the page.

So, What is the difference ?!

Regards
Petio Petkov
Telerik team
 answered on 06 Sep 2010
1 answer
121 views
Hi guys

Trying to complete an upgrade from Q2 2009, and need to change the hover color
from the green that goes with the Black skin on a Button element.

I have this in my css for the text generally, but it does not seem to affect the hover color now.
How do I do this with the new version?

a.radfd_Black span span { color: #A49261 !important; }

Thanks

Clive
Petio Petkov
Telerik team
 answered on 06 Sep 2010
1 answer
76 views
Hi guys,

I have a row of information across the top of the page that includes some debug text, login name, the top menu item, and the login status. I want to keep everything in that order from left to right. However, the RadMenu always places itself on the end at the right.

The menu was showing up on the extreme left (much worse!) before I found this trick:

        div.RadMenu_Web20
        {
            float: right;
        }

How do I get the menu to stay in the correct order? The relevant markup is included below.

Thanks,

Ken

<div class="utilitylinks">
    <asp:Literal ID="Literal1" runat="server"></asp:Literal>
    <asp:Label EnableViewState="true" ID="lblLoginName" runat="server"></asp:Label>
    <telerik:RadMenu ID="mnuSettings" runat="server" CssClass="utilitylinks" EnableEmbeddedSkins="false">
        <Items>
            <telerik:RadMenuItem runat="server" PostBack="False" ForeColor="White" Text="Settings">
                <Items>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/setmyrole.aspx" PostBack="False"
                        SelectedCssClass="uppermenuitemsfocussed" FocusedCssClass="uppermenuitemsfocussed"
                        CssClass="uppermenuitems" Text="Debug: Set My Role" />
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/datadownload.aspx" PostBack="False"
                        CssClass="uppermenuitems" Text="Data Download" />
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/delegateaccess.aspx" PostBack="False"
                        CssClass="uppermenuitems" Text="Delegate Access" />
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/managedelegations.aspx" PostBack="False"
                        CssClass="uppermenuitems" Text="Manage Delegations" />
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/redeemtoken.aspx" PostBack="False"
                        CssClass="uppermenuitems" Text="Redeem Token" />
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/bizactivities.aspx" PostBack="False"
                        CssClass="uppermenuitems" Text="Business Profile Settings" />
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/setbusactivity.aspx" PostBack="False"
                        CssClass="uppermenuitems" Text="Set Business Activity" />
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/accounttypes.aspx" PostBack="False"
                        CssClass="uppermenuitems" Text="Accounts" />
                </Items>
            </telerik:RadMenuItem>
        </Items>
    </telerik:RadMenu>
    <asp:LoginStatus EnableViewState="true" CssClass="utilitylinks" ID="LoginStatus2"
        runat="server" LogoutAction="Redirect" LogoutPageUrl="logout.aspx" />
</div>
Kalina
Telerik team
 answered on 06 Sep 2010
1 answer
193 views
I have an aspx page with a Grid. Each row on grid is identified by an id (idAzienda).
Each row on grid has also a column with a radComboBox (RepartoRadComboBox). I want this radComboBox to have a datasource (ObjectDataSourceRepartiAzienda) dependent on row parameter idAzienda.
How can I set this "dynamical" datasource?

My grid is:
<telerik:RadGrid ID="RadGridAziendeForUser" runat="server" DataSourceID="ObjectDataSourceAziendeUtente"
                EnableEmbeddedSkins="False" GridLines="None" Skin="MachinaWeb" AllowAutomaticUpdates="True"
                AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowMultiRowSelection="True"
                OnItemCommand="RadGridAziendeForUser_ItemCommand" OnItemDataBound="RadGridAziendeForUser_ItemDataBound"
                AllowPaging="True" PageSize="5">
                <ClientSettings EnablePostBackOnRowClick="True" Resizing-AllowColumnResize="false">
                    <Selecting AllowRowSelect="True" />
                </ClientSettings>
                <MasterTableView AutoGenerateColumns="False" DataSourceID="ObjectDataSourceAziendeUtente"
                    EditMode="InPlace" CommandItemDisplay="Top" DataKeyNames="IdUtente,IdAzienda,TimeStamp">
                    <CommandItemTemplate>
                        <div style="text-align: center; width: 95%; float: left;">
                            <asp:Label ID="LabelAziendeForUserTxt" runat="server" Text='<%$ Resources:Resource, AziendePerUtente_M %>'></asp:Label></div>
                        <div style="float: right; width: 5%; text-align: right;">
                            <asp:ImageButton ID="NewAziendaButton" runat="server" CausesValidation="False" CommandName="InitInsert"
                                ImageUrl="~/Images/AddRecord.png" Text="<%$ Resources:Resource, Inserisci %>" />
                        </div>
                    </CommandItemTemplate>
                    <Columns>
                        <telerik:GridEditCommandColumn ButtonType="ImageButton" CancelImageUrl="~/Images/ImagesGrid/Cancel.gif"
                            EditImageUrl="~/Images/ImagesGrid/Edit.gif" UpdateImageUrl="~/Images/ImagesGrid/Update.gif"
                            InsertImageUrl="~/Images/ImagesGrid/Update.gif" UniqueName="EditCommandColumn"
                            ItemStyle-Width="40px">
                            <ItemStyle Width="40px" />
                        </telerik:GridEditCommandColumn>
                        <telerik:GridBoundColumn DataField="IdUtente" DataType="System.Int64" HeaderText="IdUtente"
                            ReadOnly="True" SortExpression="IdUtente" UniqueName="IdUtente" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="IdUtenteAsp" HeaderText="IdUtenteAsp" SortExpression="IdUtenteAsp"
                            UniqueName="IdUtenteAsp" DataType="System.Guid" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="UserName" HeaderText="UserName" ReadOnly="True"
                            SortExpression="UserName" UniqueName="UserName" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="IdCultura" DataType="System.Int64" HeaderText="IdCultura"
                            ReadOnly="True" SortExpression="IdCultura" UniqueName="IdCultura" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn>
                            <HeaderTemplate>
                                <asp:Label ID="Label46" runat="server" Text='<%$ Resources:Resource, Azienda %>'
                                    Width="130px"></asp:Label></HeaderTemplate>
                            <EditItemTemplate>
                                <telerik:RadComboBox ID="AziendaRadComboBox" runat="server" DataSourceID="ObjectDataSourceAzienda"
                                    DataTextField="NomeAzienda" DataValueField="IdAzienda" SelectedValue='<%# Bind("IdAzienda") %>'
                                    Width="120px" Enabled="false" />
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label47" runat="server" Width="120px" Text='<%# Bind("Azienda") %>'></asp:Label></ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn>
                            <HeaderTemplate>
                                <asp:Label ID="Label48" runat="server" Text='<%$ Resources:Resource, Cultura %>'
                                    Width="80px"></asp:Label></HeaderTemplate>
                            <EditItemTemplate>
                                <telerik:RadComboBox ID="CulturaRadComboBox" runat="server" DataSourceID="ObjectDataSourceCultura"
                                    DataTextField="Cultura" DataValueField="IdCultura" SelectedValue='<%# Bind("IdCultura") %>'
                                    Width="70px" AppendDataBoundItems="true" />
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label50" runat="server" Width="70px" Text='<%# Bind("Cultura") %>'></asp:Label></ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn>
                            <HeaderTemplate>
                                <asp:Label ID="Label49" runat="server" Text='<%$ Resources:Resource, Gruppo %>' Width="130px"></asp:Label></HeaderTemplate>
                            <EditItemTemplate>
                                <telerik:RadComboBox ID="GruppoRadComboBox" runat="server" DataSourceID="ObjectDataSourceGruppoUtente"
                                    DataTextField="Nome" DataValueField="IdGruppoUtente" SelectedValue='<%# Bind("IdGruppo") %>'
                                    Width="120px" AppendDataBoundItems="true" />
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label51" runat="server" Text='<%# Bind("Gruppo") %>' Width="120px"></asp:Label></ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn>
                            <HeaderTemplate>
                                <asp:Label ID="Label52" runat="server" Text='<%$ Resources:Resource, Stabilimento %>'
                                    Width="130px"></asp:Label></HeaderTemplate>
                            <EditItemTemplate>
                                <telerik:RadComboBox ID="StabilimentoRadComboBox" runat="server" DataSourceID="ObjectDataSourceRepartiAzienda"
                                    DataTextField="IdReparto" DataValueField="IdAzienda" Width="120px"
                                    AppendDataBoundItems="True" />
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label53" runat="server" Text='<%# Bind("Stabilimento") %>' Width="120px"></asp:Label></ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn UniqueName="RepartoRadComboBoxTC">
                            <HeaderTemplate>
                                <asp:Label ID="Label54" runat="server" Text='<%$ Resources:Resource, Reparto %>'
                                    Width="130px"></asp:Label></HeaderTemplate>
                            <EditItemTemplate>
                                <telerik:RadComboBox ID="RepartoRadComboBox" runat="server" Width="120px" AppendDataBoundItems="true" />
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label55" runat="server" Text='<%# Bind("Settore") %>' Width="120px"></asp:Label></ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridButtonColumn CommandName="Delete" ImageUrl="~/Images/ImagesGrid/Delete.gif"
                            UniqueName="DeleteColumn" ConfirmText="Do you really want to delete the selected row?"
                            ButtonType="ImageButton" />
                    </Columns>
                    <EditFormSettings>
                        <EditColumn>
                        </EditColumn>
                    </EditFormSettings>
                </MasterTableView><FilterMenu EnableEmbeddedSkins="False">
                </FilterMenu>
                <HeaderContextMenu EnableEmbeddedSkins="False">
                </HeaderContextMenu>
            </telerik:RadGrid>

DataSources are:
<asp:ObjectDataSource ID="ObjectDataSourceRepartiAzienda" runat="server"
                SelectMethod="getAllByAzienda" TypeName="MachinaWeb.Services.BO_Reparto">
                <SelectParameters>
                    <asp:Parameter Name="idAzienda" Type="Int64" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <asp:ObjectDataSource ID="ObjectDataSourceAziendeUtente" runat="server"
                DataObjectTypeName="MachinaWeb.Services.BO_Utente" DeleteMethod="deleteAziendaUtente"
                EnablePaging="True" InsertMethod="insertAziendaUtente" SelectMethod="getUtentiFromIdUtenteAsp"
                TypeName="MachinaWeb.Services.BO_Utente" UpdateMethod="updateAziendaUtente" MaximumRowsParameterName="maxRows"
                StartRowIndexParameterName="startRows" SelectCountMethod="GetUtentiCount" OnUpdated="ObjectDataSourceAziendeUtente_Updated">
                <SelectParameters>
                    <asp:ControlParameter ControlID="HiddenFieldGuidUtenteAspSelezionatoOnRadGridAspnetUsers"
                        DbType="Guid" Name="idUtenteAsp" PropertyName="Value" />
                    <asp:ControlParameter ControlID="HiddenFieldIdCultura" Name="idCultura" PropertyName="Value"
                        Type="Int64" />
                </SelectParameters>
            </asp:ObjectDataSource>

Code for business object reparto is:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DatiMachinaWebEntityFramework;
using System.Data.Objects;
 
namespace MachinaWeb.Services
{
    public class BO_Reparto
    {
        public long IdReparto { get; set; }
        public string CodReparto { get; set; }
        public string Reparto { get; set; }
        public long IdStabilimento { get; set; }
        public string CodStabilimento { get; set; }
        public string Stabilimento { get; set; }
        public long  IdAzienda { get; set; }
        public string codice_reparto_aux  { get; set; }
        public string Denominazione { get; set; }
        public long IdResponsabile { get; set; }
        public string  Telefono { get; set; }
        public long IdCdc { get; set; }
        public long IdTurno { get; set; }
        public Int16?   RepartiPosizione { get; set; }
        public Boolean  EscludeDomenica { get; set; }
        public Boolean  EscludeSabato { get; set; }
        public Boolean EscludeFestivi { get; set; }
        public long IdCitta { get; set; }
        public long IdVia { get; set; }
        public string Indirizzo { get; set; }
        public String NCivico { get; set; }
        public string Interno { get; set; }
        public string Telefono2 { get; set; }
        public string Fax { get; set; }
        public string Internet { get; set; }
        public string Email { get; set; }
        public long? IdCommessa { get; set; }
        public long IdUtente { get; set; }
        public DateTime DataCreazione { get; set; }
        public DateTime DataAggiornamento { get; set; }
        public string  Note_memo  { get; set; }
        public long IdSicurezza { get; set; }
        public DateTime? DataDismissione { get; set; }
        public byte[] TimeStamp { get; set; }
 
        public BO_Reparto()
        {
            IdReparto = -1;
            CodReparto = String.Empty;
            Reparto = String.Empty;
        }
 
        public BO_Reparto(Reparti_Get_ByIdAzienda_Result repSp)
        {
            IdReparto = repSp.IdReparto;
            Reparto = repSp.Reparto;
            CodReparto = repSp.CodReparto;
            IdStabilimento = repSp.IdStabilimento;
            CodStabilimento = repSp.CodStabilimento;
            Stabilimento = repSp.Denominazione;
              
        }
 
        public List<BO_Reparto> getAllByAzienda(long idAzienda)
        {
            List<BO_Reparto> lista = new List<BO_Reparto>();
 
            using (DatiMachinaWeb_BeniPianiInterventiEntities context = new DatiMachinaWeb_BeniPianiInterventiEntities())
            {
                IEnumerable<Reparti_Get_ByIdAzienda_Result> repartiSp = context.Reparti_Get_ByIdAzienda(idAzienda);
 
                foreach (Reparti_Get_ByIdAzienda_Result repSp in repartiSp)
                {
                    lista.Add(new BO_Reparto(repSp));
                }
            }
 
            return lista;
        }
 
        public List<BO_Reparto> getAllByAzienda(long idAzienda, long maxRows, long startRows)
        {
            List<BO_Reparto> lista = new List<BO_Reparto>();
 
            using (DatiMachinaWeb_BeniPianiInterventiEntities context = new DatiMachinaWeb_BeniPianiInterventiEntities())
            {
                IEnumerable<Reparti_Get_ByIdAzienda_Result> repartiSp = context.Reparti_Get_ByIdAzienda(idAzienda).Skip((int)startRows).Take((int)maxRows);
 
                foreach (Reparti_Get_ByIdAzienda_Result repSp in repartiSp)
                {
                    lista.Add(new BO_Reparto(repSp));
                }
            }
 
            return lista;
        }
 
        public List<BO_Reparto> getRepartiExample()
        {
            List<BO_Reparto> lista = new List<BO_Reparto>();
            long idAzienda = 1;
 
            using (DatiMachinaWeb_BeniPianiInterventiEntities context = new DatiMachinaWeb_BeniPianiInterventiEntities())
            {
                IEnumerable<Reparti_Get_ByIdAzienda_Result> repartiSp = context.Reparti_Get_ByIdAzienda(idAzienda).Take(5);
 
                foreach (Reparti_Get_ByIdAzienda_Result repSp in repartiSp)
                {
                    lista.Add(new BO_Reparto(repSp));
                }
            }
 
            return lista;
        }
 
        public int GetRepartiCount(long idAzienda)
        {
            using (DatiMachinaWeb_BeniPianiInterventiEntities context = new DatiMachinaWeb_BeniPianiInterventiEntities())
            {
                int repartiCount = (from r in context.Reparti_cli_for
                                   where   r.IdAzienda== idAzienda
                                   select r.IdReparto ).Count();
 
                return repartiCount;
            }
        }
        public BO_Reparto(Reparto_GetByIdReparto_Result getRepartoByIdRepartoResult, long IdReparto)
        {
            using (DatiMachinaWeb_AccessoEntities context = new DatiMachinaWeb_AccessoEntities())
            {
                IdUtente = getRepartoByIdRepartoResult.IdUtente;
                IdAzienda = getRepartoByIdRepartoResult.IdAzienda;
                IdStabilimento = getRepartoByIdRepartoResult.IdStabilimento;
                CodReparto = getRepartoByIdRepartoResult.CodReparto;
                codice_reparto_aux = getRepartoByIdRepartoResult.codice_reparto_aux;
                IdReparto = getRepartoByIdRepartoResult.IdReparto;
                Denominazione = getRepartoByIdRepartoResult.Denominazione ;
                IdResponsabile = getRepartoByIdRepartoResult.IdResponsabile;
                IdVia = getRepartoByIdRepartoResult.IdVia;
                IdCitta = getRepartoByIdRepartoResult.IdCitta;
                Indirizzo = getRepartoByIdRepartoResult.Indirizzo;
                NCivico=getRepartoByIdRepartoResult.NCivico;
                Interno=getRepartoByIdRepartoResult.Interno;
                IdCdc = getRepartoByIdRepartoResult.IdCdc;
                IdTurno = getRepartoByIdRepartoResult.IdTurno;
                RepartiPosizione = getRepartoByIdRepartoResult.RepartiPosizione;
                EscludeDomenica = getRepartoByIdRepartoResult.EscludeDomenica;
                EscludeSabato = getRepartoByIdRepartoResult.EscludeSabato;
                EscludeFestivi = getRepartoByIdRepartoResult.EscludeFestivi;
                Telefono = getRepartoByIdRepartoResult.Telefono;
                Telefono2 = getRepartoByIdRepartoResult.Telefono2;
                Fax = getRepartoByIdRepartoResult.Fax;
                IdCommessa = getRepartoByIdRepartoResult.IdCommessa;
                DataCreazione = getRepartoByIdRepartoResult.DataCreazione;
                DataAggiornamento = getRepartoByIdRepartoResult.DataAggiornamento;
                Email = getRepartoByIdRepartoResult.Email;
                Internet = getRepartoByIdRepartoResult.Internet;
                Note_memo  = getRepartoByIdRepartoResult.Note_memo;
                IdSicurezza = getRepartoByIdRepartoResult.IdSicurezza;
                DataDismissione = getRepartoByIdRepartoResult.DataDismissione;
                TimeStamp = getRepartoByIdRepartoResult.TimeStamp;
            }
 
        }
        public BO_Reparto getRepartoByIdReparto(long IdReparto)
        {
            using (DatiMachinaWeb_BeniPianiInterventiEntities context = new DatiMachinaWeb_BeniPianiInterventiEntities())
            {
                Reparto_GetByIdReparto_Result repartosp = context.Reparto_GetByIdReparto(IdReparto).FirstOrDefault();
                return new BO_Reparto(repartosp,IdReparto );
            }
        }
    }
     
    //public BO_Utente getUtenteFromIdUtente(long idUtente, long idCultura)
    //    {
    //        using (DatiMachinaWeb_AccessoEntities context = new DatiMachinaWeb_AccessoEntities())
    //        {
    //            GetUtenteFromIdUtente_Result utenteSp = context.GetUtenteFromIdUtente(idUtente).FirstOrDefault();
    //            return new BO_Utente(utenteSp, idCultura);
    //        }
    //    }
}
Princy
Top achievements
Rank 2
 answered on 06 Sep 2010
1 answer
149 views
Hello,

In our application, we are accessing the currently selected records of the grid for various different reasons.  This is a basic requirement.
We currently have a checkmark that will auto-select all of the data rows across all grid pages.  This works fine.
Where the trouble starts is when we enable grid filtering (the built-in one on the RadGrid's UI).

The problem is that we are not able to access the FILTERED resultset.
Can you provide a code sample that will show how to access this filtered data?

Thank You,

glenn.sobrian@wachovia.com
Pavlina
Telerik team
 answered on 06 Sep 2010
4 answers
187 views
I am populating a RadTreeView through code and adding an image as a child node using the node.Controls.Add statement.  The tree will display fine. including the image.  When I click on a node, the image will disappear and be replaced with the node.text information.

I thought this was a problem involving postback and usercontrols, but I see the same behavior when the radtreeview is embedded inside a radajaxpanel control.

It seems odd to me that only the image would disappear while the rest of the tree nodes are unchanged.

Any help would be appreciated.

Thanks
Yana
Telerik team
 answered on 06 Sep 2010
1 answer
119 views


hi
i use these code for gridView
            if (e.Item.ItemType == DataControlRowType.Header || (e.Item.NamingContainer as GridView).Rows.Count == 0)
               return;

            GridViewRow row = this.GridView1.Item[(e.Item.NamingContainer as GridView).Rows.Count - 1];
  when i used for Radgrid I Have Error
Please Help me

Shinu
Top achievements
Rank 2
 answered on 06 Sep 2010
1 answer
140 views
Hi,

AllowScroll is set to True so i can scroll vertical. How can i set a dynamic scrollheight? I need the vertical height of grid to be almost as the height of the browser. Any suggestions on this?

Regards
daaland1972
Pavlina
Telerik team
 answered on 06 Sep 2010
1 answer
80 views
Hi,

Is there any way that I can bind the values that were saved to destination radlistbox and the items that in the destination radlistbox not in the source radlistbox.

Thanks,
Tom
Yana
Telerik team
 answered on 06 Sep 2010
1 answer
260 views
Hello,

I need to display progress bar on grid loading.

i did following code still its not showing any progressbar and page wud get postback.

M i missing anything.

 <table border="0" cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                                <td align="center" valign="top">
                                        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="gridEstVAl">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="gridEstVAl" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
                                 <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
                                    <telerik:RadGrid runat="server" ID="gridEstVAl" AutoGenerateColumns="False" Width="100%"
                                        PageSize="20" GridLines="None" AutoGenerateEditColumn="false" AllowMultiRowSelection="false"
                                        EnableViewState="true" AllowMultiRowEdit="false" AllowSorting="true" OnItemDataBound="gridEstVAl_ItemDataBound"
                                        OnNeedDataSource="gridEstVAl_NeedDataSource" AllowPaging="True" OnPageIndexChanged="gridEstVAl_PageIndexChanged"
                                        OnUpdateCommand="gridEstVAl_UpdateCommand">
                                        <HeaderContextMenu EnableAutoScroll="True">
                                        </HeaderContextMenu>
                                        <MasterTableView DataKeyNames="DeliveryId,CanDeliver" EditMode="PopUp" ShowHeader="true"
                                            AutoGenerateColumns="false" EnableViewState="true">
                                            <NoRecordsTemplate>
                                                Records Not Found</NoRecordsTemplate>
                                            <SortExpressions>
                                                <telerik:GridSortExpression FieldName="Age" SortOrder="Descending" />
                                            </SortExpressions>
                                            <EditFormSettings EditFormType="Template" PopUpSettings-Modal="true" CaptionFormatString="Update Estimate Validity Details"
                                                PopUpSettings-Height="400px" PopUpSettings-Width="550px" EditColumn-ItemStyle-Font-Bold="true"
                                                EditColumn-ItemStyle-ForeColor="Red">
                                                <FormTemplate>
                                                    <table border="0">
                                                        <tr>
                                                            <td align="left">
                                                                <label id="lblCanDel" title="Can Deliver" class="Label-Normal">
                                                                    Can Deliver
                                                                </label>
                                                                &nbsp;&nbsp;
                                                                <asp:DropDownList ID="drdDeliver" runat="server" CssClass="grid-text" Width="50px">
                                                                    <asp:ListItem Value="1">YES</asp:ListItem>
                                                                    <asp:ListItem Value="0">NO</asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="left" valign="middle">
                                                                <label id="lblComm" title="Comment" class="Label-Normal">
                                                                    Comment
                                                                </label>
                                                                &nbsp;&nbsp;&nbsp;&nbsp;
                                                                <asp:TextBox ID="txtcomm" runat="server" TextMode="MultiLine" Width="400px" Height="250px"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <br />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="left">
                                                                <asp:Button ID="btnUpdate" CommandName="Update" Text="Update" runat="server" CssClass="button" />&nbsp;&nbsp;
                                                                 <asp:Button ID="btnCancel" CommandName="Cancel" Text="Cancel" runat="server" CssClass="button" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </FormTemplate>
                                                <EditColumn ItemStyle-ForeColor="Red">
                                                </EditColumn>
                                            </EditFormSettings>
                                            <Columns>
                                                <telerik:GridBoundColumn DataField="Invcoid" UniqueName="Invcoid" HeaderText="CO.ID"
                                                    HeaderStyle-HorizontalAlign="Center">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                                                </telerik:GridBoundColumn>
                                                <telerik:GridEditCommandColumn UniqueName="Edit" HeaderText="Update" ButtonType="LinkButton"
                                                    UpdateText="Update" CancelText="Cancel" EditText="Edit">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </telerik:GridEditCommandColumn>
                                            </Columns>
                                        </MasterTableView>
                                        <ClientSettings>
                                            <Selecting AllowRowSelect="false"/>
                                            <ClientEvents OnPopUpShowing="PopUpShowing"/>
                                        </ClientSettings>
                                    </telerik:RadGrid>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <br />
                                </td>
                            </tr>
                        </table>
Pavlina
Telerik team
 answered on 06 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?