Telerik Forums
UI for ASP.NET AJAX Forum
25 answers
607 views
We've got a project in which there is heavy use of the radscheduler component, which is great.  Now, however, the client wishes to be able to print the schedule in a monthly view and weekly view.  I started looking at a reporting services plugin that had a calendar control but the bottom line is that I want it to look exactly like the radscheduler on the page.  I have thought of trying to make a bigger version that would fill a portrait or landscape page and just thell the user to print.  Obviously the background colors are going to be lost, etc... and good luck telling them to switch those settings.

What's really needed here is a way to export the RadScheduler to a printable format.  For example:

RadScheduler1.ExportAsPDF("portrait");

That is a simplified parameter but if there was a way we could basically get the control to "render itself" into a PDF or even an image then printing can be achieved.  What would be best about feeding out a PDF bytestream is that we could save the PDF and use those PDFS to provide nice snapshots of the calendar in various times.

The two areas would be month view and week view.... eventually you could do it for all of the other views.

How tough would this be to implement?  Is there a workaround to achieve this that I'm not thinking of?  I would rather not use any other thirt party calendar controls/products, Telerik has it looking perfect I just need to print it! :-)


Boyan Dimitrov
Telerik team
 answered on 28 Oct 2013
16 answers
387 views
Hello,
  I am adding below tag <ExportSettings in the <telerik:RadScheduler runat="server" ID="RadScheduler1" .........> Tag
<
ExportSettings OpenInNewWindow="true" FileName="SchedulerExport">
                <Pdf PageTitle="Schedule" Author="Telerik" Creator="Telerik" Title="Schedule" />
            </ExportSettings>

there is button to export pdf:

protected void btnExportPdf_Click(object sender, EventArgs e)
    {
        RadScheduler1.ExportToPdf();
    }
but the problem is no pdf open to download. It's resize the radScheduler control in small size when i click in Export button and no download popup page. I see in demo page path:http://demos.telerik.com/aspnet-ajax/scheduler/examples/pdfexport/defaultcs.aspx.

How is the problem I can't understand.

Please help me as soon as possible.


Thanks

Jiten Mutum
Boyan Dimitrov
Telerik team
 answered on 28 Oct 2013
1 answer
55 views
I want wen user click on Button "Choose Image" magemanager will appear. then when user click on an imager, image's url wil appear on a text box
ckeditor can do this but not good. I don't know how to do that with rad controls can you hel me
Thankss
Ianko
Telerik team
 answered on 28 Oct 2013
1 answer
72 views
I have the following issue with my grid needdatasource method, can't figure out why this keeps happening and its killing me:

    void grid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
        RadGrid grid = (RadGrid)sender;
        string id = grid.ID;
        DataTable current = (DataTable)HttpContext.Current.Session[int.Parse(id.Split(new string[] { "RadGrid" }, StringSplitOptions.RemoveEmptyEntries)[0])];
        grid.DataSource = current;
    }

If i go to the page directly no problems what so ever, everything works perfect,but if i try to navigate to that page from a different page, lets say using server.trasnfer or response.redirect, i keep getting this error:

Unable to cast object of type 'System.Int32' to type 'System.Data.DataTable'.

On this line, does anyone know why this would happen or how to fix it?
Eyup
Telerik team
 answered on 28 Oct 2013
1 answer
221 views

I am trying to use the client side repaint method. But I can not seem to get it to work.  Can anyone give me the correct way to access the method?


Part of my javascript function:

            var payeeElement = window.$find(var_radPayeeSearchClientID_fromASPX);
            payeeElement.control.repaint();



Thanks.
Shinu
Top achievements
Rank 2
 answered on 28 Oct 2013
1 answer
132 views
Hi,

I have the following script rendering in my aspx:


Sys.Application.add_load(function () {
    var target = $find('{0}');
 
    alert(target.get_id());
    //finds it
 
    $addHandler(target, "OnClientItemsRequested", function (sender, e) { alert('OnClientItemsRequested'); });
    $addHandler(target, "onclientItemsRequested", function (sender, e) { alert('onclientItemsRequested'); });
    $addHandler(target, "clientItemsRequested", function (sender, e) { alert('clientItemsRequested'); });
    $addHandler(target, "clientitemsrequested", function (sender, e) { alert('clientitemsrequested'); });
    $addHandler(target, "onclientitemsrequested", function (sender, e) { alert('onclientitemsrequested'); });
 
    //none fires
});

The alert showing server id fires, nothing else happens after using the auto-populate, while the same event works when I configure the event-handler in combobox's properties.

My problem is none of the subscriptions works, so is there a way to attach an event-handler function for OnClientItemsRequested in JS?

Thx in advance,
Branimir Giurov
Shinu
Top achievements
Rank 2
 answered on 28 Oct 2013
20 answers
1.2K+ views
After setting a filter, I need to get the count of the records that match the filter. 

The footer displays it but I can't figure out how it does it.

Thanks,

Chad
Princy
Top achievements
Rank 2
 answered on 28 Oct 2013
1 answer
694 views
I am having trouble with formatting a column that is bound to a nullable datetime field. The grid is bound on the client side using ajax. Wondering if anyone has seen this behavior before, and if so, what the solution was.

Here is the part of the grid instantiation code that formats the nullable datetime field:

columns.Bound(c => c.MediaFileVersion.MediaFile.LastCheckOutDate).ClientTemplate("<#= $.telerik.formatString('{0:MM/dd/yyyy - hh:mm tt}', GetDateFrom(LastCheckOutDate)) #>").Title("Check-out Date");
                        

The LastCheckOutDate field is of type nullable datetime.

The page has a javascript error like this:

Uncaught ReferenceError: LastCheckOutDate is not defined

It seems that Telerik grid does not know how to render a nullable datetime field. Would appreciate any help or ideas relating to the above problem.

Thank you




Viktor Tachev
Telerik team
 answered on 28 Oct 2013
1 answer
69 views
I have three different datasets.  The user is going to be toggling between the three datasets.  The three datasets are different data, and when they are swapped out, the labels need to be changed client side.  In the future, more data sets could be added with different column names, so I need a way for this process to be dynamic.

How can this be done?

Marin Bratanov
Telerik team
 answered on 28 Oct 2013
1 answer
169 views
Hi,

I have created a AutoCompleteBox similar as the following:
<telerik:RadAutoCompleteBox ID="TEST" runat="server" AllowCustomEntry="false" DropDownPosition="Automatic" InputType="Token" RenderMode="Lightweight" Delimiter="," DataTextField="field_name" DataValueField="field_value">
<WebServiceSettings Path="Default.aspx" Method="GetSet" />
</telerik:RadAutoCompleteBox>

And in the code behind as the follows:
Imports Telerik.Web.UI
Imports System.Data
Imports System.Web.Services
 
Partial Class _Default
    Inherits System.Web.UI.Page
 
    <WebMethod()> _
    Public Function GetSet(context As RadAutoCompleteContext) As AutoCompleteBoxData
        Return Nothing
    End Function
 
End Class

After put some text in the AutoCompleteBox, he will alert 'the method 'GetSet' failed' all time. The breakpoint i had putted at the first rule of the webmethod don't fire. This did worked with other controls, but not with this control.

Known issue or am i doing something wrong?
I have checked the example in your documentation already.
Shinu
Top achievements
Rank 2
 answered on 28 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?