
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
function
GridCreated(sender, eventArgs)
{
grid = sender;
alert(grid.MasterTableView);
alert(grid.MasterTableView.SelectRow);
grid.MasterTableView.SelectRow(grid.MasterTableView.Rows[document.form1.defaultrow.value].Control,
true);
}
<
telerik:radgrid id="RadGrid2" runat="server" Width="100%" gridlines="Horizontal" Skin="Outlook" AllowSorting="True" ShowFooter="True" ShowGroupPanel="True" ShowStatusBar="True" SkinsPath="../../RadControls/Grid/Skins" PageSize="30">
<
ClientSettings ReorderColumnsOnClient="True" AllowColumnsReorder="True" ClientEvents-OnGridCreated="GridCreated" ClientEvents-OnRowSelected="RowSelected"
AllowDragToGroup="True">
<selecting allowrowselect="True">
</selecting>
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True"></Scrolling>
</ClientSettings>
<
MasterTableView>
<
ExpandCollapseColumn Visible="False" CollapseImageUrl="../../RadControls/Grid/Skins/Outlook/SingleMinus.gif" ExpandImageUrl="../../RadControls/Grid/Skins/Outlook/SinglePlus.gif" FilterImageUrl="../../RadControls/Grid/Skins/Outlook/Filter.gif" SortAscImageUrl="../../RadControls/Grid/Skins/Outlook/SortAsc.gif" SortDescImageUrl="../../RadControls/Grid/Skins/Outlook/SortDesc.gif">
<
HeaderStyle Width="19px"></HeaderStyle>
</
ExpandCollapseColumn>
<
RowIndicatorColumn Visible="False" FilterImageUrl="../../RadControls/Grid/Skins/Outlook/Filter.gif" SortAscImageUrl="../../RadControls/Grid/Skins/Outlook/SortAsc.gif" SortDescImageUrl="../../RadControls/Grid/Skins/Outlook/SortDesc.gif">
<
HeaderStyle Width="20px"></HeaderStyle>
</
RowIndicatorColumn>
<CommandItemSettings AddNewRecordImageUrl="../../RadControls/Grid/Skins/Office2007/AddRecord.gif"
RefreshImageUrl="../../RadControls/Grid/Skins/Office2007/Refresh.gif" />
<EditFormSettings>
<EditColumn CancelImageUrl="../../RadControls/Grid/Skins/Office2007/Cancel.gif" EditImageUrl="../../RadControls/Grid/Skins/Office2007/Edit.gif"
FilterImageUrl="../../RadControls/Grid/Skins/Office2007/Filter.gif" InsertImageUrl="../../RadControls/Grid/Skins/Office2007/Insert.gif"
SortAscImageUrl="../../RadControls/Grid/Skins/Office2007/SortAsc.gif" SortDescImageUrl="../../RadControls/Grid/Skins/Office2007/SortDesc.gif"
UpdateImageUrl="../../RadControls/Grid/Skins/Office2007/Update.gif">
</EditColumn>
</EditFormSettings>
</
MasterTableView>
<GroupPanel Text="Drag colums here to group.">
</GroupPanel>
</
telerik:radgrid>
Is there Any Help document for this issue .
Thanks
Baqi
| private void CreateFooter() |
| { |
| if (_footer == null) |
| { |
| this._footer = new RadComboBoxHeaderFooterControl(); |
| this.Controls.Add(Footer); |
| Footer.ID = this.ClientID + "_Footer"; |
| Footer.CssClass = RadComboBox.FooterCssClass; |
| } |
| } |
| private void CreateHeader() |
| { |
| if (_header == null) |
| { |
| this._header = new RadComboBoxHeaderFooterControl(); |
| this.Controls.Add(Header); |
| Header.ID = this.ClientID + "_Header"; |
| Header.CssClass = RadComboBox.HeaderCssClass; |
| } |
| } |
| private void CreateFooter() |
| { |
| if (_footer == null) |
| { |
| this._footer = new RadComboBoxHeaderFooterControl(); |
| this.Controls.Add(Footer); |
| Footer.ID = "_Footer"; |
| Footer.CssClass = RadComboBox.FooterCssClass; |
| } |
| } |
| private void CreateHeader() |
| { |
| if (_header == null) |
| { |
| this._header = new RadComboBoxHeaderFooterControl(); |
| this.Controls.Add(Header); |
| Header.ID = "_Header"; |
| Header.CssClass = RadComboBox.HeaderCssClass; |
| } |
| } |