Hello,
I am working on Radgrid in one of my web pages. I have 3 questions on this.
1) I want to change the backcolor of the edited row and for that i have given the edititemstyle and still don't see the color.Am i doing something wrong here? Here is the code.
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
AutoGenerateColumns
=
"False"
OnDeleteCommand
=
"RadGrid1_DeleteCommand"
ShowStatusBar
=
"True"
ShowFooter
=
"True"
Skin
=
"Office2010Silver"
Width
=
"100%"
OnItemDataBound
=
"RadGrid1_ItemDataBound"
OnEditCommand
=
"RadGrid1_EditCommand"
OnNeedDataSource
=
"RadGrid1_NeedDataSource"
OnUpdateCommand
=
"RadGrid1_UpdateCommand"
GridLines
=
"None"
oninsertcommand
=
"RadGrid1_InsertCommand"
CellSpacing
=
"0"
Font-Bold
=
"True"
ForeColor
=
"Black"
>
<
EditItemStyle
BackColor
=
"DarkOrange"
BorderColor
=
"#C00000"
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
<
HeaderContextMenu
CssClass
=
"GridContextMenu GridContextMenu_Default"
>
</
HeaderContextMenu
>
<
ItemStyle
Font-Bold
=
"True"
/>
<
MasterTableView
AllowAutomaticDeletes
=
"True"
CommandItemDisplay
=
"Top"
DataKeyNames
=
"ClientID"
EditMode
=
"EditForms"
>
2) Suppose I have 4 columns in the grid and when i edit a row, i would like to see the half of the columns on the left and the other half on the right. Something like this..
Column1 Column3
Column2 Column4
I don't want to have all the columns straight. It will take more height.
3) I have a template column in the grid and it should bind the gender . It may be M or F or null. What i have works only if the grid is NOT in edit mode. Is there a property which will bind the gender and should not throw a error if the value is null?
<
telerik:GridTemplateColumn
HeaderText
=
"Gender"
UniqueName
=
"MemGender"
>
<
EditItemTemplate
>
<
ASP:RadioButtonList
ID
=
"rbtnMemGender"
runat
=
"server"
CssClass
=
"radiobutton"
RepeatDirection
=
"Horizontal"
>
<
ASP:ListItem
Text
=
"M"
Value
=
"M"
/>
<
ASP:ListItem
Text
=
"F"
Value
=
"F"
/>
</
ASP:RadioButtonList
>
</
EditItemTemplate
>
<
ItemTemplate
>
<
ASP:Label
ID
=
"lblMemGender"
runat
=
"server"
Text='<%# Bind("Gender") %>' ToolTip="Gender">
</
ASP:Label
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
Appreciate the help.