Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
360 views
Hi all,, 

I have a check box and 3 combo box.. when the check box checked that time only the combo box state change to enable.. when check box state is false combo gone disabled.. this validation work at client side 

Script
<script type="text/javascript" language="javascript">
        function EnableControl_3() {
            var combo3 = $find("<%= RadCmbxSections.ClientID %>");
            var combo4 = $find("<%= RadCmbxDepartment.ClientID %>");
            var combo = $find("<%= RadCmbxEmployee.ClientID %>");
 
            var checkbox = document.getElementById('<%= chkEmployee.ClientID %>');
            if (checkbox.checked) {
                combo.enable();
 
                combo3.enable();
                combo4.enable();
            } else {
                combo.disable();
 
                combo3.disable();
                combo4.disable();
            }
        }
    </script>

Aspx
<telerik:RadComboBox runat="server" ID="RadCmbxEmployee" Height="190px" EmptyMessage="Select supplier"
                                                            Width="410px" MarkFirstMatch="true" DataSourceID="SqlDataSource2" EnableLoadOnDemand="true"
                                                            HighlightTemplatedItems="true" OnClientItemsRequested="UpdateItemCountField"
                                                            OnDataBound="RadCmbxEmployee_DataBound" OnItemDataBound="RadCmbxEmployee_ItemDataBound"
                                                            OnItemsRequested="RadCmbxEmployee_ItemsRequested" AutoPostBack="True">
                                                            <HeaderTemplate>
                                                                <ul class="rcbHovered">
                                                                    <li class="col1">Name</li>
                                                                    <li class="col2">Code</li>
                                                                    <li class="col3">ContactPerson</li>
                                                                </ul>
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <ul>
                                                                    <li class="col1">
                                                                        <%#DataBinder.Eval(Container.DataItem, "Name")%></li>
                                                                    <li class="col2">
                                                                        <%#DataBinder.Eval(Container.DataItem, "Code")%></li>
                                                                    <li class="col3">
                                                                        <%#DataBinder.Eval(Container.DataItem, "ContactPerson")%></li>
                                                                </ul>
                                                            </ItemTemplate>
                                                            <FooterTemplate>
                                                                A total of
                                                                <asp:Literal runat="server" ID="RadComboItemsCount" />
                                                                items
                                                            </FooterTemplate>
                                                        </telerik:RadComboBox>

Combo box auto post back is true..
when i try to select a row of that combo box the combo box state changed to disable automatically.. 
but still the check box state has been checked.. why this happen like this..

Regards,

Prassin
Prassin
Top achievements
Rank 1
 answered on 06 Aug 2012
3 answers
130 views
Hi,

Added main node(Main1). 
Under the main node, added sub node (Sub1). Again under this, added another sub node (sub2) .. etc upto nodes 170 levels

tree is formed like
Main1
 - Sub1
- Sub2
- Sub3
-Sub4
-Sub5
...............etc upto -Sub170


Problem1: Mozilla Firefox is not getting display after subnode 92 (1FirefoxProblem.jpg).

Problem2: Some times nodes are displaying like vertical line is not attached with the parent node(Tree not displaying.jpg).  
Chakradhar
Top achievements
Rank 1
 answered on 06 Aug 2012
3 answers
208 views
I have a grid that uses an edit form template. The template includes a dropdown that needs to control the visibility of other controls on the form based on the selection. I intend to do this with a selected index changed event. How do I get a reference to the edit form controls on the page within a SelectedIndexChanged event of a dropdown?

<EditFormSettings EditFormType="Template">
    <EditColumn ButtonType="ImageButton" />
    <FormTemplate>
        <table cellpadding="2" cellspacing="1" border="0" style="font-size: small; border-collapse: collapse;
            background: white;">
            <tr valign="top">
                <td colspan="2" align="left">
                    <b>Document Details</b>
                </td>
            </tr>
            <tr valign="top">
                <td class="ContentWhite">
                    <span class="Error">*</span>Document Type:
                </td>
                <td class="ContentWhite" align="left">
                    <telerik:RadComboBox ID="rcbDocumentType" runat="server" EnableItemCaching="true" MaxHeight="300px"
                     OnSelectedIndexChanged="rcbDocumentType_SelectedIndexChanged">
                        <Items>
                            <telerik:RadComboBoxItem Value="-Select-" Text="-Select-" />
                            <telerik:RadComboBoxItem Value="1" Text="W9" />
                            <telerik:RadComboBoxItem Value="2" Text="E&O" />
                            <telerik:RadComboBoxItem Value="3" Text="License" />
                            <telerik:RadComboBoxItem Value="4" Text="Vendor Acknowledgement" />
                            <telerik:RadComboBoxItem Value="5" Text="Master Listing Agreement" />
                            <telerik:RadComboBoxItem Value="6" Text="State Registration" />
                        </Items>
                    </telerik:RadComboBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="None"
                        ValidationGroup="vgDocument" ControlToValidate="rcbDocumentType" InitialValue="-Select-"
                        ErrorMessage=" Document Type is required " />
                </td>
            </tr>
            <tr valign="top">
                <td class="ContentWhite">
                    <asp:Label ID="lblManagingBrokerFirstName" runat="server" Text="First Name:" Visible="false" />
                </td>
                <td class="ContentWhite" align="left">
                    <telerik:RadTextBox ID="rtbManagingBrokerFirstName" runat="server" MaxLength="128" />
                </td>
            </tr>
            <tr valign="top">
                <td class="ContentWhite">
                    <asp:Label ID="lblManagingBrokerLastName" runat="server" Text="Last Name:" />
                </td>
                <td class="ContentWhite" align="left">
                    <telerik:RadTextBox ID="rtbManagingBrokerLastName" runat="server" MaxLength="128" />
                </td>
            </tr>


