This is a migrated thread and some comments may be shown as answers.

ImageButtons for Auto-Generated Command Columns

3 Answers 74 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 2
Brett asked on 09 Apr 2008, 08:30 PM
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.

3 Answers, 1 is accepted

Sort by
0
Kia
Top achievements
Rank 1
answered on 10 Apr 2008, 01:05 PM

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
0
Filipe
Top achievements
Rank 1
answered on 02 May 2011, 03:25 PM
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
0
Martin
Telerik team
answered on 05 May 2011, 09:47 AM
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.

Tags
Grid
Asked by
Brett
Top achievements
Rank 2
Answers by
Kia
Top achievements
Rank 1
Filipe
Top achievements
Rank 1
Martin
Telerik team
Share this question
or