Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
128 views
by default, the ComboBox control changes the selected item when ranging the items. 

is it possible to change the selected item just on clientclick event of any items ?

Shinu
Top achievements
Rank 2
 answered on 19 Oct 2010
1 answer
180 views

I've got a test form with a user control inside.  When I click on a button in the user control this opens a rad window - however the window opens and closes immediately and will not stay open...code below...any ideas?

There is no code behind in any of the forms. Using Telerik version 2010-1-519.

Base form in ~/Forms:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestForm.aspx.cs" Inherits="Forms_TestForm" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register TagPrefix="Elenco" TagName="EventVenues" Src="~/Forms/Controls/CliffTest.ascx" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
      
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    </telerik:RadScriptManager>
  
    <div>
        <Elenco:EventVenues runat="server" ID="EventVenues" />
    </div>
  
      
    </form>
</body>
</html>


User Control in ~/Forms/Controls:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CliffTest.ascx.cs" Inherits="Forms_Controls_CliffTest" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Button1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Button1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
  
<script type="text/javascript">
    function openRadWinCreateVenue() {
        radopen("../Dialogs/CliffTestDialog.aspx", "RadWindowCliffTestDialog");
    }
  
</script>
  
<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="javascript:openRadWinCreateVenue();" />
  
<telerik:RadWindowManager ID="RadWindowManagerEvent" runat="server" 
    Behaviors="Default" InitialBehaviors="None" EnableViewState="False">
    <Windows>
        <telerik:RadWindow runat="server"  ID="RadWindowCliffTestDialog" InitialBehaviors="None" 
            NavigateUrl="~/Dialogs/CliffTestDialog.aspx" ReloadOnShow="true" Animation="FlyIn"
            Height="325px" Modal="true" Title="Create Venue" Width="500px" AnimationDuration="500" 
            Behaviors="Close, Move" Enabled="True" VisibleStatusbar="False" IconUrl="~/favicon.ico" 
            ShowContentDuringLoad="False">
        </telerik:RadWindow>
              
              
    </Windows>
</telerik:RadWindowManager>



Rad Window in ~/Dialogs:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CliffTestDialog.aspx.cs" Inherits="Dialogs_CliffTestDialog" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        dialog
    </div>
    </form>
</body>
</html>




Georgi Tunev
Telerik team
 answered on 19 Oct 2010
4 answers
317 views
Hi, I followed an example online of a multi-select combo box with a series of checkboxes in it. I am able to generate it and select multiple checkboxes but there is no mechanism for the user to close the combo box (unless perhaps clicking away from it.

Is there a way to do this that is obvious to the user, such as having a little link at the bottom of the combo window that says "close" or something similar?
Kalina
Telerik team
 answered on 19 Oct 2010
2 answers
183 views
I am currently using ASP.NET AJAX v.2010.1.519.35.

I have a parent page using a RadWindowManager which has an onbeforeunload handler to help prevent users from closing windows while there is unsaved data. The parent page dynamically opens any number of pages in a RadWindow. When I minimize then restore the RadWindow, the onbeforeunload handler on the parent is called. Subsequent minimize/restore/maximize also trigger the handler. Note, this only seems to happen in Internet Explorer (I tested in IE 8).

Here's the parent:

<telerik:RadWindowManager ID="WindowManager" runat="server">
    </telerik:RadWindowManager>
    <div>
        <a href="#" class="test-dynamic">Test Dynamic</a>
    </div>
        <script type="text/javascript">
            window.onbeforeunload = function() { return 'Test'; }
            $('a.test-dynamic').click(function(e) {
                var mgr = GetRadWindowManager();
                var win = mgr.open(null, null);
                win.setSize(700,700);
                win.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Resize +  Telerik.Web.UI.WindowBehaviors.Maximize +  Telerik.Web.UI.WindowBehaviors.Minimize);
                win.setUrl('Window.aspx');
                win.setActive(true);
                return false;
            });
             
        </script>

