<
radG:RadGrid ID="rgDepartmentList" runat="server" Width="99%" AllowPaging="True" AllowCustomPaging="true" OnPageIndexChanged="rgDepartmentList_PageIndexChanged"
AllowSorting="True" ShowStatusBar="True" GridLines="None" AutoGenerateColumns="False" PageSize="5">
<MasterTableView CommandItemDisplay="Top" DataKeyNames="dept_id" RowIndicatorColumn-Display="false">
<NoRecordsTemplate>
<table width="99%" align="center">
<tr>
<td>
No record found.
</td>
</tr>
</table>
</NoRecordsTemplate>
<RowIndicatorColumn>
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<ExpandCollapseColumn Resizable="False" Visible="False">
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<Columns>
<radG:GridTemplateColumn HeaderText="Edit" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="30px"
ItemStyle-Width="30px">
<ItemTemplate>
<img onclick=" NavigateToEdit('<%# Eval("dept_id") %>','<%# Eval("dept_active") %>','<%# Eval("dept_name") %>');"
style="cursor: pointer;" alt="Edit" src="../../../Images/common/edit.gif" />
</ItemTemplate>
</radG:GridTemplateColumn>
<radG:GridButtonColumn HeaderText="Delete" ButtonType="ImageButton" CommandName="Delete"
ConfirmText="Do you want to delete this record?" ImageUrl="../../../Images/common/DeleteImage.JPG"
Text="Delete" UniqueName="column1">
<HeaderStyle HorizontalAlign="Center" Width="40px" />
<ItemStyle HorizontalAlign="Center" Width="40px" />
</radG:GridButtonColumn>
<radG:GridTemplateColumn HeaderText="Active">
<ItemTemplate >
<asp:CheckBox ID="chkbox" runat="server" Checked='<%# Bind("dept_active") %>' />
</ItemTemplate>
</radG:GridTemplateColumn>
<radG:GridBoundColumn HeaderText="Department Name" DataField="dept_name" UniqueName="dept_name">
</radG:GridBoundColumn>
</Columns>
<CommandItemTemplate>
<table class="CommandItemTemplate" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<img alt="" src="../../../Images/common/register.gif" /></td>
<td>
<a id="A1" onclick="NavigateToAdd();" href="#">Add Department</a>
</td>
<td>
</td>
<td>
</td>
<td>
<img src="../../../Images/common/button_refresh.gif" alt="" />
</td>
<td>
<asp:LinkButton ID="lbtnRefresh" Text="Refresh" runat="server" CommandName="Refresh"
onmouseover="OnRefreshCommandMouseOver();" onmouseout="OnRefreshCommandMouseOut();"></asp:LinkButton>
</td>
<td width="*">
</td>
</tr>
</table>
</td>
</tr>
</table>
</CommandItemTemplate>
</MasterTableView>
<PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
<ClientSettings EnableClientKeyValues="True" AllowColumnsReorder="true" ApplyStylesOnClient="true"
ReorderColumnsOnClient="True">
<ClientEvents OnRowClick="" OnRowSelected="RowSelected" />
<Selecting AllowRowSelect="true" />
<Resizing AllowColumnResize="true" AllowRowResize="true" ResizeGridOnColumnResize="false"
ClipCellContentOnResize="true" EnableRealTimeResize="false" />
</ClientSettings>
</
radG:RadGrid>
Code behind is
Private
Sub LoadGrid(ByVal currentindex As Integer)
Dim totalrecords As Integer = 0
Dim ds As New DataSet
ds = SFSetupDepartments.GetDepartmentsByPage((currentindex + 1), 5, totalrecords)
With rgDepartmentList
.MasterTableView.VirtualItemCount = (totalrecords / .PageSize)
.DataSource = ds.Tables(0)
.DataBind()
End With
End Sub
Hi Telerik Team,
I have a problem with styling skin.
I will describe my problem briefly, but first of all I'll show you what I want to achive.
http://images33.fotosik.pl/275/a6f96f104af5b936.jpg
Top picture shows what I have and the bottom shows what I want to have.
I just want to emphasize some cells borders by changing its default color.
This is my aspx code:
<telerik:RadScheduler ID="RadScheduler1" runat="server"
DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End"
ShowFooter="False" ShowHeader="False" TimeLabelRowSpan="4" Culture="Polish (Poland)"
Width="99%" Skin="Office2007" SelectedView="WeekView"
FirstDayOfWeek="Monday" LastDayOfWeek="Friday"
MinutesPerRow="15" ShowAllDayRow="false" EnableCustomAttributeEditing="false"
AllowDelete="false" AllowEdit="false" AllowInsert="false" OverflowBehavior="Expand">
<WeekView ColumnHeaderDateFormat="dddd" DayEndTime="21:00:00"
ReadOnly="True" />
<AppointmentTemplate>
<%# Eval ("Subject") %>
</AppointmentTemplate>
</telerik:RadScheduler>
And css:
.RadScheduler .rsContent .rsHoursTable th
{
font-size:10px;
height:11px;
line-height:11px;
}
.rsContent .rsContentTable .rsCell
{
font-size:10px;
height:11px;
line-height:11px;
}
.rsHoursContent
{
text-align:center;
font-size:12px;
height:32px;
}
And also:
Is there any possible way to change Hours Content from "08:00" to "08:00-09:00" and so on ?
Thanks in advance for your reply
Cheers
John