Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
305 views
Finally glad to see a datalist-type solution for the Radgrid at http://demos.telerik.com/aspnet-ajax/Grid/Examples/Programming/ListView/DefaultCS.aspx.

I would like to retain the multi-row select method that is available in a standard radgrid - how can I implement a GridClientSelectColumn and Rowclicking in this new datalist format?

Thanks
Sebastian
Telerik team
 answered on 04 Jun 2009
8 answers
258 views
In a project I am currently working on, I am using the AjaxManager in conjunction with a RadToolBar and jQuery. However, when the ajax request returns, blank space is injected above my toolbar and I can't seem to find the source of the problem. I am using jQuery to show a div containing a status message of the user's interaction with the page. If I disable ajax, the page renders properly.

Before Postback
After Postback

Here is the page definition (sorry, it's a very complex page).
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="TicketDetails.aspx.vb" Inherits="SubPages_TicketDetails" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%@ Register Src="../Controls/UserLookupControl.ascx" TagName="UserLookupControl" 
    TagPrefix="uc1" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title>Ticket Details</title> 
    <link href="../Styles/HelpDesk.css" rel="Stylesheet" type="text/css" /> 
    <telerik:RadScriptBlock ID="scriptBlock" runat="server">  
 
        <script src="../Scripts/jquery-1.3.2-vsdoc2.js" type="text/javascript"></script> 
 
        <script type="text/javascript">  
            function showStatusPanel(message) {  
                $("#divStatusUpdatePanel").fadeIn(1500, function() { window.setTimeout('hideStatusPanel()', 2000) }).text(message);  
                $("#divStatusUpdatePanel").css('color', 'black');  
            }  
 
            function showErrorInStatusPanel(message) {  
                $("#divStatusUpdatePanel").fadeIn(1500, function() { window.setTimeout('hideStatusPanel()', 15000) }).html(message);  
                $("#divStatusUpdatePanel").css('color', 'red');  
            }  
 
            function hideStatusPanel() {  
                $("#divStatusUpdatePanel").fadeOut(3000);  
            }  
 
            function rebindTicketDetails() {  
                $find("<%= ramControlManager.ClientID %>").ajaxRequest("rebindTicket");  
            }  
 
        </script> 
 
    </telerik:RadScriptBlock> 
    <style type="text/css">  
        </style> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Vista" /> 
    <telerik:RadAjaxManager ID="ramControlManager" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="tbTicketDetails">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="tbTicketDetails" /> 
                    <telerik:AjaxUpdatedControl ControlID="lblCategory" /> 
                    <telerik:AjaxUpdatedControl ControlID="lblType" /> 
                    <telerik:AjaxUpdatedControl ControlID="lblStatus" /> 
                    <telerik:AjaxUpdatedControl ControlID="lblQueue" /> 
                    <telerik:AjaxUpdatedControl ControlID="lblGoal" /> 
                    <telerik:AjaxUpdatedControl ControlID="lblOwner" /> 
                    <telerik:AjaxUpdatedControl ControlID="lblSubmitBy" /> 
                    <telerik:AjaxUpdatedControl ControlID="lblSubmitDept" /> 
                    <telerik:AjaxUpdatedControl ControlID="lblSubmitOffice" /> 
                    <telerik:AjaxUpdatedControl ControlID="lblSubmitTelephone" /> 
                    <telerik:AjaxUpdatedControl ControlID="lnkEmail" /> 
                    <telerik:AjaxUpdatedControl ControlID="lblLockedBy" /> 
                    <telerik:AjaxUpdatedControl ControlID="lblDeleteBy" /> 
                    <telerik:AjaxUpdatedControl ControlID="lblCreateBy" /> 
                    <telerik:AjaxUpdatedControl ControlID="lblModifyBy" /> 
                    <telerik:AjaxUpdatedControl ControlID="divTicketID" /> 
                    <telerik:AjaxUpdatedControl ControlID="divTicketSubject" /> 
                    <telerik:AjaxUpdatedControl ControlID="divProblemDescription" /> 
                    <telerik:AjaxUpdatedControl ControlID="gridHistory" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadToolBar ID="tbTicketDetails" runat="server" Skin="Office2007" Width="100%" 
        AutoPostBack="true">  
        <Items> 
            <telerik:RadToolBarSplitButton> 
                <Buttons> 
                    <telerik:RadToolBarButton runat="server" Text="Add Notes" ImageUrl="~/Images/notebook_pencil.png" 
                        Value="AddNotes" CommandName="AddNotes">  
                    </telerik:RadToolBarButton> 
                    <telerik:RadToolBarButton runat="server" Text="Close" ImageUrl="~/Images/door.png" 
                        Value="CloseTicket" CommandName="CloseTicket">  
                    </telerik:RadToolBarButton> 
                </Buttons> 
            </telerik:RadToolBarSplitButton> 
            <telerik:RadToolBarButton runat="server" Text="Lock" ImageUrl="~/Images/lock.png" 
                Value="LockTicket" CommandName="LockTicket">  
            </telerik:RadToolBarButton> 
            <telerik:RadToolBarButton runat="server" Text="Unlock" ImageUrl="~/Images/lock_unlock.png" 
                Value="UnlockTicket" CommandName="UnlockTicket">  
            </telerik:RadToolBarButton> 
            <telerik:RadToolBarButton runat="server" Text="Create Ticket Tasks" CommandName="CreateTasks" 
                ImageUrl="~/Images/tasks_create.png" Value="CreateTasks">  
            </telerik:RadToolBarButton> 
            <telerik:RadToolBarButton runat="server" Text="Claim Ticket" CommandName="ClaimTicket" 
                ImageUrl="~/Images/card_claimticket.png" Value="ClaimTicket">  
            </telerik:RadToolBarButton> 
            <telerik:RadToolBarButton runat="server" Text="Release Ticket" CommandName="ReleaseTicket" 
                ImageUrl="~/Images/card_releaseticket.png" Value="ReleaseTicket">  
            </telerik:RadToolBarButton> 
            <telerik:RadToolBarButton runat="server" Text="Assign Ticket" CommandName="AssignTicket" 
                ImageUrl="~/Images/card__assignticket.png" Value="AssignTicket">  
            </telerik:RadToolBarButton> 
            <telerik:RadToolBarButton runat="server" Text="Move Ticket" CommandName="MoveTicket" 
                ImageUrl="~/Images/pin_moveticket.png" Value="MoveTicket">  
            </telerik:RadToolBarButton> 
            <telerik:RadToolBarButton runat="server" Text="Reopen Ticket" CommandName="ReopenTicket" 
                Value="ReopenTicket" ImageUrl="~/Images/reopenticket.png" /> 
            <telerik:RadToolBarButton runat="server" Text="Delete Ticket" CommandName="DeleteTicket" 
                ImageUrl="~/Images/delete.png" Value="DeleteTicket">  
            </telerik:RadToolBarButton> 
            <telerik:RadToolBarButton runat="server" Text="Restore Ticket" CommandName="RestoreTicket" 
                ImageUrl="~/Images/restore.png" Value="RestoreTicket">  
            </telerik:RadToolBarButton> 
            <telerik:RadToolBarButton runat="server" Text="Edit Ticket Details" CommandName="EditDetails" 
                ImageUrl="~/Images/ticket_pencil.png" Value="EditDetails">  
            </telerik:RadToolBarButton> 
            <telerik:RadToolBarButton runat="server" Text="Assign Goal" CommandName="AssignGoal" 
                ImageUrl="~/Images/accreditationgoal.png" Value="AssignGoal">  
            </telerik:RadToolBarButton> 
        </Items> 
    </telerik:RadToolBar> 
    <asp:HiddenField ID="hfCategoryID" runat="server" /> 
    <asp:HiddenField ID="hfSubmitByAccount" runat="server" /> 
    <div id="divStatusUpdatePanel">  
    </div> 
    <telerik:RadTabStrip ID="tabTicketDetails" runat="server" SelectedIndex="0" MultiPageID="mpTicketDetails" 
        Skin="Outlook" Width="100%" Orientation="HorizontalTop" ShowBaseLine="true">  
        <Tabs> 
            <telerik:RadTab Text="Ticket Details" PageViewID="viewDetails" Selected="True" Value="Details">  
            </telerik:RadTab> 
            <telerik:RadTab Text="Ticket History" PageViewID="viewHistory" Value="History">  
            </telerik:RadTab> 
            <telerik:RadTab Text="Tasks" PageViewID="viewTasks" Value="Tasks">  
            </telerik:RadTab> 
            <telerik:RadTab Text="Related Tickets">  
                <Tabs> 
                    <telerik:RadTab Text="Associated Tickets" PageViewID="viewAssociatedTickets" Selected="true" /> 
                    <telerik:RadTab Text="Other Tickets By Submitter" PageViewID="viewSubmitByTickets" /> 
                    <telerik:RadTab Text="Other Tickets In Category" PageViewID="viewTicketsInCategory" /> 
                    <telerik:RadTab Text="Create Association" PageViewID="viewCreateAssociation" OnLoad="SetCreateAssociationVisibility" /> 
                </Tabs> 
            </telerik:RadTab> 
        </Tabs> 
    </telerik:RadTabStrip> 
    <telerik:RadMultiPage ID="mpTicketDetails" runat="server" SelectedIndex="0" ScrollBars="Horizontal">  
        <telerik:RadPageView runat="server" ID="viewDetails" Selected="true">  
            <table id="TicketDetailsTable">  
                <tr> 
                    <td colspan="2">  
                        <div id="divTicketHeader">  
                            <div id="divTicketID" runat="server" class="TicketID">  
                                42</div> 
                            <div id="divTicketSubject" runat="server" text="Ticket Subject" class="TicketSubject">  
                                Subject</div> 
                        </div> 
                    </td> 
                </tr> 
                <tr> 
                    <th colspan="2" class="TableHeaderLabel">  
                        Problem:  
                    </th> 
                </tr> 
                <tr> 
                    <td colspan="2">  
                        <div id="divProblemDescriptionContainer">  
                            <div id="divProblemDescription" runat="server">  
                                <h1> 
                                    Problem Description</h1> 
                            </div> 
                        </div> 
                    </td> 
                </tr> 
                <tr> 
                    <td colspan="2">  
                        <table class="InternalTable">  
                            <tr> 
                                <th class="TableHeaderLabel">  
                                    Category:  
                                </th> 
                                <th class="TableHeaderLabel">  
                                    Type:  
                                </th> 
                                <th class="TableHeaderLabel">  
                                    Status:  
                                </th> 
                                <th class="TableHeaderLabel">  
                                    Queue:  
                                </th> 
                                <th class="TableHeaderLabel">  
                                    Accreditation Goal:  
                                </th> 
                            </tr> 
                            <tr> 
                                <td class="DataContainer">  
                                    <asp:Label ID="lblCategory" runat="server" Text="Ticket Category" /> 
                                </td> 
                                <td class="DataContainer">  
                                    <asp:Label ID="lblType" runat="server" Text="Ticket Type" /> 
                                </td> 
                                <td class="DataContainer">  
                                    <asp:Label ID="lblStatus" runat="server" Text="Status Name" /> 
                                </td> 
                                <td class="DataContainer">  
                                    <asp:Label ID="lblQueue" runat="server" Text="Queue Name" /> 
                                </td> 
                                <td class="DataContainer">  
                                    <asp:Label ID="lblGoal" runat="server" Text="Accreditation Goal for Weave" /> 
                                </td> 
                            </tr> 
                        </table> 
                    </td> 
                </tr> 
                <tr> 
                    <td colspan="2">  
                        <table class="InternalTable">  
                            <tr> 
                                <th class="TableHeaderLabel">  
                                    Owned By:  
                                </th> 
                                <th class="TableHeaderLabel">  
                                    Submitted By:  
                                </th> 
                                <th class="TableHeaderLabel">  
                                    Locked By:  
                                </th> 
                                <th class="TableHeaderLabel">  
                                    Deleted By:  
                                </th> 
                            </tr> 
                            <tr> 
                                <td class="DataContainer">  
                                    <asp:Label ID="lblOwner" runat="server" Text="Owner Name" /> 
                                </td> 
                                <td class="DataContainer">  
                                    <div> 
                                        <asp:Label ID="lblSubmitBy" runat="server" Text="Submitter Name" /></div>  
                                    <div> 
                                        <asp:Label ID="lblSubmitDept" runat="server" Text="Department" /></div>  
                                    <div> 
                                        <asp:Label ID="lblSubmitOffice" runat="server" Text="Office" /></div>  
                                    <div> 
                                        <asp:Label ID="lblSubmitTelephone" runat="server" Text="Telephone" /></div>  
                                    <div> 
                                        <asp:HyperLink ID="lnkEmail" runat="server" Text="email@swbts.edu" NavigateUrl="mailto:email@swbts.edu" /></div>  
                                </td> 
                                <td class="DataContainer">  
                                    <asp:Label ID="lblLockedBy" runat="server" Text="Locked By" /> 
                                </td> 
                                <td class="DataContainer">  
                                    <asp:Label ID="lblDeleteBy" runat="server" Text="Delete By" /> 
                                </td> 
                            </tr> 
                        </table> 
                    </td> 
                </tr> 
                <tr> 
                    <th class="TableHeaderLabel">  
                        Created:  
                    </th> 
                    <th class="TableHeaderLabel">  
                        Modified:  
                    </th> 
                </tr> 
                <tr> 
                    <td class="DataContainer">  
                        <asp:Label ID="lblCreateBy" runat="server" Text="Create By Information" /> 
                    </td> 
                    <td class="DataContainer">  
                        <asp:Label ID="lblModifyBy" runat="server" Text="Modify By Informtion" /> 
                    </td> 
                </tr> 
            </table> 
        </telerik:RadPageView> 
    </telerik:RadMultiPage> 
    <telerik:RadAjaxLoadingPanel ID="alpMainLoadingPanel" runat="server" Transparency="2" 
        InitialDelayTime="0" MinDisplayTime="250">  
        <asp:Image ImageUrl="~/Images/loading_large.gif" AlternateText="Loading..." runat="server" 
            ID="imgLargeLoad" /> 
    </telerik:RadAjaxLoadingPanel> 
    <telerik:RadAjaxLoadingPanel ID="alpGridLoadingPanel" runat="server" Transparency="2" 
        InitialDelayTime="0" MinDisplayTime="250">  
        <asp:Image ImageUrl="~/Images/loading_grid.gif" runat="server" AlternateText="Refreshing..." 
            ID="imgGridLoad" /> 
    </telerik:RadAjaxLoadingPanel> 
    <telerik:RadAjaxLoadingPanel ID="alpControlLoadingPanel" runat="server" Transparency="2" 
        InitialDelayTime="0" MinDisplayTime="250">  
        <asp:Image ID="imgControlLoad" ImageUrl="~/Images/loading_control.gif" runat="server" 
            AlternateText="Refreshing..." /> 
    </telerik:RadAjaxLoadingPanel> 
    <telerik:RadWindowManager ID="rwmPageWindowManager" runat="server" Skin="Office2007">  
        <Windows> 
            <telerik:RadWindow Animation="Slide" Width="300px" Height="400px" Behavior="None" 
                Modal="true" runat="server" Overlay="true" Title="Set Accreditation Goal" ID="winAccreditationView" /> 
        </Windows> 
    </telerik:RadWindowManager> 
    </form> 
</body> 
</html> 
 

Here's the CSS
body  
{  
    width: 100%;  
    height: 100%;  
    margin: 0px;  
    overflow: hidden;  
}  
 
/*
    USER LOOKUP CONTROL STYLES
*/ 
.UserLookupControlContainer  
{  
    background-color: #C9DAEE;  
    background-image: url('../Images/GlassBack_200.png');  
    background-repeat: repeat-x;  
    background-position: 15px;  
    border: 1px solid #7991A9;  
    padding: 2px;  
    width: 500px;  
}  
.UserLookupControlSelectedUserContainer  
{  
    padding: 3px;  
    border-collapse: collapse;  
}  
.spanCurrentUserName  
{  
    font-family: Arial, Helvetica, sans-serif;  
    font-size: 14pt;  
    font-weight: bold;  
    color: #2F3F50;  
}  
.UserSelectModeTitle  
{  
    font-family: Arial, Helvetica, sans-serif;  
    background-color: #C9DAEE;  
    background-image: url('../Images/TicketHeaderBack.png');  
    background-repeat: repeat-x;  
    background-position: top;  
    border-bottom-style: solid;  
    border-bottom-width: 1px;  
    border-bottom-color: #4F6379;  
    height: 25px;  
    font-size: 14pt;  
    color: #2F3F50;  
}  
.UserLookupTable TH  
{  
    vertical-align: middle;  
    font-family: Arial, Helvetica, sans-serif;  
    font-size: 10pt;  
    font-weight: bold;  
}  
.UserLookupTable  
{  
    border-collapse: collapse;  
    width: 100%;  
}  
/*
TICKET DETAILS STYLES
*/ 
#TicketDetailsTable  
{  
    background-color: #7991A9;  
    border-style: solid;  
    border-width: 1px 2px 2px 1px;  
    border-color: #4F6379 #2F3F50 #2F3F50 #4F6379;  
    padding: 3px;  
    margin: 5px 5px 5px 10px;  
    width: 97%;  
    table-layout: auto;  
    border-collapse: collapse;  
    empty-cells: hide;  
}  
#divTicketHeader  
{  
    padding: 4px;  
    background-color: #C9DAEE;  
    background-repeat: repeat-x;  
    background-position: top;  
    background-image: url('../Images/TicketHeaderBack.png');  
    height: 29px;  
    vertical-align: middle;  
}  
#divTicketSubject  
{  
    display: inline;  
    font-family: Arial, Helvetica, sans-serif;  
    font-size: 14pt;  
    font-weight: bold;  
    font-style: normal;  
    font-variant: normal;  
    text-transform: none;  
    color: #000000;  
    text-align: left;  
}  
#divTicketID  
{  
    display: inline;  
    float: rightright;  
    font-family: Arial, Helvetica, sans-serif;  
    font-size: 14pt;  
    font-weight: bold;  
    color: #2F3F50;  
}  
.TableHeaderLabel  
{  
    font-family: Arial, Helvetica, sans-serif;  
    font-size: 10pt;  
    font-weight: bold;  
    font-style: normal;  
    color: #DCE6F4;  
    text-align: left;  
    padding: 2px;  
}  
.DataContainer  
{  
    font-family: Arial, Helvetica, sans-serif;  
    font-size: 10px;  
    vertical-align: top;  
    background-color: #FFFFFF;  
    padding: 5px;  
}  
#divProblemDescriptionContainer  
{  
    border: 1px solid #2F3F50;  
    padding: 5px;  
    margin: 8px;  
    background-color: #4F6379;  
}  
#divProblemDescription  
{  
    padding: 4px;  
    border: 1px solid #2F3F50;  
    background-color: #FFFFFF;  
}  
.InternalTable  
{  
    border-collapse: collapse;  
    empty-cells: show;  
    width: 98%;  
    margin: 3px;  
}  
#divStatusUpdatePanel  
{  
    position: absolute;  
    z-index: 5000;  
    width: 300px;  
    top: 35px;  
    rightright: 2px;  
    background-color: #C9DAEE;  
    background-image: url('../Images/TicketHeaderBack.png');  
    background-repeat: repeat-x;  
    background-position: top;  
    border: 1px solid #7991A9;  
    font-family: Arial, Helvetica, sans-serif;  
    color: #2F3F50;  
    font-size: 12pt;  
    font-weight: bold;  
    text-align: center;  
    vertical-align: middle;  
    display: none;  
    padding: 5px;  
}  
 
.SWBTS_HistoryEntry  
{  
    padding: 4px;  
    background-color: #C9DAEE;  
    border-collapse: collapse;  
    border-style: solid;  
    border-width: 1px;  
    border-color: #7991A9;  
    width: 100%;  
}  
.SWBTS_HistoryHeader  
{  
    background-image: url('../Images/TicketHeaderBack.png');  
    background-repeat: repeat-x;  
    background-position: top;  
    border-bottom: 2px solid #7991A9;  
    border-collapse: separate;  
}  
.SWBTS_HistoryEntry .NoteText  
{  
    border: 1px solid #7991A9;  
    padding: 8px;  
    background: #ffffff;  
}  
.SWBTS_HistoryEntry .Label  
{  
    font-weight: bold;  
}  
.SWBTS_HistoryEntry .Data  
{  
    font-weight: normal;  
    padding-left: 8px;  
}  
.TicketHistoryControlBar  
{  
    font-family: Arial, Helvetica, sans-serif;  
    font-size: 10pt;  
    color: #4F6379;  
    text-align: rightright;  
} 

And the code-behind that is relevant to the problem:
    Private Sub SetLastExecutedCommand(ByVal text As String)  
        ScriptManager.RegisterStartupScript(Me, Page.GetType, "ShowMessage", "showStatusPanel('" & text & "');", True)  
    End Sub 
 
    Protected Sub tbTicketDetails_ButtonClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadToolBarEventArgs) Handles tbTicketDetails.ButtonClick  
        If e.Item.GetType Is GetType(UI.RadToolBarButton) Then 
            Dim button As UI.RadToolBarButton = DirectCast(e.Item, UI.RadToolBarButton)  
            Select Case button.CommandName  
                Case "ClaimTicket" 
                    RaiseEvent ClaimTicket(Me, EventArgs.Empty)  
                    SetLastExecutedCommand("You have claimed this ticket")  
                Case "ReleaseTicket" 
                    RaiseEvent ReleaseTicket(Me, EventArgs.Empty)  
                    SetLastExecutedCommand("You have released this ticket")  
                Case "DeleteTicket" 
                    RaiseEvent DeleteTicket(Me, EventArgs.Empty)  
                    SetLastExecutedCommand("The ticket has been deleted from the system")  
                Case "RestoreTicket" 
                    RaiseEvent RestoreTicket(Me, EventArgs.Empty)  
                    SetLastExecutedCommand("The ticket has been restored")  
                Case "LockTicket" 
                    RaiseEvent LockTicket(Me, EventArgs.Empty)  
                    SetLastExecutedCommand("Ticket Locked - You are the only person able to edit this ticket.")  
                Case "UnlockTicket" 
                    RaiseEvent UnlockTicket(Me, EventArgs.Empty)  
                    SetLastExecutedCommand("Ticket Unlocked - Anyone can edit this ticket.")  
                Case "AddNotes" 
                    ramControlManager.Redirect("NoteEditor.aspx?TID=" & _ticketID & "&MD=E")  
                Case "MoveTicket" 
                    ramControlManager.Redirect("NoteEditor.aspx?TID=" & _ticketID & "&MD=M")  
                Case "AssignTicket" 
                    ramControlManager.Redirect("NoteEditor.aspx?TID=" & _ticketID & "&MD=A")  
                Case "AssignGoal" 
                    winAccreditationView.NavigateUrl = "UpdateAccreditationGoal.aspx?TID=" & _ticketID  
                    winAccreditationView.VisibleOnPageLoad = True 
            End Select 
            RaiseEvent LoadTicketDetails(Me, EventArgs.Empty)  
            RaiseEvent LoadHistory(Me, EventArgs.Empty)  
            SetDetailsUI()  
        End If 
    End Sub 
 

