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

GridDropDownColumn Problem in edit mode

3 Answers 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Silvio Silva Junior
Top achievements
Rank 2
Silvio Silva Junior asked on 01 Jun 2010, 07:30 PM
Hello guys.

I have a grid with a GridDropDownColumn and a GridTemplateColumn with a upload control in editItem.

This grid is in a RadAjaxPanel, and, in edit mode, my dropdown is like disabled and the upload control doesn't appear.

But, if I remove the grid from RadAjaxPanel, the controls works fine.

Here is my code:
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"
            </telerik:RadAjaxLoadingPanel> 
            <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"
    <telerik:RadGrid ID="gdvPecas" runat="server" AllowPaging="True"  
        AllowSorting="True" AutoGenerateColumns="False" GridLines="None"  
        Width="70%" onneeddatasource="gdvPecas_NeedDataSource"  
                    onitemdatabound="gdvPecas_ItemDataBound"  
        onupdatecommand="gdvPecas_UpdateCommand"
        <ClientSettings EnableRowHoverStyle="true" /> 
        <HeaderContextMenu EnableAutoScroll="True"
        </HeaderContextMenu> 
        <MasterTableView CommandItemDisplay="None"  
            CommandItemSettings-AddNewRecordText="Adicionar nova peça"  
            DataKeyNames="pro_int_codigo"  
            GridLines="None"  
            NoMasterRecordsText="Nenhuma peça cadastrada"  
            Width="100%"
            <CommandItemSettings AddNewRecordText="Adicionar nova peça"  
                RefreshText="Atualizar" /> 
            <Columns> 
                <telerik:GridBoundColumn DataField="pro_int_codigo" ReadOnly="True"  
                    UniqueName="pro_int_codigo" Visible="false"
                </telerik:GridBoundColumn>                 
                <telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Center"  
                    HeaderText="Foto" ItemStyle-HorizontalAlign="Center"  
                    UniqueName="pro_str_thumbnail"
                    <EditItemTemplate> 
                        <telerik:RadUpload ID="uplThumb" runat="server" ControlObjectsVisibility="None"
                        </telerik:RadUpload> 
                    </EditItemTemplate> 
                    <ItemTemplate> 
                        <asp:Image ID="imgThumb" runat="server"  
                            ImageUrl="../Content/Images/imagem_off_tb.png" /> 
                    </ItemTemplate> 
                    <HeaderStyle HorizontalAlign="Center" /> 
                    <ItemStyle HorizontalAlign="Center" /> 
                </telerik:GridTemplateColumn>                                 
                <telerik:GridEditCommandColumn ButtonType="ImageButton" ItemStyle-Width="10px"  
                    UniqueName="EditCommandColumn"
                    <ItemStyle Width="10px" /> 
                </telerik:GridEditCommandColumn> 
                <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete"  
                    ConfirmText="Excluir esta peça?" ItemStyle-Width="10px" Text="Excluir"  
                    UniqueName="Delete"
                    <ItemStyle Width="10px" /> 
                </telerik:GridButtonColumn> 
            </Columns> 
            <EditFormSettings CaptionDataField="pro_int_codigo"  
                CaptionFormatString="editando..." ColumnNumber="2"
                <EditColumn CancelText="Cancelar" InsertText="Salvar"  
                    UniqueName="EditCommandColumn1" UpdateText="Atualizar registro"
                </EditColumn> 
                <FormStyle BackColor="#EEF2EA" Width="100%" /> 
                <FormTableStyle CellPadding="2" CellSpacing="0" CssClass="module"  
                    GridLines="Horizontal" Height="110px" Width="100%" /> 
                <FormMainTableStyle CellPadding="3" CellSpacing="0" Width="100%" /> 
                <FormCaptionStyle CssClass="EditFormHeader" /> 
                <FormTableItemStyle Wrap="False" /> 
                <FormTableAlternatingItemStyle Wrap="False" /> 
                <FormTableButtonRowStyle CssClass="EditFormButtonRow" HorizontalAlign="Right" /> 
            </EditFormSettings> 
        </MasterTableView> 
    </telerik:RadGrid> 
     
    </telerik:RadAjaxPanel> 

What I'm doing wrong?

Regards.

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 02 Jun 2010, 01:01 PM
Hello Silvio,

Please examine the help article below and let me know if it works for you.
http://www.telerik.com/help/aspnet-ajax/upload_uploadingajax.html

Kind regards,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Silvio Silva Junior
Top achievements
Rank 2
answered on 02 Jun 2010, 03:59 PM
Hello Pavlina, and thanks for the answer.

The link that you provided is very usefull for me, but my problem is not it at this time.

My problem is that:

In edit mode, I can't select anything and the upload control doesn't appear.

Look at this links a simple page with this problem:

http://img64.imageshack.us/img64/856/image1ohn.jpg
http://img526.imageshack.us/img526/2356/image2tz.jpg

If I don't use the ajaxpanel, this not happendsm and the grid edit works fine.

What Can I do? I didn't have this problem other times, but, what I'm wrong now?

Regards.






0
Pavlina
Telerik team
answered on 03 Jun 2010, 10:11 AM
Hi Silvio,

Please refer to the following online demo which elaborates on this subject and let me know what is the difference in your case:
Binary Images and Upload in Grid

I hope this helps.

Regards,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Silvio Silva Junior
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
Silvio Silva Junior
Top achievements
Rank 2
Share this question
or