Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
400 views

Hello,

 

i am using Telerik Version Q1 2009.

In my RadGrid is a filter like that:

 <telerik:GridTemplateColumn DataField="BETRIEBSNR" HeaderText="Betriebsnr" UniqueName="BETRIEBSNR">

            <FilterTemplate>

                <telerik:RadComboBox ID="RadComboBox1" DataSourceID="SDS_FILTER_BETRIEBSNR" DataTextField="BETRIEBSNR"

                 DataValueField="BETRIEBSNR" AppendDataBoundItems="true"

                 SelectedValue='<%# TryCast(Container,GridItem).OwnerTableView.GetColumn("BETRIEBSNR").CurrentFilterValue %>'

                 runat="server" OnClientSelectedIndexChanged="SelectedIndexChanged" EnableLoadOnDemand="true"

                  AllowCustomText="true" MarkFirstMatch="true">

                    <Items>

                        <telerik:RadComboBoxItem />

                    </Items>

                 </telerik:RadComboBox>

                

                 <telerik:RadScriptBlock ID="RadScriptsBlock1" runat="server">

                    <script type="text/javascript">

                        function SelectedIndexChanged(sender, args) {

                            var tableView = $find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID %>");

                            tableView.filter("BETRIEBSNR", args.get_item().get_value(), "EqualTo");

                        }

                    </script>

                 </telerik:RadScriptBlock>

            </FilterTemplate>

            <ItemTemplate>

                <%#Eval("BETRIEBSNR")%>

            </ItemTemplate>

        </telerik:GridTemplateColumn> 

 

 

<asp:SqlDataSource ID="SDS_FILTER_BETRIEBSNR" runat="server"

                ConnectionString="<%$ ConnectionStrings:APPDB %>" SelectCommand="SELECT DISTINCT BETRIEBSNR FROM    BETRIEBE"></asp:SqlDataSource>

 

 

If I take an Item i’m getting this message:

 

Sys.WebForms.PageRequestManagerServerErrorException: Selection out of range

Parametername: value

Telerik.Web.UI.WebResource.axd Zeile:6

 

Thank you for your help! 

Pavlina
Telerik team
 answered on 20 Feb 2012
1 answer
77 views
Hi,

 I need to add tool tip    on mouse over in editor content.
 


by some content is shown to the user when he places the mouse cursor on top of a given element or text (mouse over).

Could you please tell the way to adding tool tip to editor.

Thanks,
Uma

Princy
Top achievements
Rank 2
 answered on 20 Feb 2012
0 answers
88 views
I have an error while running my asp.net file which using Rad-Controls. I used to create a page with RadTabStrip with the online sample that was in www.telerik.com/help/aspnet/tabstrip/tab_create a wizzard with telerik radtabstrip.html site. But it won't work while running. This page runs with an error "Done, but errors on page".

I need to know what exactly problem this is. Could any body help me?




I use this as my code snippet.


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadForCtrl.aspx.cs" Inherits="RadForCtrl" %>
 
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>Untitled Page</title>
     
 
</head>
<body>
    <form id="form1" runat="server">
          <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    <div>
           
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" SelectedIndex="2">
            <Tabs>
                <telerik:RadTab runat="server" PageViewID="PageView0" SelectedIndex="0" Text="Account Info"></telerik:RadTab>
                <telerik:RadTab runat="server" Enabled="False" PageViewID="PageView1" Text="Address"></telerik:RadTab>
                <telerik:RadTab runat="server" Enabled="False" PageViewID="PageView2" Text="Subscription"></telerik:RadTab>
                <telerik:RadTab runat="server" Enabled="False" PageViewID="PageView3" Text="Registration"></telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
         
           
     
    </div>
            
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="2">
             
            <telerik:RadPageView ID="PageView0" runat="server">
                    <asp:Label ID="Label1" runat="server" Text="Title"></asp:Label>
                        <asp:DropDownList ID="DropDownList1" runat="server">
                            <asp:ListItem>Mr.</asp:ListItem>
                            <asp:ListItem>Mrs.</asp:ListItem>
                            <asp:ListItem>Miss.</asp:ListItem>
                        </asp:DropDownList><br />
                 
                    <asp:Label ID="Label5" runat="server" Text="First Name"></asp:Label>
                    <asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFirstName" ErrorMessage="Frist Name is Required" Display="Dynamic"></asp:RequiredFieldValidator><br />
                     
                <asp:Label ID="Label6" runat="server" Text="Second Name"></asp:Label>
                <asp:TextBox ID="txtSecondName" runat="server"></asp:TextBox><br />
                <asp:Label ID="Label7" runat="server" Text="E-Mail"></asp:Label>
                <asp:TextBox ID="txtMail" runat="server"></asp:TextBox><br />
                <asp:Button ID="buttonNextAccount" runat="server" OnClick="buttonNextAccount_Click"
                    Text="Next" /></telerik:RadPageView>
             
            <telerik:RadPageView ID="PageView1" runat="server">
                PageView2
                    <asp:Label ID="Label2" runat="server" Text="Hello"></asp:Label>
                <asp:Button ID="buttonNextAddress" runat="server" OnClick="buttonNextAddress_Click"
                    Text="Next" /></telerik:RadPageView>
             
            <telerik:RadPageView ID="PageView2" runat="server">
                PageView3
                    <asp:Label ID="Label3" runat="server" Text="Welcome"></asp:Label><asp:Button ID="buttonNextSubscribe"
                        runat="server" OnClick="buttonNextSubscribe_Click" Text="Next" /></telerik:RadPageView>
             
            <telerik:RadPageView ID="PageView3" runat="server">
                PageView4
                    <asp:Label ID="Label4" runat="server" Text="Rad Controls"></asp:Label>
                <asp:Button ID="buttonNextReg" runat="server" OnClick="buttonNextReg_Click" Text="Next" /></telerik:RadPageView>
             
        </telerik:RadMultiPage>
    </form>
