Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
60 views
I am confused about the user of a RadAjaxManagerProxy within a User Control. My scenario is this: I have a main page that has a RadGrid with a button to add a new row at the top. This page is ajaxified with a RadAjaxManager. I have the RadGrid set to update the RadGrid only in the RadAjaxManager in the main form. When the user select to add a row, an edit form is displayed in line using a User Control (ascx). Up until now I did not have a RadAjaxManagerProxy within the user control, but it was brought to my attention that there were performance issues. Specifically when a user selects an item in a RadComboBox in the user control I need to bind another RadComboBox to data based on the selection made in the first RadComboBox. It is here that the performance issue was noticed. In this setup all post-backs are asynchronous and the form (main and user control) do their thing without any full page post-backs. I assume that because the RadGrid updates the RadGrid, that covers the user control in the RadGrid updating itself.

So I decided to fine-tune the ajax settings, by adding a RadAjaxManagerProxy to the user control and adding an ajax setting that specifies that the first RadComboBox updates the second RadComboBox. The result is no apparent change. I have run this with Fiddler and the request and response sizes are unchanged, with or without the proxy. 

Is this what is to be expected? I would think that the proxy would reduce the request and response size for the simple update of one combo box in the user control. Is it the case that the RadAjaxManager settings in the main page override anything set in the proxy?

Thanks, Steve
Maria Ilieva
Telerik team
 answered on 02 Mar 2012
1 answer
158 views
I've got a master grid with a parameter row that has several detail grids, all tied to the master. Currently, there's a stored proc that returns the data for all of these grids in a single resultset. When I was using a single Detailtable with a GroupByFields, the grids would split themselves out by that breakout field beautifully. But I've found out that the child grids need to have different sets of columns based on the type of breakout that it is.

Initially, I had done this by hiding all of the columns, and only making it visible if that particular breakout needed to show it. But that just gave me a wide list of columns that were mostly empty, since most of the columns did not apply to every breakout type.

I see that I can create a separate detail grid for each type of breakout, and attach a separate SqlDataSource to each one, but since the DataBind method does not work there, it's going to make the process lengthy and difficult. Is there a way to attach the entire set of detail tables to a single stored proc call (returning either a single resultset or one per breakout), and only map out a single detailtable on the front page?

I've got 17 different breakout detailtables, with column spreads something like this:
Type 1: Col 1, 2, 3, 4
Type 2: Col 2, 3, 4, 5
Type 3: Col 5, 6, 7, 8
Type 4: Col 1, 3, 6

Originally, I had every possible column returning, and would only show the ones I needed. The code was relatively compact and clean at that point. Elegant, really. I'd like to find a way to keep that clean codebase if possible.
Maria Ilieva
Telerik team
 answered on 02 Mar 2012
1 answer
52 views
Hi,
I'm having problems with the loading icon showing up behind my controls.
I've tried setting the "line" property etc.

What might be going on is that the panel or window behind is not turning to transparent.

this works in ie8 - up, firefox, ect.  just seem to be an ie7 issue

anyone know what to do?


Maria Ilieva
Telerik team
 answered on 02 Mar 2012
1 answer
96 views
Hi,

I use the scheduler to show what happened in the past hours/days. By default, when I use the scheduler, it shows me what will happen. Time line, multi day and week views will show me today plus a couple of days. Is there an easy way to always show past events? 

thanks 

Tommy
Ivana
Telerik team
 answered on 02 Mar 2012
1 answer
124 views
Hello,

I use asyncupload with image-handler.ashx

on my development server radupload is working fine
on my productioserver
i got:

! filename.gif X remove

and the image does not change and is not uploaded to my database

Please help

Yours,

Mart
Dimitar Terziev
Telerik team
 answered on 02 Mar 2012
1 answer
114 views

We are currently working on localisation of the radgrid to support multilanguage.
Because not all settings were available to change via a resx file, we have a solution through the loading of skins. (and we set the different translated values through the XML variables)

we are already setting following values in our dutch version :

 

 

<GroupingSettings CollapseTooltip="Groep inklappen"

 ExpandTooltip="Groep uitklappen"

 GroupSplitDisplayFormat="Items {0} tot {1} worden getoond"

 UnGroupButtonTooltip="Klik hier om de groep te ontkoppelen"

 UnGroupTooltip="Verschuif buiten de balk om te ontkoppelen" />

 

<GroupPanel Text="Verplaats een kolomkop naar hier om op die kolom te groeperen" >

 </GroupPanel>

 

<HierarchySettings CollapseTooltip="Inklappen"

 ExpandTooltip="Uitklappen"

 SelfCollapseTooltip="Verwijzing inklappen"

 SelfExpandTooltip="Verwijzing uitklappen" />

 

