Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
89 views
When we set the ToolbarMode="ShowOnFocus" the toolbar floats around the page when we scroll around on the page. We would like to be able to PIN this toolbar so it doesn't float over editor's text. Is this possible? Thanks.
Rumen
Telerik team
 answered on 23 Mar 2010
1 answer
194 views
Greetings,
I'm setting up several Rad Tooltips and thought I'd just use an iFrame with a single basic HTML page containing anchors to spin to the correct spot. Works great in Google but IE8 doesn't spin to anchor. If I put a link on the top of the page and click the link after it loads it does go to anchor (Moves the whole page up, not just the TT) but won't spin to anchor on load in IE8. Any one have any thoughts on this?

Thanks

<telerik:RadToolTip ID="RadToolTip1" runat="server" Height="350px" 
        ManualClose="True" Position="TopRight" Skin="Web20" 
        TargetControlID="Img_LicenseQualified" Width="400px"> 
        <iframe id="iTotal" src="../html/licensehelp.htm#Total" frameborder= "0"  scrolling= "no"  
            style="WIDTH: 400px; HEIGHT: 350px" name="I1"></iframe>
    </telerik:RadToolTip>


Svetlina Anati
Telerik team
 answered on 23 Mar 2010
2 answers
137 views
I have a radlistbox named "radlstbxStaff" which is populated with names during the page load. Using the RadAjaxmanager, when an item is selected I'm updating a handfull of details related to the selected staff. The controls that are being updated are located in the "panelSelectedStaffDetails" panel. The list box is not inside that panel. Using Fiddler I've been monitoring the bytes received when selecting an item. The issue I'm having is that the size of the bytes received when selecting an item is higher the more items there are in the list. I've found this to be true in other sections of the site that I'm using a simlilar approach.  Since the list itself is not being updated, why does it's size effect the bytes received?

Please see the following code block that makes up the ajaxmanager.

<

 

telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"

 

 

 UpdatePanelsRenderMode="Inline">

 

 

   <AjaxSettings>

 

       <telerik:AjaxSetting AjaxControlID="radlstbxStaff">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="panelSelectedStaffDetails"   
                        LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    <telerik:AjaxUpdatedControl ControlID="hfAllowedHours" /> 
                    <telerik:AjaxUpdatedControl ControlID="panelAdditionalShifts"  /> 
                    <telerik:AjaxUpdatedControl ControlID="btnAssign" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 

    </

 

AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

gsxrboy
Top achievements
Rank 1
 answered on 23 Mar 2010
1 answer
141 views
I have a very simple use of the RadRating control as follows :

            <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional"> 
                <Triggers> 
                    <asp:AsyncPostBackTrigger ControlID="Rating1" EventName="Rate" /> 
                </Triggers> 
                <ContentTemplate> 
                    <div> 
                        <telerik:RadRating ID="Rating1" runat="server" Skin="Windows7" Precision="Item" OnRate="Rating1_Rate" AutoPostBack="true"  /> 
                    </div> 
                </ContentTemplate>
            </asp:UpdatePanel> 

The server side event handler just grabs the rating value and adds it to a database table. When the page loads, i initially load the RadRating control's value to display the average rating for the item being viewed. The problem i have is say the average rating is 4 exactly, and someone tries to give a rating of 4, the Rate even will not fire. If i rate anything else but 4, the rate event will fire and everything works fine, the problem only happens when trying to click the same rating that is being displayed. If someone rates the same value, i would still like to capture that value, but cannot do so because of this.


Tsvetie
Telerik team
 answered on 23 Mar 2010
3 answers
203 views
I need to set up a RadGrid to search a large customer database. Once I have found a particular customer I need to select that RadGrid Row and set the different column values of the Row as Session Variables to be available on another page (this is shopping cart application on the Admin part of the site where Admins can add an order for the customer). I've browsed through a bunch of the documentation but haven't been able to figure out how to do this. Any suggestions?

Rick
Yavor
Telerik team
 answered on 23 Mar 2010
9 answers
203 views
I just upgraded my Rad Controls for ASPNet AJAX to Q3 2008 and during testing I noticed a weird bug.  If I move the scroll bar on the rad editor control after pressing the save button, which saves to a sql database,  I get the following error: "Line 7567  Error: Could not complete the operation due to error 800a025e".  I debuged the error and it was thrown out of the ScriptResource.axd file.  Even though the page errors, the rad editor data is still saved to the database.

Below is my ASPX Code

 

<

asp:UpdatePanel  

runat="server" UpdateMode="Conditional" ID="UpdatePanelED">

 

 

 

<contenttemplate>

 

 

 

<telerik:RadEditor id="RadEditorED" Width="100%" Runat="server" Skin="Outlook">

 

 <Content>

 

 

</Content>

 

 

 

</telerik:RadEditor>

 

 

 

<BR />

 

 

 