Again, I apologize for the amount of code, but perhaps I'm just overlooking something on the page.

Thanks,
Chris
Eric
Top achievements
Rank 1
 answered on 04 Jun 2009
1 answer
107 views
Hi,

I want to have the word count statistics displayed at the bottom of the editor page on the same line/row as the other module buttons (design, html, preview). Sometimes they are displayed right justified on the same line and other times they appear left justified on a new row immediately underneath the module buttons.

I have two questions. Where are they supposed to appear and how to I get them to consistently be right justified on the same row as the module buttons (which is where I want them)

You can see the weirdness for yourself if you go to the editor default demo here http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

In the settings area to the right of the editor, the default settings seem to be default toolsfile, all the modes and all the modules. In this case, the count is right justified and on the same line as the modules.

Now deselect Rad Editor Statistics and then select it again. You will see the word count disappear and when it comes back, it's on its own separate row underneath the modules.

When I launch my own editor, I cannot get the stats to appear anywhere other than left justified on a separate row.

Thanks,
Steve
Rumen
Telerik team
 answered on 04 Jun 2009
2 answers
116 views

Hello,

I have a Combobox where i add the items programmatically. In the OnSelectedIndexChanged event i want to save the new selected value. I tried this with the evaluation controls and this worked. Now i've bought the Q1 2009 Developer license, installed them and my code isn't working anymore.

