or

--------------------------------------------------------| col1 | col2 |______col3________|_______col4_______|| | | col3.1 | col3.2 | col4.1 | col4.2 |--------------------------------------------------------| | | | | | |<tr class="rgCommandRow"><td class="rgCommandCell" colspan="6"><tr class="rgCommandRow"><td class="rgCommandCell" colspan="4">Private Sub weldsGrid_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles weldsGrid.ItemCreated If e.Item.ItemType = GridItemType.CommandItem Then e.Item.SetRenderMethodDelegate(AddressOf RenderCommandDelegate) End If 'If e.Item.ItemType = GridItemType.Header Then ' e.Item.SetRenderMethodDelegate(AddressOf RenderHeaderDelegate) 'End If End Sub Private Sub RenderCommandDelegate(ByVal output As HtmlTextWriter, ByVal container As Control) Dim cell = DirectCast(container.Controls(0), System.Web.UI.WebControls.TableCell) 'IE7 or IE8 in compat mode fix cell.ColumnSpan = 20 cell.RenderControl(output) End Sub
<telerik:RadGrid ID="grdGroups" runat="server" EnableLinqExpressions="false" GridLines="None" AllowFilteringByColumn="True" DataSourceID="GroupsDataSource"AllowPaging="True" AllowSorting="True" OnDetailTableDataBind="grdGroups_DetailTableDataBind"AutoGenerateColumns="False" oninsertcommand="grdGroups_InsertCommand" OnUpdateCommand="grdGroups_UpdateCommand" onitemcommand="grdGroups_ItemCommand" > <MasterTableView autogeneratecolumns="False" Name="grdGroups" datakeynames="GroupID" CommandItemDisplay="Top" datasourceid="GroupsDataSource" CommandItemSettings-AddNewRecordImageUrl="~/_resources/images/grid/Grid_AddNew.png" CommandItemSettings-RefreshImageUrl="~/_resources/images/grid/Grid_Hide.png" CommandItemSettings-AddNewRecordText="<%$ Resources:CreateGroup %>" CommandItemSettings-RefreshText=""> <DetailTables> <telerik:GridTableView Name="grdGroupEmployees" runat="server" OnItemCommand="grdGroupEmployees_ItemCommand" GridLines="None" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" DataKeyNames="UserID" AutoGenerateColumns="False" > <RowIndicatorColumn> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="LastName" AutoPostBackOnFilter="true" HeaderText="<%$ Resources:LastName %>" ShowFilterIcon="false" SortExpression="LastName" UniqueName="LastName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="FirstName" HeaderText="<%$ Resources:FirstName %>" AutoPostBackOnFilter="true" ShowFilterIcon="false" SortExpression="FirstName" UniqueName="FirstName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Email" HeaderText="Email" AutoPostBackOnFilter="true" ShowFilterIcon="false" SortExpression="Email" UniqueName="Email"> </telerik:GridBoundColumn> <telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/_resources/images/grid/Grid_Trash.jpg" ConfirmText="<%$ Resources:RemoveUser%>" Text="<%$ Resources:Main, Archive %>" HeaderText="<%$ Resources: Remove %>" CommandName="RemoveUser" > <HeaderStyle HorizontalAlign="Center" Width="50px" /> <ItemStyle HorizontalAlign="Center" Width="50px" /> </telerik:GridButtonColumn> <telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/_resources/images/grid/Grid_Forward.png" Text="<%$ Resources:Main, View %>" HeaderText="<%$ Resources:Main, View %>" CommandName="ViewUser" > <HeaderStyle HorizontalAlign="Center" Width="50px" /> <ItemStyle HorizontalAlign="Center" Width="50px" /> </telerik:GridButtonColumn> </Columns> </telerik:GridTableView> </DetailTables> <RowIndicatorColumn> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="Name" AutoPostBackOnFilter="true" UniqueName="Name" HeaderText="<%$ Resources:GroupName %>" ShowFilterIcon="false" SortExpression="Name" > </telerik:GridBoundColumn> <telerik:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="~/_resources/images/grid/Grid_Edit.png" UpdateImageUrl="~/_resources/images/Grid/Grid_Accept.png" CancelImageUrl="~/_resources/images/Grid/Grid_Cancel.png" UniqueName="EditCommandColumn" ItemStyle-Width="50px" HeaderText="<%$ Resources:Main, Edit %>" CancelText="<%$ Resources:Main, Cancel %>" UpdateText="<%$ Resources:Main, Update %>" > <HeaderStyle HorizontalAlign="Center" Width="50px" /> <ItemStyle HorizontalAlign="Center" Width="50px" /> <FooterStyle HorizontalAlign="Center" Width="50px" /> </telerik:GridEditCommandColumn> <telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/_resources/images/grid/Grid_Cancel.png" ConfirmText="Resources:ArchiveConfirm" Text="<%$ Resources:Main, Archive %>" HeaderText="<%$ Resources:Main, Archive %>" CommandName="Archive" > <HeaderStyle HorizontalAlign="Center" Width="50px" /> <ItemStyle HorizontalAlign="Center" Width="50px" /> </telerik:GridButtonColumn> <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="ViewGroup" Visible="false" ImageUrl="~/_resources/images/grid/Grid_Forward.png" Text="<%$ Resources: Courses %>" HeaderText="<%$ Resources: Courses %>" CommandName="ViewGroup" > <HeaderStyle HorizontalAlign="Center" Width="50px" /> <ItemStyle HorizontalAlign="Center" Width="50px" /> </telerik:GridButtonColumn> </Columns> <EditFormSettings ColumnNumber="1" CaptionDataField="Name" CaptionFormatString="<%$ Resources:EditGroupTitle %> {0}" InsertCaption="<%$ Resources:NewGroupTitle %>"> <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" Width="60%" /> <FormTableStyle CellSpacing="5" CellPadding="2" GridLines="None" /> <EditColumn ButtonType="ImageButton" InsertText="<%$ Resources:Main, Insert %>" UpdateText="<%$ Resources:Main, Update %>" InsertImageUrl="~/_resources/images/grid/Grid_Accept.png" UpdateImageUrl="~/_resources/images/grid/Grid_Accept.png" UniqueName="EditCommandColumn1" CancelText="<%$ Resources:Main, Cancel %>" CancelImageUrl="~/_resources/images/grid/Grid_Cancel.png"> </EditColumn> </EditFormSettings> </MasterTableView> </telerik:RadGrid> <asp:ObjectDataSource ID="GroupsDataSource" runat="server" SelectMethod="GetClientsGroups" TypeName="i2d2Main" SortParameterName="sort"> <SelectParameters> <asp:SessionParameter Name="ClientID" SessionField="ClientID" Type="Int32" /> </SelectParameters> </asp:ObjectDataSource>RadScheduler1.Provider = new SchedulerDataProvider( venueId, groupId );![]() |
The provider is instantiated once per application domain and is shared across threads. RadScheduler ensures basic thread safety by encapsulating each provider in a wrapper that provides locks around each of its public methods. However, you should take care of synchronizing access to instance field members where appropriate. |
if(e.Item is GridDataItem) { foreach(TableCell cell in e.Item.Cells) { cell.ToolTip = cell.Text; } }