ImageButtons for Auto-Generated Command Columns

4 posts, 0 answers
  1. bslaght
    bslaght avatar
    184 posts
    Member since:
    Jun 2006

    Posted 09 Apr 2008 Link to this post

    I am using Auto-Generated columns for Edit/Delete on my grid.  How do I set them to imagebutton rather than linkbutton?


    I am sure this is simple, but I can find it.
  2. Kia
    Kia avatar
    38 posts
    Member since:
    Mar 2008

    Posted 10 Apr 2008 Link to this post

    Look under MasterTableView - EditFormSettings - EditColumn - ButtonType

    or in source view:

            <MasterTableView> 
                ...  
                <EditFormSettings> 
                    <EditColumn ButtonType="ImageButton">  
                    </EditColumn> 
                </EditFormSettings> 
                ...  
            </MasterTableView> 
     

    But that didn't work for me when I used AutoGenerate option. I had to create my own buttons with images as columns:
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" ...> 
                    </telerik:GridEditCommandColumn> 
                    <telerik:GridButtonColumn ConfirmText="Are you sure you want to Delete this Order?" ButtonType="ImageButton" ...> 
                    </telerik:GridButtonColumn> 
     

    Kia
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Filipe
    Filipe avatar
    3 posts
    Member since:
    Jul 2009

    Posted 02 May 2011 Link to this post

    Hi im using Auto-Generated columns for Edit, Cancel and Update on my grid

    example

        <telerik:RadGrid runat="server" ID="gridprecospais" SkinID="YKK" AutoGenerateEditColumn="True"
                  onneeddatasource="gridprecospais_NeedDataSource"
                onitemcreated="gridprecospais_ItemCreated"
                onitemcommand="gridprecospais_ItemCommand" AllowPaging="true" PageSize="40">

        
        <MasterTableView DataKeyNames="Cod_Fornecedor" AutoGenerateColumns="false" EditMode="InPlace"  CommandItemSettings-AddNewRecordText="Adiconar Registo"   
                CommandItemSettings-RefreshText="Refrescar"
                EditFormSettings-EditColumn-CancelText="Cancelar"   
                EditFormSettings-EditColumn-EditText="Modificar"
                EditFormSettings-EditColumn-UpdateText="Actualizar"   >
    <Columns>
    </telerik:GridBoundColumn>
        <telerik:GridNumericColumn DecimalDigits="4" DataType="System.Decimal" NumericType="Number"  UniqueName="Ex_Rate" HeaderText="Ex_Rate" DataField="Ex_Rate"></telerik:GridNumericColumn>
         <telerik:GridNumericColumn DataType="System.Decimal" DataFormatString="{0:N4}" UniqueName="Insurance" HeaderText="Insurance" DataField="Insurance">
        </telerik:GridNumericColumn>
        <telerik:GridNumericColumn UniqueName="Allowance" HeaderText="Allowance" DataField="Allowance">
        </telerik:GridNumericColumn>
    </Columns>

    </telerik:RadGrid>



    But the text of the update, cancel, edit   does not change for example from Cancel to Cancelar or from Update to Actualizar
  5. Martin
    Admin
    Martin avatar
    811 posts

    Posted 05 May 2011 Link to this post

    Hello Filipe,

    Please review the following help article:

    Localizing edit command column

    I hope this helps.

    Kind regards,
    Martin
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top