Hi,
We need to implement in our website the same slider with images sliding like in the following URL : http://www.telerik.com/DEMOS/ASPNET/Prometheus/Controls/Examples/Default/DefaultCS.aspx
Unfortunately I didn’t find code of this sample anyway neither in the demo application nor in your website.
Please provide me code of this + external scripts if needed or simply a link to this demo.
Best regards,
Yaniv
this
.RadGrid1.MasterTableView.DataKeyNames = new string[] { "ndc" };
this.RadGrid1.MasterTableView.DataMember = "NDCMaster";
this.RadGrid1.MasterTableView.AllowPaging = true;
NDCMaster
master = new NDCMaster();
DataSet dsMaster = master.GetDataSetforNDCMaster();
this.RadGrid1.MasterTableView.DataSource = dsMaster;
this.RadGrid1.MasterTableView.DataMember = "NDCMaster";
this.RadGrid1.MasterTableView.DataKeyNames = new string[]{"ndc"};
GridRelationFields fields = new GridRelationFields();
fields.DetailKeyField =
"ndc";
fields.MasterKeyField =
"ndc";
detailView =
new GridTableView(this.RadGrid1);
this.RadGrid1.MasterTableView.DetailTables.Add(detailView);
this.RadGrid1.MasterTableView.DetailTables[0].ParentTableRelation.Add(fields);
NDCDetail detail = new NDCDetail();
DataSet dsDetail = detail.GetDataSetforNDCDetail();
this.RadGrid1.MasterTableView.DetailTables[0].DataSource = dsDetail;
this.RadGrid1.MasterTableView.DetailTables[0].DataMember = "NDCDetails";
this.RadGrid1.MasterTableView.DetailTables[0].Width = Unit.Percentage(100);
Here is the code in the aspx:<
telerik:RadGrid ID="RadGrid1" runat="server"
onneeddatasource="RadGrid1_NeedDataSource"
GridLines="None" ShowGroupPanel="True" onpageindexchanged="RadGrid1_PageIndexChanged"
>
<
MasterTableView hierarchyloadmode="ServerBind">
<
RowIndicatorColumn>
<
HeaderStyle Width="20px"></HeaderStyle>
</
RowIndicatorColumn>
<
ExpandCollapseColumn>
<
HeaderStyle Width="20px"></HeaderStyle>
</
ExpandCollapseColumn>
</
MasterTableView>
<ClientSettings AllowDragToGroup="True">
</ClientSettings>
</telerik:RadGrid>
I'm using the auto-generate columns at runtime. Any help is appreciated - thanks!detailView.DataSource = dsDetail;
detailView.DataMember =
"NDCDetails";
IListSource does not contain a datasource named "NDCDetails". Check your DataMember value.
So I assigned them to the Masterview detail table - that's when I get the| <%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProgramAssignmentGrid.ascx.cs" |
| Inherits="Admin_UserControls_RepImport_ProgramAssignmentGrid" %> |
| <%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %> |
| <asp:UpdatePanel runat="server"> |
| <ContentTemplate> |
| <p runat="server" id="pCaption"> |
| </p> |
| <telerik:RadGrid ID="ProgramGrid" runat="server" BorderStyle="None" AllowSorting="true" |
| AutoGenerateColumns="false" EnableAJAX="True" EnableAJAXLoadingTemplate="true" |
| OnItemCommand="RadGrid1_ItemCommand"> |
| <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true"> |
| <Pdf AllowAdd="false" AllowCopy="true" AllowModify="true" AllowPrinting="true" Author="Anonymous" |
| Keywords="None" PageBottomMargin="1in" PageLeftMargin="1in" PageRightMargin="1in" |
| PageTopMargin="1in" PageTitle="Rep Import - Program Assignments" Subject="Rep Import - Program Assignments" |
| Title="Rep Import - Program Assignments" PaperSize="Letter" /> |
| </ExportSettings> |
| <MasterTableView AutoGenerateColumns="false" PagerStyle-AlwaysVisible="true" Width="100%"> |
| <PagerTemplate> |
| <asp:LinkButton ID="ExportToPdfButton" runat="server" CommandName="ExportToPdf">Export to PDF</asp:LinkButton> |
| </PagerTemplate> |
| <Columns> |
| <telerik:GridBoundColumn HeaderText="Program" DataField="ProgramName" SortExpression="ProgramName"> |
| <HeaderStyle Width="50%" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn HeaderText="Territory" DataField="TerritoryName" SortExpression="TerritoryName"> |
| <HeaderStyle Width="45%" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn HeaderText="Budget" DataField="Budget" SortExpression="Budget"> |
| <HeaderStyle Width="10%" /> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <PagerStyle BorderStyle="None" Position="Top" /> |
| </MasterTableView> |
| </telerik:RadGrid> |
| </ContentTemplate> |
| </asp:UpdatePanel> |
| public partial class Admin_UserControls_RepImport_ProgramAssignmentGrid : MillenniumUserControl |
| { |
| protected void Page_PreRender(object sender, EventArgs e) |
| { |
| Common.ApplyPdfExportStyles(ProgramGrid); |
| } |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| ProgramGrid.Skin = Common.GridSkin; |
| ProgramGrid.AllowPaging = this.AllowPaging; |
| ProgramGrid.ExportSettings.Pdf.Title += (" " + DateTime.Now.ToShortDateString()); |
| } |
| protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e) |
| { |
| if (e.CommandName == RadGrid.ExportToPdfCommandName) |
| { |
| RepImport import = Session["RepImport"] as RepImport; |
| if (import != null) |
| { |
| //add client name to page title |
| string clientName = Client.GetClientNameFromID(import.ClientID); |
| ProgramGrid.ExportSettings.FileName = "Rep Import Preview - Add Reps"; |
| ProgramGrid.ExportSettings.Pdf.PageTitle |
| = string.Format("Rep Import {0} - Add Reps for {1}", |
| DateTime.Now.ToShortDateString(), |
| clientName); |
| } |
| } |
| } |
| public RadGrid Grid |
| { |
| get { return ProgramGrid; } |
| } |
| public string Caption |
| { |
| get { return pCaption.InnerText; } |
| set { pCaption.InnerText = value; } |
| } |
| public bool AllowPaging |
| { |
| get { return allowPaging; } |
| set { allowPaging = value; } |
| } |
| private bool allowPaging = true; |
| } |
Hi
Sorry, I know there have been some threads already discussing this issue, however I an able to find a definitive answer. I recently moved my dev environment to a windows vista machine, Installed IIS and configured IIS6 backward compatibility. Is there a solution for this Javascript Problem?
Thanks
P
1) I need only close button on Rad window header (no maximize, minimise, pin on/off button). How to set that through javascript?