I use the export feature in radgrid 2008 Q2 and it works very well coming to the browser and launching excel.
My application needs to save the exported excel file to a server side file, not immediately download it.
With dgworkOrderDetails.ExportSettings
.FileName = "-test-" & oRec.workorder
.IgnorePaging = True
.OpenInNewWindow = True
.Excel.Format = GridExcelExportFormat.Html
End With
dgworkOrderDetails.MasterTableView.ExportToExcel() ß opens browser
Hi,
I'm using RadControls 2008.1 619 in an Moss Environmet. I added a Tooltip to the CreateWebPage.aspx. It worksfine in IE 7, but in IE 6 dropdownboxes are in front of the tooltip. What can I do to get the tooltip in front of the dropdownboxes?
Thanks for helping!
Best regards
Falk
var
masterTable = window["<%= My_RadGrid.ClientID %>"].MasterTableView;
masterTable.SelectRow(masterTable.Rows[rowIndex].Control,
false);
The problem is, how to get a correct rowIndex. When I use GridDataItem ItemIndex property it returns a index which does not count GridGroupHeaderItems - so I can not use it in client side SelectRow function.
So Can I somehow find an index of GridDataItem row in ItemCreated event handler so that this index count GridGroupHeaderItems?
| <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" GridLines="None" |
| PageSize="2" onitemcreated="RadGrid1_ItemCreated" width="97%" AllowMultiRowSelection="false" |
| OnItemCommand="RadGrid1_ItemCommand" AutoGenerateColumns="False" |
| Skin="WebBlue" onselectedindexchanged="RadGrid1_SelectedIndexChanged" > |
| <ClientSettings > |
| </ClientSettings> |
| <PagerStyle Mode="NextPrevAndNumeric" /> |
| <MasterTableView PageSize="2" > |
| <Columns> |
| <telerik:GridButtonColumn Text="Select" CommandName="Select"> |
| </telerik:GridButtonColumn> |
| <telerik:GridBoundColumn DataField="UserId" HeaderText="UserID" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" /> |
| <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"/> |
| <telerik:GridBoundColumn DataField="LastName" HeaderText="Last Name" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" /> |
| <telerik:GridBoundColumn DataField="Username" HeaderText="Username" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" /> |
| <telerik:GridBoundColumn DataField="Role" HeaderText="Role" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"/> |
| </Columns> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| </MasterTableView> |
| </telerik:RadGrid> |
Hi everybody,
I trying to use the OnNodeBound event but I can't bring to work, the event does not want to fire, and I can't Understand what I'm doing wrong.
<telerik:RadTreeView Skin="Office2007" ID="RTMM" Runat="server" CheckBoxes="true" OnNodeBound="HandleNodeBound">
ON MY CODE PAGE
protected void Page_Load(object sender, EventArgs e){
SecurityFacade facade = new SecurityFacade();
this.RTMM.DataSource = facade.getPortfolioRoles(1, false).Tables[0];
this.RTMM.DataFieldID = "Id";
this.RTMM.DataFieldParentID = "ParentId";
this.RTMM.DataTextField = "Name";
this.RTMM.DataBind();
}
protected
void HandleNodeBound(object sender, RadTreeNodeEventArgs e){
DataRowView dataSourceRow = (DataRowView)e.Node.DataItem;
e.Node.Checked= (bool)(dataSourceRow["IsChecked"]);
}
Can maybe someone of you help me? Thank you very much
Raphael
private void CreateToolTip()
{
GridDataItem DataItem;
int iPageIndex = rgSNLoc.CurrentPageIndex;
int iPageSize = rgSNLoc.MasterTableView.PageSize;
int iFactor = iPageIndex * iPageSize;
for (int i = iFactor; i < rgSNLoc.MasterTableView.Items.Count + iFactor; i++)
{
DataItem = rgSNLoc.MasterTableView.Items[i - iFactor] as GridDataItem;
if (sMultiAddr[i].Length == 1)
{
DataItem["loc_name"].ToolTip = sMultiAddr[i][0];
}
else
{
for (int j = 0; j < sMultiAddr[i].Length; j++)
{
if (j == sMultiAddr[i].Length - 1)
DataItem["loc_name"].ToolTip = sMultiAddr[i][j];
else
DataItem["loc_name"].ToolTip = sMultiAddr[i][j] + "\n\n";
}
}
}
}
I wrote the above function and put it in the "PreRender" event handler of the RadGrid. What I want to do is to assign a unique tooltip to each row of a specified column in the grid, and the tooltip will still exist correctly even the user change the page size or switch to another page of the grid dynamically. However, if the user sort on a column, the value of the tooltips will become wrong. So how can I keep the tooltips correctly in this case? Thanks.