The content of the window is irrelevant. In my test project, i just have a simple ASPX that just says "Window". You can create a new Telerik Web project and paste that into Default.aspx, then add a Window.aspx

So, obviously I want to avoid the parent's onbeforeclose handler from being called. I can send a test project, if necessary.
Mike
Top achievements
Rank 1
 answered on 18 Oct 2010
2 answers
255 views
Morning,

I have a problem with the delete command on my radgrid. I was getting the error that there was null values and i needed to change "ConflictDetection" to OverwriteChanges". However this problem seems to been fixed by changing many of the Eval() bindings to Bind().

I have some binding in the grid that happens programmatically also.

Now when i hit delete, it attempts to process the command and refreshes the grid and the items remains. No error, it just does not delete the row from the SQLDataSource.

Any help would be greatly appreciated.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Globalization;
using Telerik.Web.UI;
using System.Data;
 
public partial class Admin_WriteUps : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            GridSortExpression expression = new GridSortExpression();
            expression.FieldName = "DateAdded";
            expression.SetSortOrder("Descending");
            RadGrid1.MasterTableView.SortExpressions.AddSortExpression(expression);
        }
    }
 
    #region Validator Methods
 
    protected void CustomValidator1_ServerValidate(object source, ServerValidateEventArgs args)
    {
        DateTime inputdate = new DateTime();
 
        if (args.Value.Length > 0)
        {
            if (DateTime.TryParseExact(args.Value, "M/d/yyyy", DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None, out inputdate))
            {
                args.IsValid = true;
            }
            else
            {
                args.IsValid = false;
            }
        }
        else
        {
            args.IsValid = false;
        }
    }
 
    #endregion
    protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
            GridDataItem item = (GridDataItem)e.Item;
            Label InsLabel = item.FindControl("InsLabel") as Label;
 
            if (InsLabel != null)
            {
                DataView Insurance_DataView = (DataView)Insurance_DataSource.Select(DataSourceSelectArguments.Empty);
 
                int indx = 0;
                if (Int32.TryParse(((System.Data.DataRowView)(item.DataItem)).Row["Ins"].ToString(), out indx))
                {
                    Insurance_DataView.Sort = "ID";
                    InsLabel.Text = Insurance_DataView[Insurance_DataView.Find(indx)]["Name"].ToString();
                }
                else
                {
                    InsLabel.Text = "";
                }
            }
 
            Label CampaignLabel = item.FindControl("CampaignLabel") as Label;
 
            if (CampaignLabel != null)
            {
                DataView Campaigns_DataView = (DataView)Campaigns_DataSource.Select(DataSourceSelectArguments.Empty);
 
                int indx = 0;
                if (Int32.TryParse(((System.Data.DataRowView)(item.DataItem)).Row["Campaign"].ToString(), out indx))
                {
                    Campaigns_DataView.Sort = "ID";
                    CampaignLabel.Text = Campaigns_DataView[Campaigns_DataView.Find(indx)]["Campaign"].ToString();
                }
                else
                {
                    CampaignLabel.Text = "";
                }
            }
 
            Label CCRepLabel = item.FindControl("CCRepLabel") as Label;
 
            if (CCRepLabel != null)
            {
                DataView CCReps_DataView = (DataView)CCReps_DataSource.Select(DataSourceSelectArguments.Empty);
 
                int indx = 0;
                if (Int32.TryParse(((System.Data.DataRowView)(item.DataItem)).Row["CCRep"].ToString(), out indx))
                {
                    CCReps_DataView.Sort = "ID";
                    CCRepLabel.Text = CCReps_DataView[CCReps_DataView.Find(indx)]["Name"].ToString();
                }
                else
                {
                    CCRepLabel.Text = "";
                }
            }
 
            Label StateLabel = item.FindControl("StateLabel") as Label;
 
            if (StateLabel != null)
            {
                DataView States_DataView = (DataView)States_DataSource.Select(DataSourceSelectArguments.Empty);
 
                int indx = 0;
                if (Int32.TryParse(((System.Data.DataRowView)(item.DataItem)).Row["State"].ToString(), out indx))
                {
                    States_DataView.Sort = "ID";
                    StateLabel.Text = States_DataView[States_DataView.Find(indx)]["StateName"].ToString();
                }
                else
                {
                    StateLabel.Text = "";
                }
            }
        }
    }
 
    protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
    {
        if (e.CommandName == "Delete")
        {
 
        }
    }
}

