Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
335 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
335 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
380 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
105 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
323 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
132 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
2 answers
79 views
Hi,
I have a wierd issue with Radgrid. Once I launch the page, Radgrid is being displayed with all the rows. When I click on "Edit", a usercontrol will be appeared, but all the bottom rows are being scrambled and appearing outside the gridview.

Is there any way to fit all the rows within the gridview when the usercontrol appears?
Ram
Top achievements
Rank 1
 answered on 20 Feb 2012
1 answer
147 views

Team,

I've 3 RadComboBox inside RadListview. I just want to get the selectedIndex of the each Radcombobox items lying inside the RadListView.
Aready am using RadListView_ItemDataBound event for databing.
What way I can retrieve the SelectedIndex?


//Thanks....

Shinu
Top achievements
Rank 2
 answered on 20 Feb 2012
1 answer
89 views
I have a page that requires about 100 combo boxes with some ajax features. RadComboBox consumes a whooping 100K of HTML on the client side. When I looked into the combo box I found that it is rendered with table tag and have big names for the styles as well as using inline styles.

Maybe a lightweight combobox (with simple div and less heavyweight classes would be useful). I can understand all the flexibility etc, but IMHO this is not very efficiently designed (comparing with the free ones like flexbox etc.)

Now my question is, is there any trick to stylesheet or template etc. that can reduce the size of the html rendered by the combobox? maybe I would be allowed to use cascading stylesheet and reduce the size?
Princy
Top achievements
Rank 2
 answered on 20 Feb 2012
1 answer
94 views
Hi there-

I want to detect if a DropDown field had an empty value before entering editmode but can't seem to tell how. What's happening is when I open inline editing for a item, the DropDown autoselect the first item in the datasource that the dropdown is bound to... even if previously there was no value in there. 

So for example I have no text values in this column:
 <telerik:GridDropDownColumn DataField="DataCenterCode" DataSourceID="SqlDataSource_DataCenters"
                            HeaderText="DataCenterCode" ListTextField="Acronym" ListValueField="Acronym"
                            UniqueName="DataCenterCode" ColumnEditorID="GridDropDownColumnEditor2">
                      </telerik:GridDropDownColumn>

But then once I enter edit mode, the first value is automatically selected. How can I determine if the value is actually empty for this field so that I can highlight it as requiring selection. Otherwise, it appears as though the first value was already selected.

Thanks for any help.
Princy
Top achievements
Rank 2
 answered on 20 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?