Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
70 views
Hello

I'd like to add page break inside Scheduler, AgendaView, between each ressource
My configuration is GroupingDirection/vertical and GroupBy/ressource

I try this ...
.RadScheduler_Web20 .rsSubHeader
{
page-break-after : always !important;
}
...but it doesn't work...

I read that it's difficult to add page break inside table (you have to be display: block, float:none ... but it broke the sqheduler...)

Is there a trick I can add tto achieve this ?

Thanks in advance for your help
MI87
Top achievements
Rank 1
 answered on 19 Mar 2014
1 answer
122 views
Hi,
      I Want to do a on button Click Grid AllowScroll Property Enable/Disable using Java-script. How can do it .Please Provide Help Full Solutions with Example.

Thanks,
Rahul
Viktor Tachev
Telerik team
 answered on 19 Mar 2014
6 answers
159 views
Hi,

I am exporting a RadGrid and directing the output to a server file in the OnGridExporting event.
The file is successfully created and if I open it with NotePad the file does in fact begin with %PDF-.
But when I attempt to open it in my browser, I get the error you see in the title of this thread.
I cannot open it directly with Adobe Reader either.

I used the technique identified in this thread to create the file (although it was for an xls file):

Here are the relevant code pieces:

Declaration:
<telerik:RadGrid ID="grdRACI" Skin="Outlook" GridLines="Both" runat="server" AutoGenerateColumns="true" OnGridExporting="grdRACI_Exporting"
                            OnItemDataBound="grdRACI_ItemDataBound" OnColumnCreated="grdRACI_ColumnCreated" >
                            <MasterTableView NoMasterRecordsText="No responsibilities defined" NoDetailRecordsText="No responsibilities defined">
                            </MasterTableView>
                            <ClientSettings>
                                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                <Resizing AllowColumnResize="true" AllowResizeToFit="true" ResizeGridOnColumnResize="true" />
                            </ClientSettings>
                            <ExportSettings OpenInNewWindow="false" HideStructureColumns="true">
                            </ExportSettings>
                        </telerik:RadGrid>

Code that performs the export:
...
grdRACI.ExportSettings.Pdf.PageTitle = "RACI Chart For - " + Session["currentProcessName"].ToString();
        grdRACI.ExportSettings.Pdf.DefaultFontFamily = "Arial Narrow";
        grdRACI.ExportSettings.Pdf.PageLeftMargin = Unit.Parse("0.25in");
        grdRACI.ExportSettings.Pdf.PageRightMargin = Unit.Parse("0.25in");
        Session["RACI_PDF_Filename"] = "ExternalDocs/" + "RACI_Chart_ For_" + Session["currentProcessName"].ToString() + " - " + DateTime.Now.ToString("ddMMMyyyy-HHmm") + ".pdf";
        grdRACI.MasterTableView.ExportToPdf();
...

Code that creates the file:
protected void grdRACI_Exporting(object source, GridExportingArgs e)
    {
        string path = Server.MapPath("~/" + Session["RACI_PDF_Filename"].ToString());
        using (FileStream fs = File.Create(path))
        {
            Byte[] info = System.Text.Encoding.Unicode.GetBytes(e.ExportOutput);
            fs.Write(info, 0, info.Length);
        }
        Response.Redirect(Request.Url.ToString());
    }


What am I doing wrong?

Thanks in advance for any suggestions.

Jim
jlj30
Top achievements
Rank 2
 answered on 19 Mar 2014
1 answer
287 views
Is it possible to use the mask with the password text mode?  A quick attempt reveals everything shows up as password dot.
Thanks!
Maria Ilieva
Telerik team
 answered on 19 Mar 2014
1 answer
78 views
Hi.
i want to export to excel with a text at the end of grid.how to achieve this??
Shinu
Top achievements
Rank 2
 answered on 19 Mar 2014
4 answers
165 views
I have a Hierarchical Grid with a CommandItemTemplate defined in the GridTableView so that each child table has the same Button control that when clicked will reset its filter columns.  What I can't figure out is how to get a reference to the parent GridTableView of the button in the server side button click.

I know how to traverse the ALL the child GridTableViews but I just want to reset the column filters on the GridTableView that the button was clicked in.  To do that I need a reference to the parent GridTableView of the button.  Any ideas how I can get a reference to that?

john81
Top achievements
Rank 1
 answered on 19 Mar 2014