<%@ Page Title="" Language="C#" MasterPageFile="~/App_Master/Admin.master" AutoEventWireup="true"
    CodeFile="Leads.aspx.cs" Inherits="Admin_WriteUps" Theme="Reports" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container_label">
        Add/Update/Delete Lead Records:</div>
    <div>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"
            Skin="Office2007">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"
            HorizontalAlign="NotSet" LoadingPanelID="RadAjaxLoadingPanel1">
            <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
                AllowSorting="True" DataSourceID="WriteUps_DataSource" GridLines="None" ShowGroupPanel="True"
                Skin="Office2007" AllowAutomaticDeletes="True"
                AllowAutomaticInserts="True" AllowAutomaticUpdates="True"
                AllowCustomPaging="True" AllowMultiRowSelection="True" AutoGenerateColumns="False"
                AutoGenerateDeleteColumn="True" OnItemDataBound="RadGrid1_ItemDataBound"
                ShowFooter="True" PageSize="25" Width="1200px"
                onitemcommand="RadGrid1_ItemCommand">
                <ExportSettings ExportOnlyData="True" HideStructureColumns="True">
                    <Excel Format="ExcelML" />
                </ExportSettings>
                <PagerStyle AlwaysVisible="True" />
                <MasterTableView CommandItemDisplay="Top" DataKeyNames="ID"
                    DataSourceID="WriteUps_DataSource" EditMode="PopUp" GroupLoadMode="Client"
                    InsertItemPageIndexAction="ShowItemOnCurrentPage">
                    <CommandItemSettings ExportToPdfText="Export to Pdf"
                        ShowExportToExcelButton="True" ShowExportToPdfButton="True" />
                    <Columns>
                        <telerik:GridEditCommandColumn ButtonType="ImageButton">
                        </telerik:GridEditCommandColumn>
                        <telerik:GridTemplateColumn AllowFiltering="False" DataField="DateAdded"
                            DataType="System.DateTime" GroupByExpression="Group By DateAdded desc"
                            HeaderText="Date " SortExpression="DateAdded" UniqueName="DateAdded">
                            <EditItemTemplate>
                                <telerik:RadDatePicker ID="RadDatePicker2" runat="server"
                                    Culture="English (United States)" DbSelectedDate='<%# Bind("DateAdded") %>'
                                    SelectedDate="2010-10-15" Skin="Office2007">
                                    <Calendar Skin="Office2007" UseColumnHeadersAsSelectors="False"
                                        UseRowHeadersAsSelectors="False" ViewSelectorText="x">
                                    </Calendar>
                                    <DatePopupButton HoverImageUrl="" ImageUrl="" />
                                    <DateInput DateFormat="M/d/yyyy" DisplayDateFormat="M/d/yyyy"
                                        SelectedDate="2010-10-15">
                                    </DateInput>
                                </telerik:RadDatePicker>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                                    ControlToValidate="RadDatePicker2" ErrorMessage="Date Required"
                                    SetFocusOnError="True"></asp:RequiredFieldValidator>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="DateAddedLabel" runat="server"
                                    Text='<%# Bind("DateAdded", "{0:MM/dd/yyyy}") %>'></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="PtName"
                            GroupByExpression="PtName Group By PtName desc" HeaderText="Name"
                            SortExpression="PtName" UniqueName="PtName">
                            <EditItemTemplate>
                                <telerik:RadTextBox ID="RadTextBox1" runat="server" EmptyMessage="Lead Name"
                                    Skin="Office2007" Text='<%# Bind("PtName") %>' Width="125px">
                                </telerik:RadTextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                                    ControlToValidate="RadTextBox1" ErrorMessage="Name Required"
                                    SetFocusOnError="True"></asp:RequiredFieldValidator>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="PtNameLabel" runat="server" Text='<%# Bind("PtName") %>'></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="Ins" DataType="System.Int32"
                            HeaderText="Insurance" SortExpression="Ins" UniqueName="Ins">
                            <EditItemTemplate>
                                <telerik:RadComboBox ID="RadComboBox1" runat="server"
                                    DataSourceID="Insurance_DataSource" DataTextField="Name" DataValueField="ID"
                                    EmptyMessage="Search for Insurance" MarkFirstMatch="True" NoWrap="True"
                                    SelectedValue='<%# Bind("Ins") %>' Skin="Office2007">
                                </telerik:RadComboBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="InsLabel" runat="server"></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="State" DataType="System.Int32"
                            HeaderText="State" SortExpression="State" UniqueName="State">
                            <EditItemTemplate>
                                <telerik:RadComboBox ID="RadComboBox5" runat="server"
                                    DataSourceID="States_DataSource" DataTextField="StateName" DataValueField="ID"
                                    EmptyMessage="Search for State" MarkFirstMatch="True"
                                    SelectedValue='<%# Bind("State") %>' Skin="Office2007">
                                </telerik:RadComboBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="StateLabel" runat="server"></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn AllowFiltering="False" DataField="CCRep"
                            DataType="System.Int32" HeaderText="Call Center Rep" SortExpression="CCRep"
                            UniqueName="CCRep">
                            <EditItemTemplate>
                                <telerik:RadComboBox ID="RadComboBox3" runat="server"
                                    DataSourceID="CCReps_DataSource" DataTextField="Name" DataValueField="ID"
                                    EmptyMessage="Search for CC Rep" MarkFirstMatch="True" NoWrap="True"
                                    SelectedValue='<%# Bind("CCRep") %>' Skin="Office2007">
                                </telerik:RadComboBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="CCRepLabel" runat="server"></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="Campaign" DataType="System.Int32"
                            HeaderText="Campaign" SortExpression="Campaign" UniqueName="Campaign">
                            <EditItemTemplate>
                                <telerik:RadComboBox ID="RadComboBox2" runat="server"
                                    DataSourceID="Campaigns_DataSource" DataTextField="Campaign"
                                    DataValueField="ID" EmptyMessage="Search for Campaign" MarkFirstMatch="True"
                                    NoWrap="True" SelectedValue='<%# Bind("Campaign") %>' Skin="Office2007">
                                </telerik:RadComboBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="CampaignLabel" runat="server"></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn AllowFiltering="False" DataField="Source"
                            HeaderText="Source" SortExpression="Source" UniqueName="Source">
                            <EditItemTemplate>
                                <telerik:RadComboBox ID="RadComboBox4" runat="server"
                                    SelectedValue='<%# Bind("Source") %>' Skin="Office2007">
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Selected="true" Text="Call"
                                            Value="CALL" />
                                        <telerik:RadComboBoxItem runat="server" Text="Chat" Value="CHAT" />
                                        <telerik:RadComboBoxItem runat="server" Text="E-mail" Value="E-MAIL" />
                                        <telerik:RadComboBoxItem runat="server" Text="Walk-In" Value="WALK-IN" />
                                        <telerik:RadComboBoxItem runat="server" Text="Unknown" Value="UNKNOWN" />
                                    </Items>
                                </telerik:RadComboBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="SourceLabel" runat="server" Text='<%# Bind("Source") %>'></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="Outcome" Groupable="False"
                            HeaderText="Outcome" SortExpression="Outcome" UniqueName="Outcome">
                            <EditItemTemplate>
                                <telerik:RadTextBox ID="RadTextBox2" runat="server" EmptyMessage="Lead Outcome"
                                    Height="75px" Skin="Office2007" Text='<%# Bind("Outcome") %>' Width="125px">
                                </telerik:RadTextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
                                    ControlToValidate="RadTextBox2" ErrorMessage="Note Required"
                                    SetFocusOnError="True"></asp:RequiredFieldValidator>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="OutcomeLabel" runat="server" Text='<%# Bind("Outcome") %>'></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                    <EditFormSettings>
                        <EditColumn UniqueName="EditCommandColumn1">
                        </EditColumn>
                    </EditFormSettings>
                    <PagerStyle AlwaysVisible="True" />
                </MasterTableView>
                <GroupingSettings ShowUnGroupButton="True" />
                <ClientSettings AllowDragToGroup="True">
                </ClientSettings>
            </telerik:RadGrid>
        </telerik:RadAjaxPanel>
        <br />
    </div>
    <asp:SqlDataSource ID="WriteUps_DataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        InsertCommand="INSERT INTO [WriteUps] ([DateAdded], [PtName], [Ins], [Campaign], [Outcome], [CCRep], [Source], [NumberCalled], [State]) VALUES (@DateAdded, @PtName, @Ins, @Campaign, @Outcome, @CCRep, @Source, @NumberCalled, @State)"
        SelectCommand="SELECT [ID], [DateAdded], [PtName], [Ins], [Campaign], [Outcome], [CCRep], [Source], [NumberCalled], [State] FROM [WriteUps]"
        DeleteCommand="DELETE FROM [WriteUps] WHERE [ID] = @original_ID AND (([DateAdded] = @original_DateAdded) OR ([DateAdded] IS NULL AND @original_DateAdded IS NULL)) AND (([PtName] = @original_PtName) OR ([PtName] IS NULL AND @original_PtName IS NULL)) AND (([Ins] = @original_Ins) OR ([Ins] IS NULL AND @original_Ins IS NULL)) AND (([Campaign] = @original_Campaign) OR ([Campaign] IS NULL AND @original_Campaign IS NULL)) AND (([Outcome] = @original_Outcome) OR ([Outcome] IS NULL AND @original_Outcome IS NULL)) AND (([CCRep] = @original_CCRep) OR ([CCRep] IS NULL AND @original_CCRep IS NULL)) AND (([Source] = @original_Source) OR ([Source] IS NULL AND @original_Source IS NULL)) AND (([NumberCalled] = @original_NumberCalled) OR ([NumberCalled] IS NULL AND @original_NumberCalled IS NULL)) AND (([State] = @original_State) OR ([State] IS NULL AND @original_State IS NULL))"
        UpdateCommand="UPDATE [WriteUps] SET [DateAdded] = @DateAdded, [PtName] = @PtName, [Ins] = @Ins, [Campaign] = @Campaign, [Outcome] = @Outcome, [CCRep] = @CCRep, [Source] = @Source, [NumberCalled] = @NumberCalled, [State] = @State WHERE [ID] = @original_ID AND (([DateAdded] = @original_DateAdded) OR ([DateAdded] IS NULL AND @original_DateAdded IS NULL)) AND (([PtName] = @original_PtName) OR ([PtName] IS NULL AND @original_PtName IS NULL)) AND (([Ins] = @original_Ins) OR ([Ins] IS NULL AND @original_Ins IS NULL)) AND (([Campaign] = @original_Campaign) OR ([Campaign] IS NULL AND @original_Campaign IS NULL)) AND (([Outcome] = @original_Outcome) OR ([Outcome] IS NULL AND @original_Outcome IS NULL)) AND (([CCRep] = @original_CCRep) OR ([CCRep] IS NULL AND @original_CCRep IS NULL)) AND (([Source] = @original_Source) OR ([Source] IS NULL AND @original_Source IS NULL)) AND (([NumberCalled] = @original_NumberCalled) OR ([NumberCalled] IS NULL AND @original_NumberCalled IS NULL)) AND (([State] = @original_State) OR ([State] IS NULL AND @original_State IS NULL))"
        OldValuesParameterFormatString="original_{0}"
        ConflictDetection="CompareAllValues">
        <DeleteParameters>
            <asp:Parameter Name="original_ID" Type="Int32" />
            <asp:Parameter DbType="Date" Name="original_DateAdded" />
            <asp:Parameter Name="original_PtName" Type="String" />
            <asp:Parameter Name="original_Ins" Type="Int32" />
            <asp:Parameter Name="original_Campaign" Type="Int32" />
            <asp:Parameter Name="original_Outcome" Type="String" />
            <asp:Parameter Name="original_CCRep" Type="Int32" />
            <asp:Parameter Name="original_Source" Type="String" />
            <asp:Parameter Name="original_NumberCalled" Type="String" />
            <asp:Parameter Name="original_State" Type="Int32" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="DateAdded" DbType="Date" />
            <asp:Parameter Name="PtName" Type="String" />
            <asp:Parameter Name="Ins" Type="Int32" />
            <asp:Parameter Name="Campaign" Type="Int32" />
            <asp:Parameter Name="Outcome" Type="String" />
            <asp:Parameter Name="CCRep" Type="Int32" />
            <asp:Parameter Name="Source" Type="String" />
            <asp:Parameter Name="NumberCalled" Type="String" />
            <asp:Parameter Name="State" Type="Int32" />
            <asp:Parameter Name="original_ID" Type="Int32" />
            <asp:Parameter Name="original_DateAdded" DbType="Date" />
            <asp:Parameter Name="original_PtName" Type="String" />
            <asp:Parameter Name="original_Ins" Type="Int32" />
            <asp:Parameter Name="original_Campaign" Type="Int32" />
            <asp:Parameter Name="original_Outcome" Type="String" />
            <asp:Parameter Name="original_CCRep" Type="Int32" />
            <asp:Parameter Name="original_Source" Type="String" />
            <asp:Parameter Name="original_NumberCalled" Type="String" />
            <asp:Parameter Name="original_State" Type="Int32" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="DateAdded" DbType="Date" />
            <asp:Parameter Name="PtName" Type="String" />
            <asp:Parameter Name="Ins" Type="Int32" />
            <asp:Parameter Name="Campaign" Type="Int32" />
            <asp:Parameter Name="Outcome" Type="String" />
            <asp:Parameter Name="CCRep" Type="Int32" />
            <asp:Parameter Name="Source" Type="String" />
            <asp:Parameter Name="NumberCalled" Type="String" />
            <asp:Parameter Name="State" Type="Int32" />
        </InsertParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="CCReps_DataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="SELECT [ID], [Name] FROM [CCReps]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="Insurance_DataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="SELECT [ID], [Name] FROM [Insurance]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="Referral_DataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="SELECT [ID], [Name] FROM [Referral]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="CareLevel_DataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="SELECT [ID], [CareLevel] FROM [CareLevels]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="Campaigns_DataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="SELECT [ID], [Campaign] FROM [Campaigns]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="States_DataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="SELECT [ID], [StateCode], [StateName] FROM [States]"></asp:SqlDataSource>
