Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
104 views
I have a page which displays a number of images in a RadRotator set in CoverFlowButtons mode. I've recently upgraded the controls to the latest release and added the RenderMode="Auto" option but when run in a modern browser (so using Lightweight or Mobile rendering) the left and right buttons display inside the area of the control where the images reside. So, in its initial state the right button is displayed over by an image and if I scroll the images so that the early images scroll off the left side, in the process they overdisplay the left button. If I switch the Rotator back to "Classic" RenderMode then the buttons correctly display outside the main control area correctly. Is this a bug or something I can manipulate in the styles?

If it helps, the Rotator is full width of the page along the bottom. The containing div has left and right padding of 10px.

Thanks in advance
PaulH
Top achievements
Rank 1
 answered on 01 Aug 2014
2 answers
174 views
I using a rad panel bar in which the the first rad panel item is a rad grid and hence i want to increase the width of the panel item to fit the width of the rad grid.
Please tell how i can achieve this when i click on the expand button.

Thank You
akpaga akpaga
Top achievements
Rank 1
 answered on 01 Aug 2014
3 answers
295 views
Hello,

I need to create a RadGrid object dynamically and be able to export the data to excel. Below is the simple class I created. No error occurs but nothing happens. No file is being created. Am I missing something?

==============================================

Public Class MyOwnClass
        Inherits MyBaseClass
        
        Dim WithEvents ExportBillRadGrid As New RadGrid

        Protected Sub RowControlInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Init
            Page.Controls.Add(ExportBillRadGrid)
        End Sub

        Public Overrides Sub imgDL_Click(ByVal sender As Object, ByVal args As ImageClickEventArgs)
        
            Try
                ExportBillRadGrid.DataSource = SetQueryStrings()
                ExportBillRadGrid.DataBind()
                
                ExportBillRadGrid.ExportSettings.ExportOnlyData = True
                ExportBillRadGrid.ExportSettings.IgnorePaging = True
                ExportBillRadGrid.ExportSettings.OpenInNewWindow = True
                ExportBillRadGrid.ExportSettings.FileName = "Exported-Billing-Data"
                ExportBillRadGrid.MasterTableView.ExportToExcel()


            Catch ex As Exception
                Me.Page.ErrorOnPage = True
                Utils.MiscUtils.RegisterJScriptAlert(Me, "BUTTON_CLICK_MESSAGE", ex.Message)

            Finally

            End Try

        End Sub

        Private Function SetQueryStrings() As DataTable

            Dim query As String = "select * from myTable"


            Dim dt As DataTable = New DataTable()
            Dim connString As String = ConfigurationManager.ConnectionStrings("connString").ToString()
            Dim conn As SqlConnection = New SqlConnection(connString)
            Dim adapter As SqlDataAdapter = New SqlDataAdapter()
            Dim qryCmd = New SqlCommand(query, conn)

            adapter.SelectCommand = qryCmd
            adapter.Fill(dt)

            Return dt
        End Function
    End Class

==============================================

I really need your help.

Thanks!
--
Matt
kith
Top achievements
Rank 1
 answered on 01 Aug 2014
1 answer
106 views
How do you set a MaxLength of edit textboxes at runtime if you don't know the control name? All my columns are autogenerated based on the dataset coming back from a stored proc. 
Kate
Top achievements
Rank 1
 answered on 01 Aug 2014
2 answers
507 views
Good morning,
I have a Radgrid in my aspx.page with some columns:

<telerik:RadGrid ID="EmplReqGrid" runat="server" Skin="Office2010Blue"
GridLines="None" AllowPaging="true" AllowSorting="true"
onexcelmlexportrowcreated="EmplReqGrid_ExcelMLExportRowCreated"
onexcelmlexportstylescreated="EmplReqGrid_ExcelMLExportStylesCreated"
onitemcommand="EmplReqGrid_ItemCommand" onitemcreated="EmplReqGrid_ItemCreated"
onitemdatabound="EmplReqGrid_ItemDataBound"
onneeddatasource="EmplReqGrid_NeedDataSource"
onpageindexchanged="EmplReqGrid_PageIndexChanged"
onpagesizechanged="EmplReqGrid_PageSizeChanged"
onpdfexporting="EmplReqGrid_PdfExporting"
onsortcommand="EmplReqGrid_SortCommand" >
<ExportSettings FileName="EmplReqRpt" OpenInNewWindow="true" IgnorePaging="true" ExportOnlyData="true">
<Excel Format="ExcelML" FileExtension="xls"/>
<Pdf FontType="Subset" PaperSize="letter" />
</ExportSettings>
<MasterTableView AutoGenerateColumns="false" AllowMultiColumnSorting="true" >
<CommandItemSettings />
<Columns>

<telerik:GridBoundColumn HeaderText="Eis-Id" DataField="PRI" UniqueName="PRI" ReadOnly="True" SortExpression="PRI" HeaderButtonType="TextButton" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="NAME" DataField="NAME" UniqueName="NAME" Visible="false" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="ReqNo" DataField="TRKNO" UniqueName="TRKNO" ReadOnly="True" SortExpression="TRKNO" HeaderButtonType="TextButton" >
</telerik:GridBoundColumn>

