Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
280 views
Hello,

I was wondering if it were possible to implement virtual scrolling with the listview either by itself or using the datapager. Basically I am hoping that if the page is scrolled to the end of the listview, it will load the next page directly underneath it. Think Facebook and how they handle their wall posts/time line. Any advice would be great.
Maria Ilieva
Telerik team
 answered on 06 Jun 2012
1 answer
287 views
Whenever I try to call a function ("ItemErrorAlert") that contains RadConfirm from the code behind I receive a javascript error: "radconfirm is not defined". Although RadConfirm works as expected if I call it through the RadWindowManager, but I would rather call it in a javascript function.

See a code snippet below:

ASPX

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Tools.aspx.cs" Inherits="ARCHLT.Helios.Eos.Tools" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
 
<script type="text/javascript">
 
    function ItemErrorAlert(message) {
        radconfirm(message, confirmCallBackFn, 300, 100, null, "Title");
    }
 
    function confirmCallBackFn(arg) {
        radalert("<strong>radconfirm</strong> returned the following result: <h3 style='color: #ff0000;'>" + arg + "</h3>", null, null, "Result");
    }
 
     
</script>
 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h3>TOOLS</h3><br />
 
<!-- Rad Window Manager -->
<telerik:RadWindowManager ID="RadWindowManager" runat="server" EnableShadow="true">
</telerik:RadWindowManager>
 
<!-- Rad Ajax Manager -->
<telerik:RadAjaxManager ID="RadAjaxManager" runat="server">
</telerik:RadAjaxManager>
 
<div style="float:left;">
    <telerik:RadTextBox ID="txt_InputData" runat="server" TextMode="MultiLine" EmptyMessage="Enter TagID or Item GUID Here. (Comma, Line or Space Delimited)" Width="500px" Height="200px" />
       <br /><br />
    <telerik:RadButton ID="btn_ValidateInputData" runat="server" Text="Validate" OnClick="ValidateInputData" />
    <telerik:RadButton ID="btn_Execute" runat="server" Text="Execute" Visible="false" OnClick="ExecuteInputData"/>
</div>
<asp:Panel ID="panel_DataManipulation" runat="server" Enabled="false">
    <div style="float:left;">
        <span>Set Status: </span><telerik:RadComboBox ID="rcb_SetStatus" runat="server" EmptyMessage="Select Status">
            <Items>
                <telerik:RadComboBoxItem Text="" Value="" />
                <telerik:RadComboBoxItem Text="Checked In" Value="1" />
                <telerik:RadComboBoxItem Text="Checked Out" Value="2" />
                <telerik:RadComboBoxItem Text="Consumed/Allocated" Value="3" />
                <telerik:RadComboBoxItem Text="Transferred" Value="4" />
            </Items>
        </telerik:RadComboBox>
        <span>Set Location: </span><telerik:RadComboBox ID="rcb_SetLocation" runat="server" EmptyMessage="Select Location" />
         
            <br /><br />
 
        <span>Set Expiration: </span><telerik:RadDatePicker ID="rdp_SetExpiration" runat="server" />
 
    </div>
</asp:Panel>
</asp:Content>


C#

protected void ValidateInputData(object sender, EventArgs e)
{
    bool ResultItemID = false;
    bool ResultTagID = false;
    // Parse the input data into a list
    List<string> ParsedInputData = ParseInputData(txt_InputData.Text);
 
    // Check if the input data is a TagID or Item.ID
    if (IsItemID(ParsedInputData))
    {
        // Check to see if there are any errors
        if (ErrorID.Count > 0)
        {
            string sErrorMsg = "";
            sErrorMsg += "A few of the IDs you inputed did not validate: ";
 
            foreach (string s in ErrorID)
            {
                sErrorMsg += "'" + s + "',";
            }
 
            // Remove trailing comma
            sErrorMsg.Remove(sErrorMsg.Count() - 1);
 
            sErrorMsg += "Would you like to try to validate again without these IDs?";
 
            //RadWindowManager.RadConfirm(sErrorMsg, "confirmCallBackFn", 330, 100, null, "Input Data Validation");
 
            ScriptManager.RegisterStartupScript(this, this.GetType(), "itemerroralert", "ItemErrorAlert(\"" + sErrorMsg + "\");", true);
        }
        else
        {
            ResultItemID = true;
            inputDataType = IDType.ItemID;
            RadWindowManager.RadAlert("The input data has been validated as an Item.ID. Please choose what you would like to do from the panel on the right", 300, 100, "Validation Alert", null);
        }
    }
    else if (IsTagID(ParsedInputData))
    {
        ResultTagID = true;
        inputDataType = IDType.TagID;
        ScriptManager.RegisterStartupScript(this, this.GetType(), "radalert", RadPopup.GenerateConfirmScript("The input data has been validated as a TagID. Please choose what you would like to do from the panel on the right"), true);
    }
 
 
    // Turn on
    if ((ResultItemID) || (ResultTagID))
    {
        panel_DataManipulation.Enabled = true;
        btn_ValidateInputData.Visible = false;
        btn_Execute.Visible = true;
    }
}
Princy
Top achievements
Rank 2
 answered on 06 Jun 2012