</asp:Content>
Duncan Evans
Top achievements
Rank 1
 answered on 18 Oct 2010
4 answers
153 views
I have a RadTabStrip linked in with a RadMultipage and for some reason when I bring up the page, all of the pages defined in the RadMultiPage are displayed vertically.

Anyone have any ideas as to what causes this behavior?

Thanks,
Aaron
abonfig
Top achievements
Rank 1
 answered on 18 Oct 2010
0 answers
99 views
I am populating a telerik combo thru ajax JSON....The combobox data is coming back correctly.
However when the page shows up I want
1) The combobox to be populated(which is accomplished by firing ajax call during document ready
2) The Correct element in the combobox to be selected based on the song that is selected.

How do I accomplish #2?
Sunitha
Top achievements
Rank 1
 asked on 18 Oct 2010
2 answers
494 views
Hi people.

Question - so I have a button inside a formtemplate in a radGrid. Based on selections in the formtemplate, hitting this button issues a "Generate" command which then the form posts back and goes to the database to retrieve the data for the specified selections.

It works when you are in "insert" mode but the same FindControl method is not working when the row is an existing row and you are trying to update.

Basically, the Insert/Update as well as this Generate command go off the ItemCommand event so u start off with

GridEditableItem gei = e.Item as GridEditableItem;

