Click here to Skip to main content
11,639,765 members (66,491 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
Hi All,
Am working on Telerik control with two radcomboboxes and a textbox. Selection on one combobox will fill another combobox and selection of second combobox will fill textbox. The code works fine but on selection of value in comboboxes, the page gets loaded. I want to accomplish the same task without page load.Pls help...
This is my clientside code:

<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        .#formComboFill {
            width: 500px;
        }
    </style>
   
      
 
    </script>
</head>
<body>
    <form id="formComboFill" runat="server">
    <div>
    
        <table class="style1">
            <tr>
                <td>
                    <asp:Label ID="lblName" runat="server" Text="StoreName"> </td>
                <td>   
    <telerik:RadScriptManager ID="RadScriptManager1"  runat="server" EnableScriptCombine="true"> 
    <telerik:RadCodeBlock ID="RadCodeBlock2"   runat="server"> 
           <script type="text/javascript">
               function LoadAddress(combo, eventarqs) {
                   var combo2 = $find("<%=cboSupplier.ClientID %>");
                   var name = combo2.get_value();
                   formComboFill.action = "Combo.aspx?action=loadAddrs&name=" + name;
                   formComboFill.submit();            
                      }
    </script> 
           
            <telerik:RadCodeBlock ID="RadCodeBlock1"  runat="server"> 
           <script type="text/javascript">
               function LoadcboSupplier(combo, eventarqs) {
                   var combo1 = $find("<%=cbocheck.ClientID %>");
                   var id = combo1.get_value();
                    formComboFill.action = "Combo.aspx?action=load&id=" + id;
                   formComboFill.submit();
             }
           </script>
           
              <telerik:RadComboBox   runat="server" ID="cboName" Filter="Contains" MarkFirstMatch="True" 
 EnableLoadOnDemand="True"  AutoPostBack="false"  önClientBlur="fnalert()" DataTextField="cStr_Name" DataValueField="iStr_id"  DataSourceID="SqlDataSource1"  >
                 
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:KMCH_InventoryConnectionString %>" 
                        SelectCommand="SELECT [iStr_id], [cStr_Name] FROM [Mast_Store]">
                    
                 
                  </td>
            </tr>
            <tr><td>
                    <asp:Label ID="lblSuplliers" runat="server" Text="Supplier Names">
                </td>
                <td>
               <telerik:RadComboBox   runat="server" ID="cboSupplier" Filter="Contains" MarkFirstMatch="True" OnClientSelectedIndexChanged= "LoadAddress"           
 EnableLoadOnDemand="True" ></td>
            </tr>
            <tr>
            <td>
                <asp:Label ID="lblAddress" runat="server" Text="">
            </td>
            <td>
            <asp:TextBox ID="txtaddrs" Columns="10" Rows="10" runat="server" 
                    TextMode="MultiLine" Width="163px" Height="200px">
        
            </td>
            </tr>
            
            
        </table>
    
    </div>
    </form>
</body>
</html>
Posted 26-Sep-12 2:12am
Divya RS1.1K
Edited 26-Sep-12 10:26am
Maciej Los187.3K
v3

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Please, visit telerik forum[^].
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Suvendu Shekhar Giri 330
1 CPallini 177
2 F-ES Sitecore 170
3 himanshu agarwal 167
4 Sergey Alexandrovich Kryukov 159
0 OriginalGriff 9,081
1 Sergey Alexandrovich Kryukov 8,847
2 Mika Wendelius 7,027
3 Suvendu Shekhar Giri 2,650
4 F-ES Sitecore 2,558


Advertise | Privacy | Mobile
Web04 | 2.8.150731.1 | Last Updated 26 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100