<MasterTableView CommandItemSettings-AddNewRecordText="Nieuw record toevoegen"

 CommandItemSettings-ExportToCsvText="Exporteren naar CSV"

 CommandItemSettings-ExportToExcelText="Exporteren naar Excel"

 CommandItemSettings-ExportToPdfText="Exporteren naar PDF"

 CommandItemSettings-ExportToWordText="Exporteren naar Word"

 CommandItemSettings-RefreshText="Verversen"

 NoDetailRecordsText="Geen subrecords gevonden"

 NoMasterRecordsText="Geen records gevonden" >

 </MasterTableView>

 
<
PagerStyle PagerTextFormat="Pagina wisselen: {4} &nbsp;Pagina <strong>{0}</strong> van <strong>{1}</strong>, items <strong>{2}</strong> naar <strong>{3}</strong> van <strong>{5}</strong>."

 PageSizeLabelText="Pagina grootte" />

 

<SortingSettings SortedAscToolTip="Sorteren van laag naar hoog"

 SortedDescToolTip="Sorteren van hoog naar laag"

 SortToolTip="Sorteren" />

<StatusBarSettings LoadingText="Wordt geladen "

ReadyText="Gereed" />



We are looking for a list of the default values for the settings, so that we know which ones we should be changing additionally, and to serve as a source for translation towards other languages.
I can take an educated guess of several of the values, but to make sure I could use a list.
something like this:

HierarchySettings.CollapseTooltip="Collapse"

HierarchySettings.ExpandTooltip="Expand"
HierarchySettings.PageSizeLabelText="PageSize"
...

Is there a place where I can find these default values? (same thing is to be done for the datepicker, but that is for another forum)

 

 

Thanks.

Shinu
Top achievements
Rank 2
 answered on 02 Mar 2012
1 answer
207 views

Following are the two issues with Telerik RadAsyncUpload Control on a sharepoint 2007 project which are keeping us from making progress on a Form:


1.
      
Telerik Control giving an exception when we provide UNC Path for a TargetLocation property of Telerik RadAsyncUpload Control on a shared UNC path on a server different than the Web Server on which Telerik and the form is hosted. The form uses Telerik to upload the attachments temporararily to a ASP.Net temporary folder on Same Web Server hosting the Form and Telerik RadAsyncUpload Control BUT on clicking the submit button, we want to save  attachments to a permament location on a shared UNC path via the Targetlocation property of Telerik Control and this is giving the  following error: Image attached
Logon Failure: unknown user name or bad password

2.       Also, we have one issue occuring when we browse the form which hosts the telerik RadAsyncUpload control on Firefox. The progress area is stuck forever when we upload files which are not valid.  Image attached

 

Kalina
Telerik team
 answered on 02 Mar 2012
3 answers
111 views
Hi there,

I am keen to (confirm('If someone actually wants to delete their dock?'))

But it seems DockCloseCommand client side command fires after it's been closed??
Slav
Telerik team
 answered on 02 Mar 2012
1 answer
121 views
Hi all,

I am having issues transfering data from one list box to another. I am using Item Templates so I know that I need to use "AutoPostBackOnTransfer" and I am handerling the listbox_transferred event. However, my data still does not display in the second list box. Can anyone spot the bit I am missing or doing incorrectly.

default.aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="TestingListBoxTemplates._Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>Testing List Boxes</title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
 
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" height="800px" width="1242px">
            <telerik:RadComboBox ID="rcbContactName"  runat="server" EmptyMessage="Enter a contact name" HighlightTemplatedItems="true" EnableLoadOnDemand="true" AutoPostBack="true" />
 
            <telerik:RadListBox ID="RadListBox1" runat="server" AllowTransfer="True" height="600px" Width="400px" TransferToID="RadListBox2" AutoPostBackOnTransfer="true" OnTransferred="RadListBox1_Transferred">
                <ItemTemplate>
                   <table width="300px">
                        <tr>
                        <td width="100px"><span><%# DataBinder.Eval(Container.DataItem, "contactID")%></span></td>
                        <td colspan="3"><span><%# DataBinder.Eval(Container.DataItem, "FirstName")%> <%# DataBinder.Eval(Container.DataItem, "Surname")%></span></td >
                        </tr>
                        <tr><td><span>Company Name:</span></td><td><span><%# DataBinder.Eval(Container.DataItem, "CompanyName")%></span></td>
                        <td><span>Industries:</span></td><td><span><%# DataBinder.Eval(Container.DataItem, "Industries")%></span></td>
                        </tr>
                        <tr><td><span>Email Address:</span></td><td><span><a href="mailto:<%# DataBinder.Eval(Container.DataItem, "Email")%>"><%# DataBinder.Eval(Container.DataItem, "Email")%></a></span></td>
                        <td><span>Interests:</span></td><td><span><%# DataBinder.Eval(Container.DataItem, "Interests")%></span></td>
                        </tr>
                    </table>
                </ItemTemplate>
            </telerik:RadListBox>
            <telerik:RadListBox ID="RadListBox2" runat="server" Height = "600px" Width="400px">
                <ItemTemplate>
                <span><%# DataBinder.Eval(Container.DataItem, "contactID")%> - 
                <%# DataBinder.Eval(Container.DataItem, "FirstName")%> 
                <%# DataBinder.Eval(Container.DataItem, "Surname")%></span>
                </ItemTemplate>
            </telerik:RadListBox>
        </telerik:RadAjaxPanel>
    </div>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"
        Skin="Default">
    </telerik:RadAjaxLoadingPanel>
    </form>