Below is the code of a small testproject i made, reproducing the problem. On PostBack in the Init event the ComboBox.Items is first empty. In SelectedIndexChanged the Combobox.Items is filled again with the number of items i added but both Value and Item properties are empty.

Is there some property i need to set now or use some other events?

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">  </telerik:RadScriptManager> 
  <telerik:RadComboBox ID="RadComboBox1" Runat="server"   
    oninit="RadComboBox1_Init"   
    onselectedindexchanged="RadComboBox1_SelectedIndexChanged"   
    AutoPostBack="True" > 
  </telerik:RadComboBox> 
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> 
 

protected void RadComboBox1_Init(object sender, EventArgs e)  
{  
    RadComboBox1.Enabled = true;  
    if (!Page.IsPostBack)  
    {  
        RadComboBox1.Items.Clear();  
        RadComboBox1.Items.Add(new RadComboBoxItem("Item 1", "1"));  
        RadComboBox1.Items.Add(new RadComboBoxItem("Item 2", "2"));  
        RadComboBox1.Items.Add(new RadComboBoxItem("Item 3", "3"));  
        RadComboBox1.Items.Add(new RadComboBoxItem("Item 4", "4"));  
        RadComboBox1.Items.Add(new RadComboBoxItem("Item 5", "5"));  
    }  
}  
 
