Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
115 views
Hello guys,

I have a problem regarding exporting the content of a RadGrid if this RadGrid resides inside of an UpdatePanel.

From what i have seen, the exporting occurs on the page postback. But, since the Update Panel does not allow the refresh (postback) of the entire page (by the way, this is actually the reason I'm using it, so that the postback needed to perform an action would occur at the panel level and not the page level), the exporting does not work. To make it work, I have registered the control causing the exporting (RadComboBox) as a trigger in the Update Panel, but that just ruins the whole purpose of the Update Panel, as the whole page is being refreshed.

And even so, with the trigger, I'm having problems with the export settings as they don't work properly (for instance, when the IgnorePaging property is set to True, it shows me only the first page), and I'm guessing that is also because of the UpdatePanel my RadGrid and RadComboBox reside in.

I could use any help. Thanks.
Alex
Top achievements
Rank 1
 asked on 30 Jun 2008
2 answers
262 views
Hello,

I'm currently working with the telerik tooltip image map project.  Now my question is.  I m trying to take the tooltip click event from the ascx contoller and insert into my default.aspx page.  I do not want to use the rapopen window or popup.  I simply want to click on the tooltip link over the imagemap and have it insert into the aspx listbox.  I have tried using javascript to do this, but for some reason I cant pass the object over.  Please help. 

Thanks,

Mark
Svetlina Anati
Telerik team
 answered on 30 Jun 2008
1 answer
127 views

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

Svetlina Anati
Telerik team
 answered on 30 Jun 2008
1 answer
93 views
Hi everybody.

I am looking for some help on building a "Single Line Sliding pane" that should look something like this (i hope this simple mockup makes any sense):

When collapsed:

[ {PaneTitle}                                             _________{ExpandIcon}  ]

When expanded:

[ {PaneTitle}                                         {dockicon}{CloseIcon}  ]
| Content her is only visible when pane is                                        |
| expanded...                                                                                 |
|                                                                                                    |
|                                                                                                    |
|                                                                                                    |
|__________________________________________________|

The pane should expand when hovering over the pane or using the {ExpandIcon}.

Has anyone achived this using RadSplitter with sliding panes?

Thanks in advance,

Christian, Denmark
Svetlina Anati
Telerik team
 answered on 30 Jun 2008
3 answers
71 views
Hello,

after having some trouble with RadChart until version 4.x, we just updated from "RadControls for ASP.NET AJAX 2008 1 515" to new "RadControls for ASP.NET AJAX 2008 1 619".

Here is our scenario:

RadChart (IntelligentLabelsEnabled = false -> http://www.telerik.com/community/forums/thread/b311D-begact.aspx#568759 ) with 2 ChartSeries of type Bar. ChartSeriesItem-Labels are visible and rotated by -90. In 515 all item labels at least had a small distance (about 5 px or so) to the plotareas border (top, bottom), depending on the length of the label´s text. In 619 all (long text) item labels just end at the border of the plotarea.

So I tried to work with margins and paddings (in 619), but paddings just do the opposite of what I want - in case of specifiing negative values you get funny results, too. Setting margins just had no visible effect. So I tried and tried, getting angry about that and tried to set margins in 515, where it worked as expected - So I think, it´s just a bug.


Greetings,
Daniel
Giuseppe
Telerik team
 answered on 30 Jun 2008
2 answers
247 views
Hi,
I'm getting an error when I try to page using  Master/Detail tables. The error I get is :

Sys.WebForms.PageRequestManagerServerErrorException: Syntax error: Missing operand before 'And' operator.

I'm using version 2008.1.610.35 of the grid.  Here is the code that is executed in the NeedDataSource:

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!

Edited to add - I did originally assign the datasource and datamember to the detailView:

detailView.DataSource = dsDetail;

detailView.DataMember =

"NDCDetails";


But then when I try to page I get the error:

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
Sys.WebForms.PageRequestManagerServerErrorException: Syntax error: Missing operand before 'And' operator.
error. Thanks!

joni
joni
Top achievements
Rank 1
 answered on 30 Jun 2008
1 answer
221 views
I have a TabStrip, and each tab has a RadGrid in it.  They all have the same PDF export settings and the same code (only the columns and data source are different).  But only the 1st grid works when I export to PDF.  Is this a known issue that I can't export from multiple grids on the same page? 

In the grids that don't work, when I click my Export To PDF button, the pager item and Export To PDF button disappears, and nothing happens.

Here is the code for one of the grids that doesn't export correctly - am I missing anything?  I also tried adding MasterTableView.ExportToPDF() but that didn't make a difference, and the first grid on my page works without it.

<%@ 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;  
}  
 

Kelly
Top achievements
Rank 1
 answered on 30 Jun 2008
2 answers
381 views
Hi,

I randomly get the following JavaScript error while navigating through a site I built using RadControls for ASP.net Ajax. I am using v2008.1.530.20 of the Telerik.Web.UI.dll. The error happens completely at random, while clicking on different rad controls.

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near 'Telerik.Web.UI 2008.'.

Is there a version that fixes this issue. Or is there another resolution for this bug.

any help will be appreciated.

thank you.
Anshul
Top achievements
Rank 1
 answered on 30 Jun 2008
3 answers
118 views

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

Paul Gallen
Top achievements
Rank 1
 answered on 30 Jun 2008
2 answers
397 views
Hi,

1)      I need only close button on Rad window header (no maximize, minimise, pin on/off button). How to set that through javascript?


Thanks in advance.
Georgi Tunev
Telerik team
 answered on 30 Jun 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?