Telerik Forums
Community Forums Forum
0 answers
88 views
Hello,
I hope this useful Migrating firefox 3.0.11 Add-on into firefox 3.5

Kind regards,
Mostafa Anoosheh
Mostafa Anoosheh
Top achievements
Rank 1
 asked on 11 Jul 2009
0 answers
90 views
Hello,
I hope this useful: 15 jQuery Plugins to Fix and Beautify Browser Issues

Kind regards,
Mostafa Anoosheh
Mostafa Anoosheh
Top achievements
Rank 1
 asked on 11 Jul 2009
0 answers
136 views
Here is my page code..

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MasterContentPlaceHolder">   
    <telerik:RadAjaxManagerProxy ID="ajaxProxyContracts" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="tsContractCapture">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="tsContractCapture" />
                    <telerik:AjaxUpdatedControl ControlID="mpContractCapture" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <telerik:RadTabStrip ID="tsContractCapture" runat="server" MultiPageID="mpContractCapture">
        <Tabs>
            <telerik:RadTab runat="server" Text="General" Selected="true" PageViewID="pvGeneral">
            </telerik:RadTab>           
        </Tabs>
    </telerik:RadTabStrip>
    <asp:HiddenField ID="hdnContractID" runat="server" Value="-1" />
    <telerik:RadMultiPage ID="mpContractCapture" runat="server" Width="100%">
        <telerik:RadPageView BorderColor="Gray" Selected="true" BorderStyle="Solid" BorderWidth="1" ID="pvGeneral"
            runat="server">
            <Control:General ID="ucGeneral" runat="server" />
        </telerik:RadPageView>
      
    </telerik:RadMultiPage>
</asp:Content>


Here is my UserControl Code:


<script type="text/javascript">
    function validateCombo(source, args) {
        args.IsValid = false;
        var combo = $find('<%= cmbCounterparty.ClientID %>');
        var text = combo.get_text();
        if (text.length < 1) {
            args.IsValid = false;
        }
        else {
            var node = combo.findItemByText(text);
            if (node) {
                var value = node.get_value();
                if (value.length > 0 && value != -1) {
                    args.IsValid = true;
                }
            }
            else {
                args.IsValid = false;
            }
        }
    }
</script>

<table width="100%" border="0" cellpadding="0" cellspacing="3">
    <tr>
        <td align="right">
            Title
        </td>
        <td width="80%">
            <telerik:RadTextBox  ValidationGroup="Contract" CausesValidation="false" ID="txtTitle"
                runat="server" Width="500px">
            </telerik:RadTextBox>
            <asp:RequiredFieldValidator ID="reqVal_FirstName" runat="server" ControlToValidate="txtTitle"
                ValidationGroup="Contract">
                <asp:Image runat="server" ID="imgError1" AlternateText="*" CssClass="error_text"
                    ImageUrl="~/images/Delete16.png" />
            </asp:RequiredFieldValidator>
        </td>
    </tr>   
    <tr>
        <td align="right">
            Contract Type
        </td>
        <td width="80%">
            <telerik:RadComboBox CausesValidation="false" OnSelectedIndexChanged="cmbContractType_SelectedIndexChanged"
                ID="cmbContractType" AutoPostBack="true" runat="server" Width="250px">
                <CollapseAnimation Duration="200" Type="OutQuint" />
            </telerik:RadComboBox>
            &nbsp;
            <asp:RequiredFieldValidator Display="Dynamic" InitialValue="Select Contract Type"
                ID="reqVal_ContractType" runat="server" ControlToValidate="cmbContractType" ValidationGroup="Contract">
                <asp:Image runat="server" ID="Image2" AlternateText="*" CssClass="error_text" ImageUrl="~/images/Delete16.png" />
            </asp:RequiredFieldValidator>
        </td>
    </tr>

<tr>
        <td align="right">
            Counterparty
        </td>
        <td width="80%">
            <telerik:RadComboBox CausesValidation="false" ID="cmbCounterparty" runat="server"
                Width="250px">
                <CollapseAnimation Duration="200" Type="OutQuint" />
            </telerik:RadComboBox>
            &nbsp;
            <asp:CustomValidator ValidationGroup="Contract" ID="CustomValidator1" runat="server"
                ClientValidationFunction="validateCombo" ControlToValidate="cmbCounterparty"
                ErrorMessage="*" OnServerValidate="CustomValidator1_ServerValidate">
                <asp:Image runat="server" ID="Image4" AlternateText="*" CssClass="error_text" ImageUrl="~/images/Delete16.png" />
            </asp:CustomValidator>
        </td>
    </tr>
</table>