3 answers
123 views
My site has RTL layout.
I use RadMenu on the site for a long time and it was fine.
Now I've set the menu drop-down to contain two columns, and since then there is a strange problem:
In IE8 and Firefox - for the first time the drop-down menu appears to the right of the item that opens
it
, and only the second time and on - it appears on the left. (- This is the proper look for RTL)
This is particularly problematic in the first items on the menu because then the right part of the
pop-up menu appears off screen.
In Chrome - There is no difference between the first time and the other times, but it's always not aligned with the item that opens
it
.
Is it a known bug?
How can I solve it?
Thank you.
banana
Top achievements
Rank 1
 answered on 19 Mar 2014
8 answers
288 views
Hi
Firstly I am facing so many rendering problems in IE8 (We are ignoring IE7 so no need to support in that bug browser).

Here I am attaching an image please refer.
To remove this white space I had try this property in CSS

#rgVessel_GridHeader, .rgHeaderDiv {margin-right:0!important}

It works but the alignment of Grid vertical line disturbed. Is it right hack for removing this white space? Then
How we can restore the Grid Vertical Lines.?

Please help us.
Thanks in Advanve

vargis
mailtovargis@gmail.com
Venelin
Telerik team
 answered on 19 Mar 2014
13 answers
149 views
In my Project I'm using a RadSchedular where currently highlighting  of vertical columns is only poosible.
The requirement is of highlighting of horizontal column as well along with the vertical one when the the cursor is placed on particular cell.

Attached is the display of  the Image from part of the Schedular in browser. Suppose now if the cursor is placed on 52 CW only particular row is highlighted ,the requirement is of highlighting of columns as well paralleled.

Below is the code snippet for the RadSchedular 
<telerik:RadPane ID="RadPane2" runat="server" OnClientResized="PaneResized" Height="100%"
      Scrolling="None" MinWidth="200" OnClientCollapsing="CollapseToMinWidth" OnClientBeforeExpand="ExpandFromMinWidth">
      <telerik:RadScheduler ID="SPScheduler" runat="server" SelectedView="TimelineView"
          FirstDayOfWeek="Monday" LastDayOfWeek="Friday" OverflowBehavior="Scroll" OnClientAppointmentMoveEnd="OnAppoinmentMoveEnd"
          OnClientAppointmentResizeStart="OnAppoinmentResizeStart" OnClientAppointmentInserting="OnAppointmentInserting"
          DataEndField="End" DataKeyField="ID" OnClientFormCreated="OnFormCreated" DataStartField="Start"
          DataSubjectField="Phase" CustomAttributeNames="Iteration,Servers,DBType" StartEditingInAdvancedForm="True"
          StartInsertingInAdvancedForm="True" OnAppointmentDelete="SPScheduler_AppointmentDelete"
          OnAppointmentInsert="SPScheduler_AppointmentInsert" OnAppointmentUpdate="SPScheduler_AppointmentUpdate"
          OnAppointmentDataBound="SPScheduler_AppointmentDataBound" OnAppointmentCommand="SPScheduler_AppointmentCommand"
          OnNavigationCommand="SPScheduler_NavigationCommand" OnTimeSlotCreated="SPScheduler_TimeSlotCreated"
          OnFormCreated="SPScheduler_FormCreated" ShowResourceHeaders="False" OnPreRender="SPScheduler_PreRender"
          OnNavigationComplete="SPScheduler_NavigationComplete" Height="100%" MinimumInlineFormHeight="500"
          MinimumInlineFormWidth="200" Skin="Simple">
          <DayView UserSelectable="false" />
          <WeekView UserSelectable="false" />
          <MonthView UserSelectable="false" />
          <TimelineView NumberOfSlots="35" SlotDuration="7.00:00:00" GroupingDirection="Vertical"
              GroupBy="Order" ShowInsertArea="false" /,


  
Farjana
Top achievements
Rank 1
 answered on 19 Mar 2014
8 answers
515 views
I have a web page that uses jquery.load() to load different pages into a div.

When I invoke the .load command, it loads the page perfectly into a div, but it throws an error saying that "$telerik is undefined"

On the main page, I have a link that does this when you click it...

changeTab: function (tabURL) {
        var loader = $("#tabLoad");
        var content = $("div[id$='pnlTabContent']");
        loader.css("height", content.height());
        loader.fadeIn('fast', function () {
            content.load(tabURL, function () {
                loader.fadeOut("fast");
            });
        });
    }

When I call that function, I pass in a URL that has a bunch of telerik sliders on it. Everything shows up and works properly (all CSS and self defined JavaScript) except the telerik controls.

The strange thing is that when I invoke the function again or if I call "content.load(tabURL)" a second time, everything loads fine and all the telerik controls load perfectly.

It seems as if it has to load the telerik library the first time, and the second time, it will work.

Is there any way for me to load the telerik library or initialize telerik before I call the content.load() function?

Niko
Telerik team
 answered on 19 Mar 2014
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?