Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 views
Hello
i need show a pdf in modalpopupetender or something like that. but i have a problem with a IPAD. beacuse in IPAD the files pdf does not show correctly.
I Think, may be, exists a control in Telerik that show the pdf correctly.
i need yours help.
thank you.
Sebastian
Telerik team
 answered on 01 Jun 2011
1 answer
104 views

What I am trying to do is reorder a set of questions.  What i pull into the grid is the
intQuestionID, strQuestion and the intOrder

What I want to be able to do is drag and drop and reorder the questions, do you have an example of doing this only server side using the Radgrid_rowDrop.

<tr>
                                <td align="left"><telerik:RadGrid ID="myRad" runat="server" ClientSettings-AllowRowsDragDrop="true" ClientSettings-Selecting-AllowRowSelect="true"
                                    ClientSettings-Selecting-EnableDragToSelectRows="false">
                                    <MasterTableView AutoGenerateColumns="false" DataKeyNames="intQuestionId">
                                    <HeaderStyle ForeColor="White" CssClass="backColor" BackColor="Steelblue" Font-Bold="true" BorderColor="#404040" BorderWidth="1px" />
                                        <Columns>
                                            <telerik:GridDragDropColumn HeaderStyle-Width="18px"></telerik:GridDragDropColumn>
                                            <telerik:GridBoundColumn DataField="strQuestion" HeaderText="Question"></telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="IntOrder" HeaderText="Order"></telerik:GridBoundColumn>
                                        </Columns>
                                    </MasterTableView>
                                </telerik:RadGrid></td>
                            </tr>

 Protected Sub ddlQuestions_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlQuestions.SelectedIndexChanged
        Dim catId As String = ddlQuestions.SelectedValue

        If catId = "0" Then
            ScriptManager.RegisterClientScriptBlock(Page, GetType(Page), "OpenWindow", "PickCategory();", True)
        Else
            FillGrid()
        End If
    End Sub

Private Sub FillGrid()
        Dim CatId As String = ddlQuestions.SelectedValue
        Dim itemCount As Integer = 0

        sql = "Select intQuestionId, strQuestion, intOrder from tblSRPQuestion where intCategoryID = " & CatId
    
        myDataTable = New DataTable
        myDataTable = getData(sql)

        myRad.DataSource = getData(sql)
        myRad.DataBind()

    End Sub

  
    Protected Sub myRad_RowDrop(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridDragDropEventArgs) Handles myRad.RowDrop

    End Sub

Mira
Telerik team
 answered on 01 Jun 2011
1 answer
237 views
Is there a way to disable the expand/collapse button?  I'm trying to get the tree structure and layout but always want the treelist expanded without allowing the user the ability to collapse the children.

Thanks,
Veli
Telerik team
 answered on 01 Jun 2011
1 answer
89 views
Hello,

I am trying to persist grid state behind the scenes without requiring the user to take any action. I have implemented a GridSettingsPersister class and it works perfectly on button click.  I have implemented the ICallbackEventHandler interface to call my server-side persistence method and hooked-up calls from OnColumnHidden, OnColumnShown and OnTableDestroying.

My only issue revolves around persisting column reorder changes - on the server side (with <ClientSettings ReorderColumnsOnClient="true") the OnColumnsReorder event seems to be the in-process event (i.e. OnColumnsReordering) but there doesn't appear to be any corresponding post-process event (i.e. OnColumnsReordered) - the client side (<ClientSettings ReorderColumnsOnClient="false") exposes both events for a move right or left (OnColumnMovingToLeft, OnColumnMovedToLeft, OnColumnMovingToRight, OnColumnMovedToRight) [ Side note: the 'OnColumnMovingTo' methods seem to be misnamed Right should be Left and vice-versa] but the events only fire for the first column exchange so when a column is reordered more than a single spot I can't find any way to get the final position to set the OrderIndex.

I have a small (7.35 MB) sample app if needed.

Thanks for your help.

Regards,

