If I select any item from the combobox, the whole screen is refreshing(flicker)
so is there any way we can prevent whole page post back when i select item from RadComboBox?
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/master_default.Master" CodeBehind="Testing.aspx.vb" Inherits="LearningDepot.Testing" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<telerik:RadComboBox ID="RadComboBox1" runat="server" DataSourceID="ODSLookup"
DataTextField="LookupKey" DataValueField="ID">
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</telerik:RadComboBox>
<telerik:RadComboBox ID="RadComboBox2" runat="server">
<Items>
<telerik:RadComboBoxItem runat="server" Text="Cell" Value="1" />
<telerik:RadComboBoxItem runat="server" Text="Home" Value="2" />
<telerik:RadComboBoxItem runat="server" Text="Office" Value="3" />
<telerik:RadComboBoxItem runat="server" Text="Fax" Value="4" />
</Items>
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</telerik:RadComboBox>
<telerik:RadComboBox ID="RadComboBox3" runat="server" DataSourceID="SDSLookup"
DataTextField="LookupKey" DataValueField="LookupId">
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</telerik:RadComboBox>
<telerik:RadTextBox ID="RadTextBox2" runat="server">
</telerik:RadTextBox>
<asp:ObjectDataSource ID="ODSLookup" runat="server"
SelectMethod="DataList" TypeName="LearningDepotAPI.Lookups">
<SelectParameters>
<asp:Parameter DefaultValue="PhoneType" Name="lookupGroup" Type="String" />
<asp:Parameter DefaultValue="1" Name="recordStatus" Type="Object" />
<asp:Parameter DefaultValue="1" Name="SortBy" Type="Object" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:SqlDataSource ID="SDSLookup" runat="server"
ConnectionString="<%$ ConnectionStrings:pmbLD_DB %>"
SelectCommand="pmbLDsp_COLL_Lookup_ByKey" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:Parameter DefaultValue="PhoneType" Name="LookupGroup" Type="String" />
<asp:Parameter DefaultValue="1" Name="StatusFlag" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
add RadComboBox3
.SelectedIndex = "1" after DataBind() but with no resultProtected Sub LoadCities(ByVal countryID As String)
Dim connection As New SqlConnection(ConfigurationManager.ConnectionStrings("TelerikConnectionString").ConnectionString)
'select a city based on the countryID
Dim adapter As New SqlDataAdapter("SELECT * FROM Cities WHERE CountryID=@CountryID ORDER By Name", connection)
adapter.SelectCommand.Parameters.AddWithValue("@CountryID", countryID)
Dim dt As New DataTable()
adapter.Fill(dt)
RadComboBox3.DataTextField = "Name"
RadComboBox3.DataValueField = "ID"
RadComboBox3.DataSource = dt
RadComboBox3.DataBind()
End Sub