protected void RadComboBox1_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)  
{  
    Label1.Text = RadComboBox1.SelectedItem.Text + " : " + RadComboBox1.SelectedItem.Value;  
} 
Jeroen Eikmans
Top achievements
Rank 1
 answered on 04 Jun 2009
2 answers
83 views
Hi there,

I need the documentation for the client-side API for RadTreeView.  In Q3 2008 there used to be a CHM file somewhere that listed all the client-side functions and their signatures; this seems to be missing from my installation of Q1 2009.  Can you point me to somewhere that has this information?

Thanks in advance,

Ed
Ed
Top achievements
Rank 1
 answered on 04 Jun 2009
2 answers
81 views
i having javascript error "htmlfile: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus."

This happen when i having two RadPageView and one required validator registered in textbox located RadPageView1, after this i move to
RadPageView2 and click on button which is not inside tabs.
Brian
Top achievements
Rank 1
 answered on 04 Jun 2009
1 answer
189 views
Hi telerik team ,

I have an issue with numeric text box . the text is not getting sticky when i select , moves up and down.
i used below peice of lines
 <telerik:RadNumericTextBox Font-Size="11px" ShowSpinButtons="True" Type="Percent" Width="60px" Height="8" 
                                                                ID="txtdiscount" MaxValue="100.00" Value="5.50" MinValue="0.00" MaxLength="5" 
                                                                runat="server" Culture="English (United States)" InvalidStyleDuration="100">  
                                                                <NumberFormat AllowRounding="false" /> 
                                                            </telerik:RadNumericTextBox> 
