Hi,
I'm beginning to learn how to use the RadGrid control, but really don't know where to begin. I am developing a test page where the RadGrid should populate from the following object:
public class GalleryDTO {
private string mName;
private string mDescription;
private string mUrl;
private string mThumbnailUrl;
//.. Below are read/write properties for the above fields, and constructors.
}
Now, I have a method that returns a List<GalleryDTO>. How
can I pass this list to the RadGrid so that it can populate itself.
Each GalleryDTO object should be displayed in 1 cell where the
mThumbnailURL is a url to an image that is to be displayed in
that cell, and the mUrl is the url to be redirected when clicking
on that image.
Any guidance on where to start or to a sample project would be great.
Thanks!

body {
text-align: center;
}
Then drop a grid similiar to the one mentioned above (use the same code example), then the drop down loads in halves and loads to the right corner of the contronl menu tab it corresponds with instead of directly under it (which is what we want).
It comes down to modifying the skin for the rad tool bar, but what element needs to be modified in the ToolBar CSS?
Centering the body of a page is fairly common for developers to do, wierd why it effects the RadToolBar (even if the styles cascade).
Any assistance is appreciated.
Thanks.
Tell me if this is possible.
I have several webpages that have distinct RadGrids in them. I would like to use the export options in a user control instead of having all the code below in each page that contains a Grid.
However, I don't know how to reference the RadGrid in the user controls code behind.
In the User Control ascx
| <asp:ImageButton ID="ImageButtonSave" ImageAlign="AbsMiddle" ImageUrl="~/images/13Save.gif" AlternateText="Save Grid Settings" OnClick="ButtonSave_Click" runat="server" /> |
| <asp:ImageButton ID="ImageButtonExcel" OnClick="Button1_Click" ImageUrl="~/images/office/xls.gif" AlternateText="Export to Excel" runat="server" /> |
| <asp:ImageButton ID="ImageButtonWord" OnClick="Button2_Click" ImageUrl="~/images/office/doc.gif" AlternateText="Export to Word" runat="server" /> |
| <asp:ImageButton ID="ImageButtonPDF" OnClick="Button4_Click" ImageUrl="~/images/office/pdf.gif" AlternateText="Export to PDF" runat="server" /> |
| protected void Button1_Click(object sender, System.EventArgs e) |
| { |
| ConfigureExport(); |
| RadGrid1.MasterTableView.ExportToExcel(); |
| } |
| protected void Button2_Click(object sender, System.EventArgs e) |
| { |
| ConfigureExport(); |
| RadGrid1.MasterTableView.ExportToWord(); |
| } |
| protected void Button3_Click(object sender, System.EventArgs e) |
| { |
| ConfigureExport(); |
| RadGrid1.MasterTableView.ExportToCSV(); |
| } |
| protected void Button4_Click(object sender, System.EventArgs e) |
| { |
| ConfigureExport(); |
| RadGrid1.ExportSettings.Pdf.PageHeight = Unit.Parse("200mm"); |
| RadGrid1.ExportSettings.Pdf.PageWidth = Unit.Parse("500mm"); |
| RadGrid1.MasterTableView.ExportToPdf(); |
| } |
| public void ConfigureExport() |
| { |
| RadGrid1.ExportSettings.ExportOnlyData = true; |
| RadGrid1.ExportSettings.IgnorePaging = true; |
| RadGrid1.ExportSettings.OpenInNewWindow = true; |
| } |