<CENTER><asp:Button id="btnSaveED" onclick="btnSaveED_Click" runat="Server" CssClass="Normal" Text="Save Extended Detail"></asp:Button></CENTER>

 

 

 

</contenttemplate>

 

 

 

<Triggers><asp:AsyncPostBackTrigger ControlID="lstReportsED"></asp:AsyncPostBackTrigger></Triggers>

 

 

 

</asp:UpdatePanel>

 

 

 

 

 


Bloew is my C# save button code.

protected

void btnSaveED_Click(object sender, EventArgs e)

{

 

ICAdminWebService_V2_2_Long.updateExtendedDetail(Convert.ToInt32(lstReportsED.SelectedValue), RadEditorED.Content);

 

 

 }

 

 

Rumen
Telerik team
 answered on 23 Mar 2010
3 answers
124 views
I am using a RadInputManager to validate the input of a textbox. If a user types in invalid characters into that textbox it shows the warning message. If they leave it that way and hit the save button when they go back to that textbox the original value has been cleared. Is there any way to not clear out the original value when they hit save?
Yavor
Telerik team
 answered on 23 Mar 2010
1 answer
211 views
I have a radgrid from which i insert/edit records via a usercontrol.

In my code behind, i want to call RadAlert when my textbox is empty.
I have read alot of examples and non of them suites my problem.
Here is the code 

.ASPX(page)
<%@ Page Language="C#" MasterPageFile="~/Resources/MasterPages/Parameters.Master" AutoEventWireup="true" CodeFile="Intake.aspx.cs" Inherits="WebForms_Intake" Title="Intake" %>
<%@ Register assembly="RadGrid.Net2" namespace="Telerik.WebControls" tagprefix="rad" %>


<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server" >
    <h2>Intake</h2>    
    <rad:RadGrid ID="IntakeGrid" runat="server" OnNeedDataSource="IntakeRadGrid_NeedDataSource" 
    OnDeleteCommand="IntakeRadGrid_DeleteCommand"  AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False" 
         EnableAJAX="True" GridLines="None" 
        RadControlsDir="~/Resources/RadControls/" Skin="Web20" 
        SkinsPath="~/Resources/RadControls/Grid/Skins" Width="750px">
        <MasterTableView AllowMultiColumnSorting="True" DataKeyNames="Id" 
             CommandItemDisplay="Top">
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <rad:GridEditCommandColumn ButtonType="ImageButton" 
                    EditImageUrl="~/Resources/Buttons/EditButton.jpg" >
                </rad:GridEditCommandColumn>
                <rad:GridBoundColumn DataField="Id" HeaderText="ID" 
                    SortExpression="Id" UniqueName="Id">
                </rad:GridBoundColumn>
                <rad:GridBoundColumn DataField="IntakeName" HeaderText="Intake" 
                    SortExpression="IntakeName" UniqueName="Intake">
                </rad:GridBoundColumn>
                <rad:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" 
                    ImageUrl="~/Resources/Buttons/DeleteButton.jpg"  Text="Delete" UniqueName="column">
                </rad:GridButtonColumn>
                
            </Columns>

                    <EditFormSettings EditFormType="WebUserControl" UserControlName="~/UserControls/Parameters/EditIntake.ascx" >
                        <EditColumn UniqueName="EditIntakeGrid" >
                        </EditColumn>
                    </EditFormSettings>
        </MasterTableView>
    </rad:RadGrid>
    
       

</asp:Content>
.ASPX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
 
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Telerik.WebControls;
using ARIMS.BusinessLogic;

    public partial class WebForms_Intake : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindRecords();

            }
        }


        protected void BindRecords()
        {
            IntakeGrid.DataSource = (object)ParameterManager.IntakeCollection();
            IntakeGrid.DataBind();


        }

        protected void IntakeRadGrid_NeedDataSource(object source, Telerik.WebControls.GridNeedDataSourceEventArgs e)
        {
            IntakeGrid.DataSource = (object)ParameterManager.IntakeCollection();

        }

        protected void IntakeRadGrid_DeleteCommand(object source, Telerik.WebControls.GridCommandEventArgs e)
        {
            //Get the GridDataItem of the RadGrid     
            GridDataItem item = (GridDataItem)e.Item;
            //Get the primary key value using the DataKeyValue.     
            int IntakeID = Convert.ToInt32(item.OwnerTableView.DataKeyValues[item.ItemIndex]["Id"].ToString());
            try
            {

                ParameterManager.IntakeDelete(IntakeID);
            }
            catch (Exception ex)
            {
                IntakeGrid.Controls.Add(new LiteralControl("Unable to Delete Record. Reason: " + ex.Message));
                e.Canceled = true;
            }

        }



    }
.ASCX
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditIntake.ascx.cs"
    Inherits="WebForms_EditIntake" %>