Please suggest
pratik
Top achievements
Rank 1
 asked on 10 Jul 2009
2 answers
234 views
Hi,
    I wrote following code, but when postback occurs(like dropdown index change), loading panel doesn't display... why??

<telerik:radajaxloadingpanel id="LoadingPanel" runat="server" transparency="20" mindisplaytime="300"
            backcolor="Transparent">
        <img src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading6.gif") %>'
            alt="Loading..." style="border: 0; margin-top: 40px;" />
    </telerik:radajaxloadingpanel>
    <telerik:radajaxmanagerproxy ID="ajaxProxyContracts" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="tsContractCapture">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="tsContractCapture" />
                    <telerik:AjaxUpdatedControl ControlID="mpContractCapture" LoadingPanelID="LoadingPanel" />

                </UpdatedControls>
            </telerik:AjaxSetting>            
        </AjaxSettings>
    </telerik:radajaxmanagerproxy>
    <telerik:RadTabStrip ID="tsContractCapture" runat="server" MultiPageID="mpContractCapture">
        <Tabs>
            <telerik:RadTab runat="server" Text="General" Selected="true">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Compilance">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Performance">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Documents">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Comments">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="mpContractCapture" runat="server" Width="100%">
        <telerik:RadPageView BorderColor="Gray" BorderStyle="Solid" BorderWidth="1" ID="pvGeneral"
            runat="server" Selected="true">
          <telerik:RadComboBox CausesValidation="false" OnSelectedIndexChanged="cmbContractType_SelectedIndexChanged"
                            ID="cmbContractType" AutoPostBack="true" runat="server" Width="250px">
                            <CollapseAnimation Duration="200" Type="OutQuint" />
                        </telerik:RadComboBox>

</telerik:RadPageView>
</telerik:RadMultiPage>

</telerik:RadMultiPage>
pratik
Top achievements
Rank 1
 answered on 10 Jul 2009
0 answers
122 views
Hi,

I post an example of extended function for JQuery embeded in Telrik RadControl.

Before you must add in your marster page or page the declaration of JQuery like this:
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true"
        <Scripts> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
        </Scripts> 
    </telerik:RadScriptManager> 

After this, you add the reference the javascript file in the ScriptManger.
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true"
        <Scripts> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
            <asp:ScriptReference Path="~/jquery.json-1.3.js" /> 
        </Scripts> 
    </telerik:RadScriptManager> 
You can donwload this script at this link

Then remane the variable "$" in the script by "$telerik.$".

Now you can add extended function to JQuery.


Stephane
Top achievements
Rank 1
 asked on 09 Jul 2009
2 answers
127 views

Where can I find RadComboBoxContext and RadComboBoxData classes?

Refering to this example: http://www.telerik.com/help/aspnet-ajax/combobox-loading-items-from-wcf-service.html

They don't exist in the Telerik.Web.UI.dll assembly apparently.

Any help is much appreciated.

 

 

 

 

Paul
Telerik team
 answered on 07 Jul 2009
0 answers
142 views
3 answers
580 views
I have a RadComboBox on my page:
<telerik:RadComboBox ID="RadComboBoxProduct" runat="server" Height="200px" Width="200px"
                            DropDownWidth="298px" EmptyMessage="Choose a Product" />

I have populated its data at run time, client name as text and clientId as value.

How can I get the selectedItem value using javascript?

function getSelectedValue(radComboBox)
{
// how to implement this?
}

Any help is much appreciated.
Paul
Telerik team
 answered on 03 Jul 2009
1 answer
237 views
I'm a complete newbie and i've just begun upgrading RadBar to RadMenu. I seem to get this error....

Error    6    Literal content ('<telerik:RadMenuItem Text="Hours" BorderStyle"None" NavigateUrl="~/hours">      </telerik:RadMenuItem>') is not allowed within a 'Telerik.Web.UI.RadMenuItemCollection'.   

Any explanations or suggestions as to get rid of this??

SJ
Sandy Jain
Top achievements
Rank 1
 answered on 02 Jul 2009
1 answer
119 views
Hi,

I a webform page, there is a asp.net server control button. In the updatecontrols section of the submit button, iam calling the grid to update the value.The problem is when i click the button, it takes long time to load the grid , at the IE browser i could see the javascript error message like "sitename\
webresource.axd?d=ncpz4pkidnwmd_gnzvmfkcbokkvggiwn2rt4fzxpku
". Can you pls let me know which control's axd file is this which is not downloading to the IE browser.This happens only in windows 2000 in the Microsoft IE 6 (SP1) browser.This is an priority, pls help
Pavel
Telerik team
 answered on 02 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?