Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
172 views
Hi Admin,

I have asp.net page. In that one label\link is there. Once the link is clicked, a popup would appear. I want a radTreeView inside it, containing details from database.
My question is:- 'How to generate a RadTreeView inside a PopUp, when a link is clicked'

Please see the attached image, for the requirement.

Regards,
Sourav
Kevin
Top achievements
Rank 2
 answered on 04 Jan 2012
2 answers
92 views
Hello,
I have a simple RadComboBox that when an item is selected it redirects the page back to itself and is supposed to display the item that was selected in the RCB.  
This was working with Web.UI version 2010.3.1109.40, but it broke after upgrading to version 2011.3.1115.40.

With the latest version it will reload the page, but will display the "EmptyMessage" text instead of the selected text.

Here's my page:
<%@ Page Title="Home Page" Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb"
    Inherits="RadComboBoxBug._Default" %>
 
<!DOCTYPE HTML />
<%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %>
<html>
    <head id="Head1" runat="server">
        <title>RadComboBox Issues</title>
        <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="Form1" runat="server">
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
            <div class="page">
                <div class="main">
                    <div style="margin: 10px; border: 1px solid #CCC; padding: 10px;">
                        <telerik:RadComboBox ID="RadComboBox2" runat="server" EnableLoadOnDemand="true" EmptyMessage="Select a Person"
                            AppendDataBoundItems="false" AutoPostBack="true" DataValueField="RecordID" DataTextField="Name"
                            ShowMoreResultsBox="true" EnableVirtualScrolling="false" MarkFirstMatch="true"
                            CausesValidation="False" OnClientDropDownOpening="onDropDownOpening" />
                        <asp:Label ID="lbl_SelectedPerson" runat="server" Style="margin-left: 15px" />
                    </div>                    
                </div>
            </div>
        </form>
    </body>
    <script type="text/javascript">
        function onDropDownOpening(sender) {
            var attributes = sender.get_attributes();
            if (attributes.getAttribute("DefaultItem") === "true") {
                sender.requestItems("", false);
                attributes.setAttribute("DefaultItem", "false");
            }
        }
    </script>
</html>

...and the it's code-behind:
Imports Telerik.Web.UI
 
Public Class _Default
    Inherits Page
 
    Private Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
        If IsPostBack = False Then
            Dim personID As String = Request.QueryString("PID")
            If personID IsNot Nothing Then
                RadComboBox2.SelectedValue = personID
                RadComboBox2.Attributes.Add("DefaultItem", "true")
                RadComboBox2.Items.Add(New RadComboBoxItem(String.Format("Person {0}", personID), CStr(personID)))
            End If
        End If
    End Sub
 
    Private Sub Page_PreRender(sender As Object, e As System.EventArgs) Handles Me.PreRender
        lbl_SelectedPerson.Text = String.Format("Selected Item: {0}", RadComboBox2.SelectedValue)
    End Sub
 
    Private Sub RadComboBox2_ItemsRequested(sender As Object, e As RadComboBoxItemsRequestedEventArgs) Handles RadComboBox2.ItemsRequested
        RadComboBox2.DataSource = GetPeople()
        RadComboBox2.DataBind()
        e.EndOfItems = True
    End Sub
 
    Private Sub RadComboBox2_SelectedIndexChanged(sender As Object, e As RadComboBoxSelectedIndexChangedEventArgs) Handles RadComboBox2.SelectedIndexChanged
        Response.Redirect(String.Format("/Default.aspx?PID={0}", e.Value))
    End Sub
 
    Private Function GetPeople() As List(Of Person)
        Dim theList As New List(Of Person)
        For i As Integer = 1 To 100
            theList.Add(New Person() With {.RecordID = i, .Name = String.Format("Person {0}", i)})
        Next
        Return theList
    End Function
 
    Public Structure Person
        Public Property RecordID As Integer
        Public Property Name As String
    End Structure
 
End Class

Does anybody know what's going on with this?

Thanks,
-Aaron
Aaron Bauman
Top achievements
Rank 1
 answered on 04 Jan 2012
3 answers
82 views
Hi,
can i use ASP.NET AJAX scheduler in ASP.NET MVC 3.0 project.can u send a sample project.
 
Thanx,
Alok
Peter
Telerik team
 answered on 04 Jan 2012
2 answers
254 views
I've upgrade to latest ASP.NET AJAX version, after upgrade I get this error about for my WebBlue skin:

Telerik.Web.UI.RadFormDecorator with ID='FormDecorator1' was unable to find embedded skin with name 'WebBlue'. Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false.


I checked I've added Telerik.Web.UI.Skins.dll as described in :

http://blogs.telerik.com/blogs/posts/11-11-15/separate-skin-assembly-in-radcontrols-for-asp-net-ajax-with-q3-apos-11.aspx

When I change skin to default the error disappears. Any helps?