Steve
Tsvetina
Telerik team
 answered on 01 Jun 2011
3 answers
87 views
Is it possible for you to give us the option to render the scriptmanager scripts in the header instead of inside the body?

What I would love is the ability to specify it on a script level...so I could list all my scripts in the manager, but specify that 1&2 show in the header, but 3&4 render at the bottom of the body tag.
Simon
Telerik team
 answered on 01 Jun 2011
1 answer
129 views
I am using the RadFileExplorer and need to combine the default Telerik CSS into one file rather than making 18 different request. I included the RadStyleSheetManager as below.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="file_manager.ascx.cs" Inherits="MyProject.file_manager.file_manager" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" EnableStyleSheetCombine="true" />    
<telerik:RadScriptManager ID="RadScriptManager1" runat="Server" EnableScriptCombine="true" LoadScriptsBeforeUI="false" ScriptMode="Release" />
<telerik:RadFileExplorer runat="server" ID="FileExplorer1" Width="520px" Height="520px" Skin="Simple" />

Now, none of the default styles are loading. I cannot include the RadStyleSheetManager tag within my control.

I am using Telerik version 2010.2 929
Simon
Telerik team
 answered on 01 Jun 2011
1 answer
168 views
Hi,

What is the time table for the SAK release? Is there any additional information about what to expect will be included in the release so we can plan for future projects?

It is my understanding that there are some issues that prevent to install SAK web parts as sandbox solutions. When we can expect to have this issue resolved?

Thanks
Sebastian
Telerik team
 answered on 01 Jun 2011
1 answer
135 views
Hi all,

I am passing some data back to AjaxRequest through e.Argument. I pass the data in as an array, it comes out as a comma separated list. Is there any way to maintain my object? I am working with a large set of data and it is confusing to have a huge list of CSVs not associated with any titles. 

protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
    //TODO: This needs extensive work still.
    Logger.InfoFormat("Received an ajax request. Arguments are: {0}", e.Argument);
 
    string[] arguments = e.Argument.Split(',');
    if (arguments[0] == "Update Local Settings")
    {
        string dockID = arguments[1];
 
        Logger.InfoFormat("Dock ID: {0}", dockID);
        CormantRadDock dock = Utilities.FindControlRecursive(Page, dockID) as CormantRadDock;

etc... would like to do arguments["Command Name"] == "Update Local Settings";
Shinu
Top achievements
Rank 2
 answered on 01 Jun 2011
1 answer
118 views
2 Issues,
1. When I export to a pdf file it does not center the text of my columns under their headings, they are off a bit.  They are centered in the grid but not in the PDf Export.

2. When exporting to a Excel file, there seems to be 3 buttons that export along with the header that they are in, i am assuming its the export buttons I turned on, is there a way to shut this off and only export the actuall data in grid.

Thanks
Princy
Top achievements
Rank 2
 answered on 01 Jun 2011
1 answer
109 views
Hello 
Here's the problem : I have a telerik radscheduler project linked with a database project . In order to update the database when a modification is done on the radscheduler i have decided to override the default on appointmentupdate method .
 protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
    {
        AppointmentInfo ai = FindById(e.ModifiedAppointment.ID);
        ai.CopyInfo(e.ModifiedAppointment);
        try
        {
            Business.DatabaseAccess myAccess = new Business.DatabaseAccess();
            AppointmentSet to_modify = myAccess.getAppointmentByDate(e.ModifiedAppointment.Start);
            myAccess.modifyAppointmentDate(e.ModifiedAppointment.Start, e.ModifiedAppointment.End, to_modify.Id);
        }


        catch
        {
            throw new Exception("unknown problem");
        }


    }

My solution is very close to the binding to generic list example in your site : http://demos.telerik.com/aspnet-ajax/scheduler/examples/bindtolist/defaultcs.aspx.  

This solution seems to work fine but each time i launch the avanced edit template the radscheduler project crashed . Could you explain to me what did i miss ?
Peter
Telerik team
 answered on 01 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?