please let me know if i missed anything.


Thanks & Regards
G.Sudheer kumar
Dimo
Telerik team
 answered on 04 Jun 2009
8 answers
266 views
Hi All,

Am using Telerik Grid control in one of my web page. In this telrik grid to edit the Grid row am Using EditForm User control
Please see below my code 
 
  <EditFormSettings UserControlName="~/editform.ascx" EditFormType="WebUserControl" > 
                        <EditColumn UniqueName="EditCommandColumn">  
                        </EditColumn>                          
                    </EditFormSettings> 
And I turn ON the Validate Request property in my web config file
<pages validateRequest="true" theme="Original"> 
But one of the text box inside my User control i want to allow HTML tags. Ex: <ADV> this is a sample advertisement </ADV>
When I type above text its giving me "Potentially dangerous request" error. which is correct because i turn ON validate Request property in the web config file.

But In My case I want to overcome this problem for a single text box which am using in my UserControl.
Could you please help me how can I allow Unsafe Script to one text box  with out chnaging my web config ValidateRequest property...


Georgi Krustev
Telerik team
 answered on 04 Jun 2009
6 answers
159 views
I have a modal dialog box where iam allowing the user to choose special characters like "≅*≈ â™£â™¥ "and pasting them back onto RADEditor for moss.
Iam using RADEditorSharepoint version 5.4.0.0