Regards
Mazdak
Rumen
Telerik team
 answered on 04 Jan 2012
1 answer
49 views
Hello,

The Process() method in custom async handlers is great. However, it is called only upon completed download of a file.

Is there a way to hook into an earlier handler event at the moment the download is initiated? The idea is that I would like to check whether the file is valid as early as possible. It looks bad to have the user wait for a 50MB upload only to tell at the end that the file cannot be uploaded (e.g. if it already exists). 

Thank you,
Stephan

Plamen
Telerik team
 answered on 04 Jan 2012
2 answers
117 views
If the Quick Access toolbar is enabled for the RibbonBar then in all browsers except IE9 a javascript error occurs and prevents everything from working.
If I disable the QA toolbar all works fine.
The error occurs in the initialize method of the RibbonBarQuickAccessToolbarItem object.

I have attached a screenshot of the error as seen in the developer tools of Safari 5. 
Kate
Telerik team
 answered on 04 Jan 2012
1 answer
159 views

When I use the RADListBox with grouped items. Everything displays correctly until I perform a client side transfer from one listbox to another. The transfered items append to the bottom of the listbox and are not grouped. How can I transfer and have everything regroup client side.



<script type="text/javascript">


        function onClientTransferred(sender, args) {


            //alert("transfer from id:" + args.get_sourceListBox().get_id());
            //alert("transfer to id:" + args.get_destinationListBox().get_id());


            var fromList = args.get_sourceListBox().get_items();
            var fromItem = args.get_item();
            var fromItemAttributes = args.get_item().get_attributes();
            var fromItemCat = fromItemAttributes.getAttribute("DataGroupField");
            alert("from item cat:" + fromItemCat);


            args.get_destinationListBox().trackChanges();
            var toList = args.get_destinationListBox().get_items();
            var toItem = args.get_destinationListBox().findItemByValue(args.get_item().get_value());
            var toItemAttributes = toItem.get_attributes();
            toItemAttributes.setAttribute("DataGroupField", fromItemCat);
            toItem.attributes = toItemAttributes;


            var index = fromList.indexOf(toItem);
            toList.removeAt(index);
            toList.insert(index, toItem);


            alert("to item:" + toItem.get_text());
            args.get_destinationListBox().commitChanges();


        }
</script>


<rei:REIRadListBox ID="lstFavItems" runat="server" AllowTransfer="true" TransferToID="lstTopFavItems" EnableDragAndDrop="true" EnableEmbeddedSkins="false"  DataTextField="DisplayText" DataValueField="UserFavoriteId" SelectionMode="Multiple" EnableFiltering="true" FilterBoxEmptyMessage="Type here to filter" Height="200" Width="370" 
TransferMode="Move"  OnTransferred="RadListBox_Transferred" AllowReorder="true"  OnClientTransferred="onClientTransferred"  />




<rei:REIRadListBox ID="lstTopFavItems" runat="server" Height="200" Width="370" EnableDragAndDrop="true" EnableFiltering="true" EnableEmbeddedSkins="false" FilterBoxEmptyMessage="Type here to filter" 
DataTextField="DisplayText" DataValueField="UserFavoriteId"  AllowReorder="true" />
Dimitar Terziev
Telerik team
 answered on 04 Jan 2012
6 answers
1.0K+ views
How to remove dynamically created column from Radgrid.
Shyam
Top achievements
Rank 1
 answered on 04 Jan 2012
7 answers
890 views
I have a RadWindow (contents are html not iframe):

<telerik:RadWindow ID="radwindow1" VisibleTitlebar="false" VisibleStatusbar="false"<br>        BorderWidth="0" Title="Image" runat="server" VisibleOnPageLoad="false" Modal="true"<br>        Autosize="true"><br>        <contenttemplate>                  <br>            <img alt="" id="image1" />          <br>        </contenttemplate><br>    </telerik:RadWindow>


The image1 size is unknown, it can be any size. Click a button will open radwindow1 using javascript:
var oWnd = $find('<%=radwindow1.ClientID %>');<br>        if (oWnd) {            <br>            oWnd.autoSize(true);<br>            oWnd.show();<br>}

It works fine on Firefox but not in IE 8. First time open it on IE 8 will work fine but next time will show pop up with scroll bars, then next time will be fine and next time not.

My doctype:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Thank for your time!
Svetlina Anati
Telerik team
 answered on 04 Jan 2012
1 answer
110 views
Hi,

I am wondering if multiple Radgrids can be put side-by-side so that end user gets a feeling that those are the same grid?
In practise, if end user scrolls down a grid, both grids are scrolled down at the same time.

I hoped I could use single RadGrid in my application, but it seems that one can't 'drag to select' Items in a column. It seems that 'drag to select' functionality always selects entire grid rows? My application should allow the end user to 'drag to select' just one or multiple items in a specific column.

BR,
Timo


Marin
Telerik team
 answered on 04 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?