I would like to hide column name "NAME" from radgrid when displaying on the screen and unhide when I click on export to excel button:

protected void ExporttoExcel_Click1(object sender, ImageClickEventArgs e)
{
try
{
if (!IsPostBack)
return;

RadGrid ReqInfoGrid = (RadGrid)EmpReqReport.FindItemByValue("EmployeeData").FindControl("EmplReqGrid");
ReqInfoGrid.DataSource = Session["dtGrid"];
ReqInfoGrid.DataBind();
ReqInfoGrid.MasterTableView.ExportToExcel();

Please help.
Thanks so much.


}
catch (Exception ex)
{
throw;
}
}
Vitaly
Top achievements
Rank 1
Iron
Iron
 answered on 01 Aug 2014
3 answers
143 views
Hello,
I've downloaded the telerik scheduler.
when I use the "RadSchedule Scenario Wizard"  to add Web Service with Customer Provider, everything works fine.
I would like to make a change to allow Multiple Resources be selected.

I can see the following code in MyDbSechedulerProvider.cs ... However I cannot select more than 1 teacher and 1 student per appointment


public override IEnumerable<Resource> GetResourcesByType(RadScheduler owner, string resourceType)
{
    switch (resourceType)
    {
        case "Teacher":
            return Teachers.Values;
 
        case "Student":
            return Students.Values;
 
        default:
            throw new InvalidOperationException("Unknown resource type: " + resourceType);
    }
}
 
public override IDictionary<ResourceType, IEnumerable<Resource>> GetResources(ISchedulerInfo schedulerInfo)
{
    var resCollection = new Dictionary<ResourceType, IEnumerable<Resource>>();
 
    resCollection.Add(new ResourceType("Teacher", false), Teachers.Values);
    resCollection.Add(new ResourceType("Student", true), Students.Values);
 
    return resCollection;
}
 
public override IEnumerable<ResourceType> GetResourceTypes(RadScheduler owner)
{
    var resourceTypes = new ResourceType[2];
    resourceTypes[0] = new ResourceType("Teacher", false);
    resourceTypes[1] = new ResourceType("Student", true);
 
    return resourceTypes;
}
Boyan Dimitrov
Telerik team
 answered on 01 Aug 2014
1 answer
85 views
Hey, so I am fairly new to JS and Kendo UI and was hoping someone could direct me in the right direction to achieve my goal.  Basically I am wanting to have a grid that allows me to expand each row to see further detail about the data in that row.  For example:

Month  MoneySpent  PointsAccrued
July     $5,000          396

I would like to be able to click on the data row July and it look like this:

Month         MoneySpent          PointsAccrued
July             $5,000                    400
    Food      $2,500                    200
    Bills        $2,500                    200

As you can see, it is a breakdown of the original data row.  Would I use hierarchical or aggregates to achieve this?  Or did I overlook another possible approach?  Thanks ahead for your help
Pavlina
Telerik team
 answered on 01 Aug 2014
1 answer
100 views
Hi ,

How do i hide no child records in my hierarchy grid, it should hide for those items that doesnt have child items.


Regards,
Khushboo
Shinu
Top achievements
Rank 2
 answered on 01 Aug 2014
11 answers
579 views
I have avoided your product for a long time and now I feal justified in that decisision. Unfortunatley I am now working for a shop that uses Telerik controls. Not only are they difficult to use but in a lot of cases they do not even have the normal ASP expected behaviour. I have lost two days trying to get the selected item value form a RadListBox inside a RadAjaxPanel code as below, simple really, the event "test" on the code behind fires but the sender has no selected value. I suspect it is more the AjaxPanel than the Listbox causing the problem.

When I use client side code it works fine, but thats not what I want, I just want to get the value selected when an item is selected.

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
         <telerik:RadListBox ID="lstTRBStandard" 
                                        DataTextField="SubjectAreaName"
                                        DataValueField="SubjectAreaId"
                                        Height="350px"
                                        Width="240px"
                                        runat="server"
                                        OnClientSelectedIndexChanged="test"
                                        AutoPostBack="true" >
                                    </telerik:RadListBox>
</telerik:RadAjaxPanel>

Can someone please show me how this can work.
Phanindra
Top achievements
Rank 1
 answered on 01 Aug 2014
4 answers
142 views
When uploading a file using AsyncUpload, the delete button correctly uses the string I set up for localization. However, after a postback, the same button does not get translated.
The code I'm using resembles this one below.

I found out that the method _marshalUploadedFiles â€‹inside RadAsyncUploadScripts.js uses a hard-coded string in English to generate the button. It does not want to use the localization.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager runat="server" />
        <telerik:RadAsyncUpload Localization-Remove="Supprimer" runat="server" ID="upload" PostbackTriggers="btn2"></telerik:RadAsyncUpload>
        <asp:Button runat="server" Text="Intermediate postback" ID="btn1" />
        <asp:Button runat="server" Text="Final postback" ID="btn2" />
    </form>
</body>
</html>
Nencho
Telerik team
 answered on 01 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?