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:
What I'm doing wrong?
Regards.
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.