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
I've added two picture to show what's wrong
Thanks for your help
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