</body>
</html>
Krishnakumar
Top achievements
Rank 1
 asked on 20 Feb 2012
1 answer
98 views
I'd like to know how long is the free trial of ASP.NET AJAX. Thanks.
Kate
Telerik team
 answered on 20 Feb 2012
7 answers
309 views
I am using RadAsyncUpload and have set the property MaxFileInputsCount to 10. After browsing the 10 documents the "Select" button disappears. Which is fine. I then delete the 10th documents and still the "Select" button is not visible. I want to show the "Select" button when the total uploaded files is <10.
Bozhidar
Telerik team
 answered on 20 Feb 2012
5 answers
301 views
I am trying to use a Jquery form validation.  The validation works fine with asp input controls but does nothing with telerik controls. 

Here is my code:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test2.aspx.cs" Inherits="Rewrite.Images.test2" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <link href="../App_Themes/Default/Default.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.6.2.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-1.6.2.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.validationEngine.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.validationEngine-en.js" type="text/javascript"></script>
    <title></title>
    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
        <script type="text/javascript">
            $(document).ready(function () {
                $("#formID").validationEngine();
            });
 
        </script>
    </telerik:RadScriptBlock>
</head>
<body>
    <form id="formID" runat="server">
    <telerik:RadScriptManager ID="ScriptManager" runat="server" />
    <div style="padding-top: 300px">
        <asp:TextBox ID="txt_First" runat="server" class="validate[required]" /><br />
        <asp:TextBox ID="txt_Second" runat="server" class="validate[required]" /><br />
        <telerik:RadNumericTextBox ID="txt_Numeric" runat="server" class="validate[required]">
        </telerik:RadNumericTextBox><br />
        <asp:TextBox ID="txt_Max" runat="server" class="validate[required],max[100]" /><br />
        <input type="button" id="btn_Submit" title="Submit" /><br />
        <asp:Label ID="lbl_Output" runat="server" Text="" />
    </div>
    </form>
</body>
</html>


I am not sure if I have to point the telerik controls to the Jquery files that I am using or how.

Thanks for your time.
Vasil
Telerik team
 answered on 20 Feb 2012
7 answers
354 views
Hi there..

I'm a little new to JQuery, so i am not sure why this is happening and was hoping someone could enlighten me and maybe help me with the correct implementation.

I have a JQuery script that repositions a div and the page is scrolled. I have it wrapped in a RadScriptBlock:

<telerik:RadScriptBlock ID="radScriptBlock" runat="server">
        <script type="text/javascript">
            $(function () {
                var offset = $("#<%= pnlMessageForm.ClientID %>").offset();
                var topPadding = 15;
                $(window).scroll(function () {
                    if ($(window).scrollTop() > offset.top) {
                        $("#<%= pnlMessageForm.ClientID %>").stop().animate({
                            marginTop: $(window).scrollTop() - offset.top + topPadding
                        });
                    } else {
                        $("#<%= pnlMessageForm.ClientID %>").stop().animate({
                            marginTop: 0
                        });
                    };
                });
            });
        </script>
    </telerik:RadScriptBlock>

The div that it is positioning is pnlMessageForm. It is wrapped inside another panel called pnlMessageOverlay. Onclick of a button i am doing the following updates:

<telerik:RadAjaxManager ID="radAjaxManager" runat="server" DefaultLoadingPanelID="radAjaxLoadingPanel">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btnSend">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="radScriptBlock" />
                <telerik:AjaxUpdatedControl ControlID="pnlMessageOverlay" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

However the JQuery does not seem to work when partial page updates are introduced. It only seems to work when a full page postback is done... I am updating the RadScriptBlock, but this does not seem to fix it...

How can i get this working so that i can use the RadAjaxManager

Thanks,
Duncan
Antonio Stoilkov
Telerik team
 answered on 20 Feb 2012
1 answer
90 views
Hi,

I am using Telric control 5.8 in sharepoint 2007.i want default message using "RadHtmlField" in content area.

please do the needful.

Regards
Ajay
Stanimir
Telerik team
 answered on 20 Feb 2012
5 answers
298 views
I am using web service binding for imporving RadScheduler performance.

But I want to enable filter resources just like server-side demo (http://demos.telerik.com/aspnet-ajax/scheduler/examples/resources/defaultcs.aspx)

Could this requirement be done by client-side programming?

            var scheduler = $find('CalendarControl1_RadScheduler1');
            var apts = scheduler.get_appointments();
            var recs = scheduler.get_resources();
            var aptsByRec = apts.findByResource(recs.getResourceByTypeAndKey("User""Michael"));
            scheduler.set_appointments(aptsByRec); //Error Here;
Thanks & forgive my poor English

Dhamodharan
Top achievements
Rank 1
 answered on 20 Feb 2012
1 answer
120 views
TbCity: idCity,name,idState
TbState:idState,name

In RadGrid I want to view and search the following fields through the TbCity : TbCity.name and TbState.name.
How do I proceed?Thanks.. 
Pavlina
Telerik team
 answered on 20 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?