I just wondered if there was a skin/CSS available to re-create something similar to the RadToolBar used on the Telerik demos site. It looks like it is a RadTabStrip but in fact is a RadToolBar; any help with re-creating something similar to this would be greatly appreciated! I have attached a screen shot of what I am referring to if I haven’t been that clear.
<telerik:RadGrid ID="RadGrid1" runat="server" Skin="Sunset" AllowSorting="true" ShowFooter="false"> |
<ItemStyle Font-Size="11px" /> |
<MasterTableView> |
<RowIndicatorColumn> |
<HeaderStyle Width="20px"></HeaderStyle> |
</RowIndicatorColumn> |
<ExpandCollapseColumn> |
<HeaderStyle Width="20px"></HeaderStyle> |
</ExpandCollapseColumn> |
</MasterTableView> |
<ClientSettings AllowColumnHide="false"> |
<Scrolling AllowScroll="true" UseStaticHeaders="True" ScrollHeight="450px" /> |
<Resizing AllowColumnResize="true" ClipCellContentOnResize="true" |
/> |
</ClientSettings> |
</telerik:RadGrid> |
Protected Sub RadGrid1_ColumnCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridColumnCreatedEventArgs) Handles RadGrid1.ColumnCreated |
Dim name As String = e.Column.UniqueName |
'resize columns |
If name = "Name" Or name = "Address1" Or name = "RFI Email" Or name = "Personal Email" Or name = "Practice" Then |
Dim boundColumn As GridBoundColumn = CType(e.Column, GridBoundColumn) |
boundColumn.ItemStyle.Width = 150 |
boundColumn.HeaderStyle.Width = 150 |
End If |
If name = "Initials" Or name = "State" Then |
Dim boundColumn As GridBoundColumn = CType(e.Column, GridBoundColumn) |
boundColumn.ItemStyle.Width = 45 |
boundColumn.HeaderStyle.Width = 45 |
End If |
If name = "Office" Then |
Dim boundColumn As GridBoundColumn = CType(e.Column, GridBoundColumn) |
boundColumn.ItemStyle.Width = 80 |
boundColumn.HeaderStyle.Width = 80 |
End If |
If name = "Ext" Or name = "Zip" Then |
Dim boundColumn As GridBoundColumn = CType(e.Column, GridBoundColumn) |
boundColumn.ItemStyle.Width = 50 |
boundColumn.HeaderStyle.Width = 50 |
End If |
If name = "Cell" Or name = "Home" Or name = "Fax" Or name = "Business" Or name = "City" Then |
Dim boundColumn As GridBoundColumn = CType(e.Column, GridBoundColumn) |
boundColumn.ItemStyle.Width = 89 |
boundColumn.HeaderStyle.Width = 89 |
End If |
If name = "Address2" Then |
Dim boundColumn As GridBoundColumn = CType(e.Column, GridBoundColumn) |
boundColumn.ItemStyle.Width = 70 |
boundColumn.HeaderStyle.Width = 70 |
End If |
If name = "Preferred" Then |
Dim boundColumn As GridBoundColumn = CType(e.Column, GridBoundColumn) |
boundColumn.ItemStyle.Width = 95 |
boundColumn.HeaderStyle.Width = 95 |
End If |
End Sub |
protected
void
Page_Load(
object
sender, EventArgs e)
{
for
(
int
i = 0; i < radGrid.PageSize; i++)
{
for
(
int
j = 0; j < radGrid.PageSize; j++)
{
radGrid.EditIndexes.Add(i, 0, j);
}
}
}
function
CollapseAll() {
var
grid = $find(
"<%= radGrid.ClientID %>"
);
master = grid.get_masterTableView();
for
(masterIndex = 0; masterIndex < master.get_dataItems().length; masterIndex++) {
master.collapseItem(masterIndex);
}
var
completeBtn = $(parent.rightFrame.document).find(
"#completeButton"
);
completeBtn.click();
var
genderSelect = $(parent.rightFrame.document).find(
"#genderDropDown"
);
genderSelect.val(
"F"
);
genderSelect.change();
function
CurrentDateSelection(sender, eventArgs) {
if (sender.get_selectedDate() == null) {
eventArgs.set_cancelCalendarSynchronization(true);
var popup = eventArgs.get_popupControl();
var todaysDate = new Date();
var todayTriplet = [todaysDate.getFullYear(), todaysDate.getMonth() + 1, todaysDate.getDate()];
popup.selectDate(todayTriplet, true);
}
}
-----------------------------------------
<telerik:RadDatePicker ID="RadDatePickerAnswerDate" runat="server" Width="110px">
<DateInput ID="DateInput25" runat="server" DateFormat="MM/dd/yyyy" />
<ClientEvents OnPopupOpening="CurrentDateSelection" />
</telerik:RadDatePicker>