The FindControl method is then used for the various controls present in the FormTemplate afterwards.

Am I missing something?

Thanks.

Roland

Roland
Top achievements
Rank 1
 answered on 18 Oct 2010
1 answer
130 views
Hi,
I have a splitter containing  one  radpane (radPaneMain) with the content and another one with an sliding pan (radPanEvent)(radPanEventContro).  When the user resize the radPanEvent , an extra space is add to the Height of the panel, which cause the panel to be over the panel's button.

Here's my code:

 

 

<telerik:RadSplitter ID="radSplitter" runat="server" Skin="Sitefinity" EnableEmbeddedBaseStylesheet="false"

 

 

 

Width="985px" EnableEmbeddedSkins="false" PanesBorderSize="1" BorderSize="1" Height="600px"

 

 

 

BorderColor="#F4F4F4" Orientation="Horizontal"

 

 

 

>

 

 

 

<telerik:RadPane ID="radPaneMain" runat="server" Scrolling="Y" CssClass="ApplyPosition" >

 

 

 

<asp:ContentPlaceHolder ID="Main" runat="server" />

 

 

 


</
telerik:RadPane>

 

 

 

<telerik:RadSplitBar runat="server" />

 

 

 

<telerik:RadPane ID="radPanEvent" runat="server" Height="22" Scrolling="None" >

 

 

 