</body>
</html>

default.aspx.vb
Imports Telerik.Web.UI
Imports System.Data.SqlClient
 
Partial Class _Default
    Inherits System.Web.UI.Page
 
    Public sql_Connection As String = "Data Source=TestServer;Initial Catalog=Contacts;User ID=myself;password=password;Connect Timeout=200"
 
    Private Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            getLBData()
            RadListBox1.DataBind()
            RadListBox2.DataBind()
        End If
    End Sub
 
    Private Sub rcbContactName_ItemsRequested(sender As Object, e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs) Handles rcbContactName.ItemsRequested
        If e.Text.Length > 2 Then
            getNames(e.Text)
        End If
    End Sub
 
    Private Sub getNames(ByVal fragment As String)
        Dim cnSQL As New SqlConnection(sql_Connection)
        Dim cmdSQL As New SqlCommand
        cmdSQL.Connection = cnSQL
        cmdSQL.CommandType = Data.CommandType.StoredProcedure
        cmdSQL.CommandText = "usp_ContactSearch_prefix"
        cmdSQL.Parameters.AddWithValue("@Contact", fragment)
            'If Not String.IsNullOrEmpty(rcbPartialAddress.Text) Then cmdSQL.Parameters.AddWithValue("@Address", rcbPartialAddress.Text)
            'If Not String.IsNullOrEmpty(rcbEmailAddress.Text) Then cmdSQL.Parameters.AddWithValue("@Email", rcbEmailAddress.Text)
 
            Try
                Dim daSQL As New SqlClient.SqlDataAdapter(cmdSQL)
                Dim dataTable As New DataTable()
                daSQL.Fill(dataTable)
 
                For Each dataRow As DataRow In dataTable.Rows
 
                    rcbContactName.Items.Add(New RadComboBoxItem(DirectCast(dataRow("contactName"), String), dataRow("contactid").ToString()))
 
                Next
 
                rcbContactName.DataBind()
 
            Catch
            Finally
                If cnSQL.State <> Data.ConnectionState.Closed Then
                    cnSQL.Close()
                End If
            End Try
    End Sub
 
    Private Sub rcbContactName_SelectedIndexChanged(sender As Object, e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles rcbContactName.SelectedIndexChanged
        RadListBox1.DataSource = getLBData()
        RadListBox1.DataBind()
    End Sub
 
    Public Sub RadListBox1_Transferred(sender As Object, e As Telerik.Web.UI.RadListBoxTransferredEventArgs) Handles RadListBox1.Transferred
        For Each item As RadListBoxItem In e.Items
            item.DataBind()
        Next
    End Sub
 
    Private Function getLBData()
        Dim cnSQL As New SqlConnection(sql_Connection)
        Dim cmdSQL As New SqlCommand
        cmdSQL.Connection = cnSQL
        cmdSQL.CommandType = Data.CommandType.StoredProcedure
        cmdSQL.CommandText = "usp_SearchLyrisContacts"
        cmdSQL.Parameters.Add("@ContactName", DbType.String).Value = rcbContactName.Text
 
        Dim dataTable As New DataTable()
        Try
            Dim daSQL As New SqlClient.SqlDataAdapter(cmdSQL)
 
            daSQL.Fill(dataTable)
 
        Catch
        Finally
            If cnSQL.State <> Data.ConnectionState.Closed Then
                cnSQL.Close()
            End If
        End Try
        Return dataTable
    End Function
 
End Class
 
Bozhidar
Telerik team
 answered on 02 Mar 2012
1 answer
97 views
I am using the RadAsyncUpload control, I have successfully implemented a custom handler to save the uploaded files into SharePoint, that is all work ok.

Prior to the control uploading the files I want to show the files that were selected, capture a description relating to all the selected files and then have an "Upload" button that sends them off to the server.

I did consider using the RadUpload control but that doesn't give the MultipleFileSelection like the silverlight/flash control within the RadAsyncUpload.

My main requirement is letting users select multiple files, display the chosen files and then allow the user to confirm the selection prior to upload.
Kate
Telerik team
 answered on 02 Mar 2012
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?