protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName == "Edit")
{
if (e.Item is GridDataItem)
{
GridEditableItem editedItem = (source as RadGrid).NamingContainer as GridEditableItem;
//GridEditableItem editedItem = e.Item as GridEditableItem;
DropDownList FileTypeID = editedItem.FindControl("FileTypeID") as DropDownList;
TextBox StartPosition = editedItem.FindControl("StartPosition") as TextBox;
TextBox EndPosition = editedItem.FindControl("EndPosition") as TextBox;
TextBox Delimiter = editedItem.FindControl("Delimiter") as TextBox;
CheckBox IsMultiRecordType = editedItem.FindControl("IsMultiRecordType") as CheckBox;
TextBox FirstRecordIndicator = editedItem.FindControl("FirstRecordIndicator") as TextBox;
TextBox RecordIndicatorIndex = editedItem.FindControl("RecordIndicatorIndex") as TextBox;
if (IsMultiRecordType.Checked == true)
FirstRecordIndicator.Enabled = true;
else
{
FirstRecordIndicator.Text = null;
FirstRecordIndicator.Enabled = false;
}
switch (FileTypeID.SelectedItem.Text)
{
case "Space Fixed Length":
StartPosition.Enabled = true;
EndPosition.Enabled = true;
Delimiter.Text = null;
Delimiter.Enabled = false;
RecordIndicatorIndex.Text = null;
RecordIndicatorIndex.Enabled = false;
break;
case "Delimited File":
StartPosition.Text = null;
StartPosition.Enabled = false;
EndPosition.Text = null;
EndPosition.Enabled = false;
Delimiter.Enabled = true;
RecordIndicatorIndex.Enabled = true;
break;
case "HL7":
StartPosition.Text = null;
StartPosition.Enabled = false;
EndPosition.Text = null;
EndPosition.Enabled = false;
Delimiter.Enabled = true;
RecordIndicatorIndex.Enabled = true;
break;
}
}
}
}
How do i change the color of the dropdown menu to Vista skin? (refer to screenshot)
I had set the Skin="Vista" to the toolbar but the dropdown doesn't take the correct color.
Thanks in advance.
<telerik:RadToolBar ID="ToolBarMenu" runat="server" Width="100%" Skin="Vista"> <Items> <telerik:RadToolBarSplitButton Text="Export to Excel"> <Buttons> <telerik:RadToolBarButton Text="Export Current View to Excel" /> <telerik:RadToolBarButton IsSeparator="true" /> <telerik:RadToolBarButton Text="Export All to Excel" /> </Buttons> </telerik:RadToolBarSplitButton> </Items> </telerik:RadToolBar>