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

grid template and css row on edit command

1 Answer 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ju
Top achievements
Rank 1
Ju asked on 16 Jun 2011, 12:14 PM
Hello,

for any reason one of my thread has disapeared so i'm writing again on the same subject (Gimmik had begun to help me with that problem)

i've almost met my requirements for a demo with the telerik grid. The aim was to build a grid with a custom template inside and an edit custom pop-up.

I'm ok with that.
The only thing is that when i'm editing a row, every value is underlined in the grid. Is there a way to disable this style ?

here is my code
<telerik:RadGridID="RadGrid2"runat="server"AutoGenerateColumns="True"EnableViewState="True"
   OnNeedDataSource="RadGrid2_NeedDataSource"ShowHeader="False"Width="100%"OnDeleteCommand="test">
   <MasterTableViewTableLayout="Fixed"EditMode="PopUp">
     
      <ItemTemplate>
         <tablewidth="100%">
            <colwidth="50px"/>
            <colwidth="50px"/>
            <colwidth="*"/>
            <colwidth="*"/>
            <colwidth="*"/>
            <tr>
               <td>
                  <asp:ImageButtonrunat="server"ID="edit"CommandName="Edit"ImageUrl="http://localhost/imgftcarto/editicon.gif"/>
               </td>
               <td>
                  <asp:ImageButtonrunat="server"ID="delete"CommandName="Delete"CommandArgument='<%# Eval("Identifiant")%>' ImageUrl="http://localhost/imgftcarto/delete.gif"
                     OnClientClick="return confirm('Delete this user?');" />
               </td>
               <td>
                  <b>test <%# Eval("Identifiant")%></b>
               </td>
               <td>
                  <%# Eval("Nom")%>
               </td>
               <td>
               <asp:DropDownListrunat="server"ID="ddl">
               <asp:ListItemText="Mr"Value="Mr"></asp:ListItem>
               <asp:ListItemText="Mrs"Value="Mrs"></asp:ListItem>
               <asp:ListItemText="Ms"Value="Ms"></asp:ListItem>
               </asp:DropDownList>
               </td>
            </tr>
            <tr>
               <td>
                     
               </td>
               <td>
                     
               </td>
               <td>
                  <b>test2</b>
               </td>
               <td>
                  <%# Eval("Prenom")%>
               </td>
               <tdrowspan="2">
                  <asp:TextBoxrunat="server"ID="textplace"TextMode="MultiLine"Width="100%"></asp:TextBox>
               </td>
            </tr>
            <tr>
               <td>
                     
               </td>
               <td>
                     
               </td>
               <td>
                  <b>test3</b>
               </td>
               <td>
               <%# Eval("Inscription") %>
               </td>
            </tr>
         </table>
      </ItemTemplate>
      <EditFormSettingsCaptionDataField="Identifiant"EditFormType="Template"PopUpSettings-Width="700px"PopUpSettings-Height="200px"PopUpSettings-Modal="true">
         <FormTemplate>
            <tableid="Table1"cellspacing="1"cellpadding="1"width="100%"border="0">
               <tr>
                  <td>
                     Nom
                  </td>
                  <td>
                     <asp:TextBoxID="TextBox10"Text='<%# Bind("Nom") %>' runat="server">
                     </asp:TextBox>
                  </td>
               </tr>
               <tr>
                  <td>
                     Prenom
                  </td>
                  <td>
                     <asp:TextBoxID="TextBox1"Text='<%# Bind("Prenom") %>' runat="server">
                     </asp:TextBox>
                  </td>
               </tr>
               <tr>
                  <td>
                     Inscription
                  </td>
                  <td>
                     <telerik:RadDatePickerID="picker1"runat="server"DbSelectedDate='<%# Bind("Inscription") %>'>
                     </telerik:RadDatePicker>
                  </td>
               </tr>
            </table>
            <tablewidth="100%">
               <tr>
                  <tdalign="right"colspan="2">
                     <asp:ButtonID="Button1"Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                        runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
                     </asp:Button>
                     <asp:ButtonID="Button2"Text="Cancel"runat="server"CausesValidation="False"CommandName="Cancel">
                     </asp:Button>
                  </td>
               </tr>
            </table>
         </FormTemplate>
      </EditFormSettings>
   </MasterTableView>
</telerik:RadGrid>
<telerik:GridNumericColumnEditorID="GridNumericColumnEditor1"runat="server"NumericTextBox-Width="40px"/>
<telerik:GridTextBoxColumnEditorID="GridTextBoxColumnEditor1"runat="server"TextBoxStyle-Width="200px"
   TextBoxStyle-BackColor="#FF6600"/>
<telerik:GridTextBoxColumnEditorID="GridTextBoxColumnEditor2"runat="server"TextBoxStyle-Width="200px"
   TextBoxStyle-BackColor="#666666"/>
<telerik:GridDateTimeColumnEditorID="GridDateTimeColumnEditor"runat="server"/>

I've added two picture to show what's wrong

Thanks for your help

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 21 Jun 2011, 10:14 AM
Hello Ju,

Most probably you are using some custom skins in your project, because I was not able to replicate the described problem in our online example:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/popupeditform/defaultcs.aspx

However, to progress in our investigation it will be best if you isolate a stripped working version of your project and send it enclosed to a formal support ticket. I will test it locally and will get back to you with my findings.

Regards,
Pavlina
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
Ju
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or