or
.RadComboBoxDropDown ul li, .rtsLI, .reEditorModes li, .rtLI, .rmItem, .rwControlButtons li
{
background-image: none;
}
.RadWindow TD
{
border: 0;
padding:0;
}
But this is a nuisance to have to add these fixes everytime I notice an issue. I would expect that all RAD controls would override all CSS values and I think this should be fixed.
protected
void
Page_Load(
object
sender, EventArgs e)
{
if
(!Page.IsPostBack)
{
GridBoundColumn boundColumn =
new
GridBoundColumn();
boundColumn.HeaderStyle.Width =
new
Unit(100, UnitType.Pixel);
boundColumn.ItemStyle.Width =
new
Unit(100, UnitType.Pixel);
boundColumn.ItemStyle.CssClass =
"noWrapEllipsis"
;
rgCool.MasterTableView.Columns.Add(boundColumn);
}
}
protected
void
rgv_ItemCreated(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridCommandItem)
{
Button btncmd = (e.Item
as
GridCommandItem).FindControl(
"ExportToExcelButton"
)
as
Button;
if
(btncmd !=
null
) { RadScriptManager.GetCurrent(
this
.Page).RegisterPostBackControl(btncmd); }
btncmd = (e.Item
as
GridCommandItem).FindControl(
"ExportToWordButton"
)
as
Button;
if
(btncmd !=
null
) { RadScriptManager.GetCurrent(
this
.Page).RegisterPostBackControl(btncmd); }
btncmd = (e.Item
as
GridCommandItem).FindControl(
"ExportToCsvButton"
)
as
Button;
if
(btncmd !=
null
) { RadScriptManager.GetCurrent(
this
.Page).RegisterPostBackControl(btncmd); }
}
}
<
telerik:RadScriptManager
id
=
"ScriptManager"
runat
=
"server"
EnablePageMethods
=
"false"
EnablePartialRendering
=
"true"
EnableScriptGlobalization
=
"false"
EnableScriptLocalization
=
"true"
ScriptMode
=
"Release"
/>
<
telerik:RadGrid
runat
=
"server"
ID
=
"Grid"
EnableAJAX
=
"True"
AllowMultiRowEdit
=
"True"
EditMode
=
"InPlace"
OnItemDataBound
=
"Grid_ItemDataBound"
OnDetailTableDataBind
=
"Grid_DetailTableDataBind"
OnPreRender
=
"Grid_PreRender"
OnUpdateCommand
=
"Grid_ItemUpdate"
OnItemCreated
=
"Grid_ItemCreated"
DataSourceID
=
"SqlDataSource1"
AutoGenerateColumns
=
"false"
>
<
MasterTableView
DataKeyNames
=
"MASTER_ID"
>
<
DetailTables
>
<
telerik:GridTableView
EditMode
=
"InPlace"
Name
=
"Child"
AutoGenerateColumns
=
"False"
Width
=
"100%"
DataKeyNames
=
"CHILD_ID"
runat
=
"server"
>
<
Columns
>
<
telerik:GridEditCommandColumn
/>
<
telerik:GridBoundColumn
DataField
=
"CHILD_ID"
HeaderText
=
"CHILD_ID"
ReadOnly
=
"True"
SortExpression
=
"CHILD_ID"
UniqueName
=
"CHILD_ID"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"CHILD_Text"
HeaderText
=
"CHILD_Text"
ReadOnly
=
"False"
SortExpression
=
"CHILD_Text"
UniqueName
=
"CHILD_Text"
>
</
telerik:GridBoundColumn
>
</
Columns
>
</
telerik:GridTableView
>
</
DetailTables
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"CHILD_ID"
HeaderText
=
"CHILD_ID"
ReadOnly
=
"True"
SortExpression
=
"CHILD_ID"
UniqueName
=
"CHILD_ID"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"MASTER_ID"
HeaderText
=
"MASTER_ID"
ReadOnly
=
"True"
SortExpression
=
"MASTER_ID"
UniqueName
=
"MASTER_ID"
>
</
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
private void Grid_PreRender(object sender, System.EventArgs e)
{
if (!IsPostBack)
{
foreach(GridItem item in Grid.MasterTableView.Items)
{
if (item is GridEditableItem)
{
GridEditableItem editableItem= item as GridDataItem;
editableItem.Edit = true;
}
}
Grid.Rebind();
}
}