How do I toggle the visibility of the radtextbox (rtbManagingBrokerLastName) in the selected index changed event of the combobox (rcbDocumentType)?
Shinu
Top achievements
Rank 2
 answered on 06 Aug 2012
0 answers
127 views
Hello everybody, I have a problems. I want merge rows and header columns in radgrid? I will try, but I can't find merge rows. Have you any ideas? Thanks you very much? 
Pham
Top achievements
Rank 1
 asked on 06 Aug 2012
1 answer
162 views
Hello, I am trying to set the OnItemCommand in the code behind in visual basic with no luck.

For example, I am trying to set the property like this which works in C#,

grid1.ItemCommand += New GridCommandEventHandler(RadGridView_ItemCommand)
 However in VB.net I don't even have access to the ItemCommand event.

Any help is greatly appreciated.

Thanks,
Shinu
Top achievements
Rank 2
 answered on 06 Aug 2012
1 answer
110 views
Hi!

I'm trying to use a very simple RadUpload control:

<telerik:RadUpload ID="LogoFileUpload" MaxFileInputsCount="1" ControlObjectsVisibility="None"
                            Skin="Web20" runat="server" />

Now I want increase the width of the text area and also the "Select" button.  How can I do this?

Thanks!
Princy
Top achievements
Rank 2
 answered on 06 Aug 2012
1 answer
161 views
I have a base page with the next code in the .aspx
<telerik:RadSplitter runat="Server" ID="splMain" Width="100%" BorderSize="0"
    BorderStyle="None" PanesBorderSize="0" Height="100%" Orientation="Horizontal"
    VisibleDuringInit="false">
    <telerik:RadPane ID="topPane" runat="server" Height="60px" BackColor="#157164">
        <telerik:RadAjaxPanel ID="radAjaxPanel01" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
            <telerik:RadMenu id="mnuTop01" runat="server" EnableViewState="false" CausesValidation="false" OnClientItemClicked="OnClientItemClicked" CollapseAnimation-Type="None" 
        EnableShadows="true" EnableRoundedCorners="true" Style="float: none; position:absolute; top:20px; z-index:2000;" Width="100%"  >       
            </telerik:RadMenu>
            <div class="div02" style="float: none; position:absolute; top:45px; height:16px; text-align:center;">
                <asp:Label ID="lblApp" runat="server" cssclass="tb2" Text="Inicio"/>
            </div>
        </telerik:RadAjaxPanel>
    </telerik:RadPane>
    <telerik:RadPane runat="server" ID="pnlContenido" Scrolling="Both" ContentUrl="ePageEmpty00.aspx?a=some" ShowContentDuringLoad="false">
    </telerik:RadPane>
</telerik:RadSplitter>

vía a javascript function I change the Label (LblApp) text.

function fnT(a) {
    var l = document.getElementById("lblApp");
    l.innerHTML = a;
}


Here is myquestion, I´m loading in the pnlContenido RadPane an external .aspx, how can I change the LblApp text, from the external.aspx:
I have tried this in the external.aspx, but it doesnt work:

window.onload = function () {
    window.parent.fnT('Some Info');
}


Can somebody help me, please.

Thanks in advance.


iomega 55
Top achievements
Rank 1
 answered on 05 Aug 2012
0 answers
58 views
I use Drag and drop demo on telerik site. But DetailTables get collaps after Drag and Drop after grid rebind. please help me
Anu
Top achievements
Rank 1
 asked on 04 Aug 2012
3 answers
126 views
I have a client side Radwindow and when the maximize button is clicked, it appears to be in disabled mode. The only way to proceed is if I kill the  browser window. This does not happen with all other client side RadWindows. Please provide any suggestions to fix this.
Venkat
Top achievements
Rank 1
 answered on 04 Aug 2012
2 answers
159 views

hi friends,

i have a radgrid in my page that some script have set for OnGridDestroying event. my script get all controls and their value in page and sent them with Ajax to server side with a httprequest object . consider a button on page too that cause a postback, but i want to process my request object before any post back in page . i tryed window.onbeforeunload , it works fine till i use radajaxpanel or a update panel on page... is there any javascript event that fire before any post back that i can set for my radGrid or its parent that is a div element?

thanks

Reza
Top achievements
Rank 1
 answered on 04 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?