<%@ Register Assembly="RadInput.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<table>
    <tr>
        <td>
            <asp:Label ID="lblIntake" runat="server">Intake:</asp:Label>
        </td>
        <td>
            <rad:RadTextBox ID="IntakeTextBox" Text='<%# Eval("IntakeName") %>' runat="server"
                Skin="Web20" SkinsPath="~/Resources/RadControls/Input/Skins">
            </rad:RadTextBox>
            <asp:RequiredFieldValidator ID="RequiredIntakeTextBox" ValidationGroup="validD" runat="server" ErrorMessage="<br>* Required"
                                    ControlToValidate="IntakeTextBox"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            <asp:ImageButton ID="LinkInsert" ValidationGroup="validD" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                ImageUrl="~/Resources/Buttons/SaveButton.jpg" runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
                OnClick="IntakeInsert" Visible='<%# (Container is GridEditFormInsertItem) ? true : false %>' />
            <asp:ImageButton ID="LinkUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                ImageUrl="~/Resources/Buttons/SaveButton.jpg" runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
                OnClick="IntakeUpdate" Visible='<%# (Container is GridEditFormInsertItem) ? false : true %>' />
            <asp:ImageButton ID="LinkButtonCancel" ImageUrl="~/Resources/Buttons/CancelButton.jpg"
                runat="server" Text="Cancel" CausesValidation="false" CommandName="Cancel" />
        </td>
    </tr>
    <tr>
        <td>
            <rad:RadTextBox ID="IDTextBox" Text='<%# Eval("Id") %>' runat="server" Skin="Web20"
                Visible="false" SkinsPath="~/Resources/RadControls/Input/Skins">
            </rad:RadTextBox>
        </td>
    </tr>
</table>

.ASCX.CS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Telerik.QuickStart;
using Telerik.WebControls;
using ARIMS.BusinessLogic;


public partial class WebForms_EditIntake : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void IntakeInsert(object sender, EventArgs e)
    {
        ParameterManager.IntakeInsert(IntakeTextBox.Text);
    }

    protected void IntakeUpdate(object sender, EventArgs e)
    {
        ParameterManager.IntakeUpdate(Convert.ToInt32(IDTextBox.Text), IntakeTextBox.Text);
    }
}

Now, What i want to do is within Protected void IntakeUpdate(object sender, EventArg e) method.

I want to write something like

If(IntakeTextBox.Text==String.Empty)
{
RadAjaxManager1.ResponseScripts.Add(@"radalert('You can't update empty fields <b>Prometheus</b>!', 330, 210);");
}
else
{
//Update the records
}

I need to return an alert.
But when i click the button, nothing happens.

Please, I desperately need your help.

thanks.
Princy
Top achievements
Rank 2
 answered on 23 Mar 2010
1 answer
142 views
how can i user one control with radmenu, but i donot want to radmenu wrap, i hope control follow radmenu

i mean radmenu with other control in a line , not in two line

thinks!!!

<a href="HomePage.aspx"><img src="images/LOGO.png" alt=""/></a> 

<telerik:RadMenu ID="RadMenu1" runat="server">                                               
                        <Items>                                                        
                            <telerik:RadMenuItem runat="server" Target="content" Text="專利評估資訊"><Items>
                            <telerik:RadMenuItem runat="server" Text="查詢專利評估資訊" 
                                                   NavigateUrl="~/QueryAppItemList.aspx"         Visible="False"></telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" Text="案清單" NavigateUrl="~/AppList.aspx"></telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" Text="件清單" NavigateUrl="~/AppItemList.aspx"></telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenuItem>
                   
                        <telerik:RadMenuItem runat="server" Text="專家資訊" Visible="False">
                            <Items>
                                <telerik:RadMenuItem runat="server" Text="查詢專家資訊" NavigateUrl="QueryExpert.aspx">
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem runat="server" Text="專家清單" NavigateUrl="ExpertList.aspx">
                                </telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenuItem>
                        </Items>                       
                        <CollapseAnimation Duration="200" Type="OutQuint" />
                    </telerik:RadMenu> 
                        
Yana
Telerik team
 answered on 23 Mar 2010
1 answer
71 views
Hello,
i have a problem with the radgrid and frozen columns.
sometimes the horizontal scrollbar disapears.

i can reproduce this problem on your "Grid / Frozen Columns" demo
(http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/frozencolumns/defaultcs.aspx)

1. open IE 8.0.6001.18702 (not maximized)
2. open the demo page
3. scroll to the right side of the grid
4. minimize the browser to the taskbar
5. open the browser again and the scrollbar is gone

i can't reproduce this problem with firefox
----------------------------------------------------------------------------------
but with firefox 3.6 i have found an other problem

1. open firefox (not maximized)
2. open the demo page
3. scroll to the right side of the grid
4. maximize firefox and the scrollbar is gone

i need the frozencolumns very urgent but i can't use this function until 
this problem is solved. 

Pavlina
Telerik team
 answered on 23 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?