1 answer
244 views
Hi

Is there any way to select an item in RadListView on right mouse click?? I use this demo http://demos.telerik.com/aspnet-ajax/listview/examples/client/webservicedatabinding/defaultcs.aspx to populate the ListView, but the right click always shows me the browsers contextMenu.

Thanks
Tsvetina
Telerik team
 answered on 06 Jun 2012
1 answer
121 views
Hi Team,
We are migrating to Telerik's dll with version "2010.2.929.20". Currently we are facing an issue with RADAjaxManager.
Initially we declared RADAjaxManager in .aspx page and AjaxSettings where added dynamically in Page_PreRender event.
Now, after rewplacing the dll I've moved the dynamically added AjaxSettings from .cs -to-> .aspx.
telerik:RadScriptManager tag is on my Master page.

we are using Client Side API i.e.,

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
  <script type="text/javascript" language="javascript">
    function RequestStart(sender, eventArgs) {
      alert('inside RequestStart');
    }
    function RequestEnd(sender, eventArgs) {
      alert('inside RequestEnd');
    }
  </script>
</telerik:RadCodeBlock>
<telerik:RadFormDecorator ID="RadFormDecorator1" runat="Server" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<ClientEvents OnResponseEnd="ResponseEnd" OnRequestStart="RequestStart" ></ClientEvents>
 <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Button1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="LoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>



Problem is some how on button click none of the clientevents are getting called and neither do i see any difference in terms of page postback's. I mean Page does not seem to be ajaxified. Please help.

Thanks
Maria Ilieva
Telerik team
 answered on 06 Jun 2012
9 answers
245 views
Hi All,

I am facing one issue related to telerik grid for IE 7. I have provided horizontal scroll to telerik gridview by below property 

<ClientSettings>
   <Scrolling AllowScroll="true" UseStaticHeaders="true" />
</ClientSettings>

Its working fine with IE 8 , FF and chrome but not working with IE 7. The layout gets distorted in IE 7 and its only for rad date picker in filter. Kindly find attached screen for the same.

Please help me.

Thanks,
Ruchi Jani
Pavlina
Telerik team
 answered on 06 Jun 2012
1 answer
73 views
I've been beating my head against the keyboard for two days now, trying to get the chart onclick event to fire.  I've gone through all the help and examples -- nothing works.  I have version 2012.1.411.35 - why doesn't it work????
Rosko
Telerik team
 answered on 06 Jun 2012
1 answer
74 views
Hello,

I need every 30 seconds an info which Appointment the current time is displayed in the Scheduler. I need this for a status display in a TreeView. The TreeView shows to the Appointment with an associated icon.

How can I check every 30 seconds the current Appointment and analyze the information?
Thank you
Reiner
Plamen
Telerik team
 answered on 06 Jun 2012
0 answers
66 views
Hi Telerik's Masters
How to bind RadListView1 ( it DataSourceId="SqlDataSource1") using RadListView2 (it DataSourceId="SqlDataSource2" 
) Item Template ?   to filter RadListView1 (using that modele http://demos.telerik.com/aspnet-ajax/listview/examples/filtering/defaultcs.aspx 
)
Thank you

Berrabah
Top achievements
Rank 1
 asked on 06 Jun 2012
1 answer
72 views
Is there anything about the trial versions of ASP.Net AJAX that would prevent me from being able to use them under IIS 7?  
Rumen
Telerik team
 answered on 06 Jun 2012
0 answers
84 views

Hi,

I got an experience with ajaxpanel on google chrome that loads forever, a certain page I encounter this problem but not all.  Other webbrowsers  are working fine.

Kind Regards,

Duy
Duy
Top achievements
Rank 1
 asked on 06 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?