<telerik:RadSlidingZone ID="radSlidingZone" runat="server" SlideDirection="Top" ClickToOpen="true">

 

 

 

<telerik:RadSlidingPane ID="radPanEventSliding" OnClientResized="afterResize" runat="server"

 

 

 

EnableDock="false" Scrolling="None" >

 

 

 

<div id="divEventViewer">

 

 

 

<div id="silverlightEventViewerHost">

 

 

 

<object id="silverlightEventControl" width="100%" height="100%" data="data:application/x-silverlight-2,"

 

 

 

type="application/x-silverlight-2">

 

 

 

 

 

 

<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50524.0" style="text-decoration: none">

 

 

 

<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight"

 

 

 

style="border-style: none" />

 

 

 

</a>

 

 

 

</object>

 

 

 

</div>

 

 

 

</div>

 

 

 

</telerik:RadSlidingPane>

 

 

 

</telerik:RadSlidingZone>

 

 

 

</telerik:RadPane>

 

 

 

</telerik:RadSplitter>

 

Dobromir
Telerik team
 answered on 18 Oct 2010
3 answers
735 views
Dear All,

          Am using radgrid, using dataset fill the grid. i need more than 1 lakhs records to display. My pagesize of rad grid is 5. It is very slow when loading grid then after change the 2nd page then its take too time. every action in grid its take time.

So i want to take first  10 records on load grid and then second page  then load another 10 records from database. how to customize in the radgrid. I think rad grid load 1 lakhs record every time from database but user only need 10 or 20 records or some other thing.

If i set pagesize is 10 then radgrid load only 10 records from database, if i change 50 records then grid load 50 rows only load from DB.
please provide with right example. thanks.
Pavlina
Telerik team
 answered on 18 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?