my code in .js file goes as follows...
<code>

var

params = editor._dialogParameters;

 

 

var SelectedChar = window.showModalDialog(params["CurrentWebBaseUrl"] + "/_layouts/MySpecialCharacters.aspx", "XYZchars", "center:yes;dialogWidth:600px;dialogHeight:600px;resizable:1");

 

 

if (SelectedChar && SelectedChar.length > 0) {

 

editor.pasteHtml(SelectedChar);

}

</code>

Things are working fine and iam able to see the special characters are getting pasted onto editor without fail. But the issue is as follows.

When i paste â™£â™¥ symbols onto Design view, it should be converting them as &clubs; &hearts; but, when  you switch between design view, neither of the views has got the HTML equivalants like  "&clubs; &hearts;". rather it has got "♣♥" symbols in both the views.

What am i missing here to see "&clubs;" in my html view when i pasted the symbol "♣" onto design view.


Thanks
Prat
Stanimir
Telerik team
 answered on 04 Jun 2009
4 answers
348 views
Hello,

Been working through the demos and documentation on this control. I have it working but I am struggling to get my head around how to set the values of the indicators. Here is my code:

private void UpdateProgressContext(UploadedFile file) 
    { 
        const int total = 100; 
 
        RadProgressContext progress = RadProgressContext.Current; 
        DateTime startTime = DateTime.Now; 
 
        for (int i = 0; i < total; i++) 
        { 
            progress.PrimaryTotal = FileHelper.GetFileSize(file.ContentLength); 
            progress.PrimaryValue = i; //TODO: file size 
            progress.PrimaryPercent = i; 
 
            progress.CurrentOperationText = file.GetName(); 
 
            TimeSpan elapsed = DateTime.Now.Subtract(startTime); 
            progress.TimeElapsed = string.Format("{0:D2}:{1:D2}:{2:D2} s", elapsed.Hours, elapsed.Minutes, elapsed.Seconds); 
 
            double estimatedMillisecons = 24 * 60 * 60 * 1000; 
            if (i != 0) 
            { 
                estimatedMillisecons = total * elapsed.TotalMilliseconds / i; 
            } 
 
            TimeSpan estimated = TimeSpan.FromSeconds(1); 
            if (estimatedMillisecons > 1) 
            { 
                estimated = TimeSpan.FromMilliseconds(estimatedMillisecons); 
            } 
            progress.TimeEstimated = string.Format("{0:D2}:{1:D2}:{2:D2} s", estimated.Hours, estimated.Minutes, estimated.Seconds); 
 
            double speed = 0.0d; 
            if (elapsed.TotalSeconds > 0) 
            { 
                speed = i / elapsed.TotalSeconds; 
            } 
            progress.Speed = string.Format("{0:0.00}", speed); 
 
            if (!Response.IsClientConnected) 
            { 
                //Cancel button was clicked or the browser was closed, so stop processing 
                break; 
            } 
 
            //Stall the current thread for 0.1 seconds 
            System.Threading.Thread.Sleep(100); 
        } 
    }  

I want a very simple indicator - 1 progress bar indicating the total file size of the file being uploaded, the value to be the number of bytes currently being processed and the percentage. I'd also like the estimated upload time and speed (in KB/s) to be displayed.

I'm just about there but the time, speed and bytes value is incorrect. I think because of the total I am setting (i.e. 100).

Thanks,

Michael
Michael Dunbar
Top achievements
Rank 2
 answered on 04 Jun 2009
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?