Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
166 views

For my company, the rad editor is currently used and the users are required to enter all the data in one session. Now the users would like to be able to save their changes in several sessions and not generate the document until all the data has been entered.

I see that the rad editor has 'track changes'. However I am not certain this is exactly what they want to see.

Is there a way for a user to 'save' changes and another way for the user to actually submit their changes so that a document can be generated when needed using the radeditor and/or some other Telerik tool? If so, would you tell me what you recommend and how would I accomplish that goal?

If not, would the 'track changes' or some other feature accomplish my goal?

Thanks for letting me know what you recommend?

 

Rumen
Telerik team
 answered on 30 Oct 2019
0 answers
147 views

Currently I am trying to use teleriks automatic CRUD on the front-end. I am currently using batch edit mode, and the editing/updating works great. However, whenever I try to insert a record it does not work. I get an error of to many arguments specified, which is not true. When I look at the values, it seems like it is trying to insert data from the previous row and not the new. 

 

<%@ Page Title="" Language="C#" MasterPageFile="~/BPO.Master" AutoEventWireup="true" CodeBehind="frmCCP.aspx.cs" Inherits="BPO.frmCCP" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" PostBackControls="btnExport, AddNewRecordButton, SaveChangesIcon">
    </telerik:RadAjaxManager>
    <h1 class="text-Center" style="text-align:center; color:red;">CCP Information</h1>
    <br />
    <br />
    <div class="myGridClass">
        <telerik:RadGrid RenderMode="Lightweight" runat="server" ID="grdCCP" AllowPaging="True" PageSize="10" FilterType="HeaderContext" AllowFilteringByColumn="true"
            AllowAutomaticInserts="true" DataSourceID="grdCCPSource" AllowAutomaticUpdates="true" EnableHeaderContextFilterMenu="true" EnableHeaderContextMenu="true" OnItemInserted="grdCCP_ItemInserted" OnItemUpdated="grdCCP_ItemUpdated">
            <ExportSettings Excel-Format="ExcelML" OpenInNewWindow="true" ExportOnlyData="true" FileName="CCPReport" IgnorePaging="true"></ExportSettings>
            <ClientSettings>
                <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" />
            </ClientSettings>
            <MasterTableView DataKeyNames="CPP_ID" Width="100%" Height="100%" CssClass="myGridClass" AutoGenerateColumns="false" AllowFilteringByColumn="True" CommandItemDisplay="Top" AllowAutomaticUpdates="true" EditMode="Batch" BatchEditingSettings-EditType="Cell">
                <CommandItemSettings ShowExportToExcelButton="true" ShowAddNewRecordButton="true" ShowRefreshButton="false" />
                <SortExpressions>
                    <telerik:GridSortExpression FieldName="Created_Date" SortOrder="Descending" />
                </SortExpressions>
                <Columns>
                    <telerik:GridBoundColumn DataField="CPP_ID" HeaderText="CCP ID" InsertVisiblityMode="AlwaysHidden">
                        <HeaderStyle Width="100px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn HeaderText="Customer" ItemStyle-CssClass="customerddl" DataField="Customer"
                        FilterControlAltText="Filter Customer" SortExpression="Customer" FilterCheckListEnableLoadOnDemand="true" AutoPostBackOnFilter="true" GroupByExpression="Customer Group By Customer" CurrentFilterFunction="Contains">
                        <HeaderStyle Width="125px" />
                        <ItemTemplate>
                            <telerik:RadLabel runat="server" ID="lblCustomer" Text='<%# DataBinder.Eval(Container.DataItem, "Customer") %>' DefaultInsertValue="NULL"></telerik:RadLabel>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadDropDownList RenderMode="Lightweight" runat="server" ID="Update_Customer" DataSourceID="CustomerDataSource" DataTextField="Name" DataValueField="Name" DefaultMessage="-Select-" CssClass="req-field"></telerik:RadDropDownList>
                        </EditItemTemplate>
                        <InsertItemTemplate>
                            <telerik:RadDropDownList RenderMode="Lightweight" runat="server" ID="Insert_Customer" DataSourceID="CustomerDataSource" DataTextField="Name" DataValueField="Name" DefaultMessage="-Select-" CssClass="req-field"></telerik:RadDropDownList>
                        </InsertItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="Cust_NAMC_ID" CurrentFilterFunction="Contains" HeaderText="Customer NAMC" DefaultInsertValue="NULL">
                        <HeaderStyle Width="115px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Program" CurrentFilterFunction="Contains" HeaderText="Program" DefaultInsertValue="NULL">
                        <HeaderStyle Width="100px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn HeaderText="CCP" ItemStyle-CssClass="customerddl" DataField="Po_Type_ID"
                        FilterControlAltText="Filter CCP"  FilterCheckListEnableLoadOnDemand="true" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">
                        <HeaderStyle Width="125px" />
                        <ItemTemplate>
                           <telerik:RadLabel runat="server" ID="lblCCP" Text='<%# DataBinder.Eval(Container.DataItem, "Po_Type_ID") %>'></telerik:RadLabel>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadDropDownList RenderMode="Lightweight" runat="server" ID="Update_CCP" DataSourceID="CCPDataSource" DataTextField="Name" DataValueField="Name" DefaultMessage="-Select-" CssClass="req-field"></telerik:RadDropDownList>
                        </EditItemTemplate>
                        <InsertItemTemplate>
                            <telerik:RadDropDownList RenderMode="Lightweight" runat="server" ID="Insert_CCP" DataSourceID="CCPDataSource" DataTextField="Name" DataValueField="Name" DefaultMessage="-Select-" CssClass="req-field"></telerik:RadDropDownList>
                        </InsertItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="Part_No" HeaderText="Component PN" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="110px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Part_Name" HeaderText="Component Name" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="175px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Date_Rcvd" HeaderText="Date Rec'd" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="100px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="New_Price" HeaderText="New Price" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="100px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Tooling_Price" HeaderText="Tooling" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="100px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="RFQ_Num" HeaderText="Toyota Letter Reference RFQ #" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="150px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Eff_From" HeaderText="Effective From" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="100px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Eff_To" HeaderText="Effective To" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="100px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="FG_Part_No" HeaderText="Finished Good PN" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="150px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="FG_Part_Name" HeaderText="Finished Good Name" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="200px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Ship_From" HeaderText="Ship From" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="175px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Ship_To" HeaderText="Ship To" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="175px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="TG_NAMC" HeaderText="TG NAMC" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="100px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Vendor_CD" HeaderText="TG Vendor Code" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="100px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="PO_NUM" HeaderText="PO NO" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="100px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="REV_NO" HeaderText="Rev" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="100px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Buyer_Name" HeaderText="Buyer" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="135px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Manager_Name" HeaderText="Manager" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="125px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="BU" HeaderText="Business Unit" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="100px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="SAM" HeaderText="SAM" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="125px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="RFQ_To_CUST" HeaderText="RFQ to Customer" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="100px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Quoted_Date" HeaderText="Quoted Date" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="100px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="PO_From_FG" HeaderText="PO from FG" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="100px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="PO_RCVD_Date" HeaderText="PO Received Date" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="100px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="PO_Eff_Date" HeaderText="Effective Date" CurrentFilterFunction="Contains" DefaultInsertValue="NULL">
                        <HeaderStyle Width="100px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Created_Date" HeaderText="Created Date" CurrentFilterFunction="Contains">
                        <HeaderStyle Width="100px" />
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </div>
    <asp:SqlDataSource ID="grdCCPSource" runat="server" ConnectionString="<%$ ConnectionStrings:SalesTest %>"
        SelectCommand="BPO.Get_CPP_Data" SelectCommandType="StoredProcedure" UpdateCommand="BPO.Update_CPP_Data" UpdateCommandType="StoredProcedure" InsertCommand="BPO.Inserts_CPP_Data" OnInserting="grdCCPSource_Inserting" InsertCommandType="StoredProcedure">
        <UpdateParameters>
            <asp:Parameter Name="CPP_ID" DbType="Int32" Direction="Input" />
            <asp:Parameter Name="Customer" DbType="String" Direction="Input" />
            <asp:Parameter Name="Cust_NAMC_ID" DbType="String" Direction="Input" />
            <asp:Parameter Name="Program" DbType="String" Direction="Input" />
            <asp:Parameter Name="PO_Type_ID" DbType="String" Direction="Input" />
            <asp:Parameter Name="Part_No" DbType="String" Direction="Input" />
            <asp:Parameter Name="Part_Name" DbType="String" Direction="Input" />
            <asp:Parameter Name="Date_Rcvd" DbType="String" Direction="Input" />
            <asp:Parameter Name="New_Price" DbType="Decimal" Direction="Input" />
            <asp:Parameter Name="Tooling_Price" DbType="Decimal" Direction="Input" />
            <asp:Parameter Name="RFQ_Num" DbType="String" Direction="Input" />
            <asp:Parameter Name="Eff_From" DbType="String" Direction="Input" />
            <asp:Parameter Name="Eff_To" DbType="String" Direction="Input" />
            <asp:Parameter Name="FG_Part_No" DbType="String" Direction="Input" />
            <asp:Parameter Name="FG_Part_Name" DbType="String" Direction="Input" />
            <asp:Parameter Name="Ship_From" DbType="String" Direction="Input" />
            <asp:Parameter Name="Ship_To" DbType="String" Direction="Input" />
            <asp:Parameter Name="TG_NAMC" DbType="String" Direction="Input" />
            <asp:Parameter Name="Vendor_CD" DbType="Int32" Direction="Input" />
            <asp:Parameter Name="PO_NUM" DbType="String" Direction="Input" />
            <asp:Parameter Name="REV_NO" DbType="String" Direction="Input" />
            <asp:Parameter Name="Buyer_Name" DbType="String" Direction="Input" />
            <asp:Parameter Name="Manager_Name" DbType="String" Direction="Input" />
            <asp:Parameter Name="BU" DbType="String" Direction="Input" />
            <asp:Parameter Name="SAM" DbType="String" Direction="Input" />
            <asp:Parameter Name="RFQ_To_CUST" DbType="String" Direction="Input" />
            <asp:Parameter Name="Quoted_Date" DbType="String" Direction="Input" />
            <asp:Parameter Name="PO_From_FG" DbType="String" Direction="Input" />
            <asp:Parameter Name="PO_RCVD_Date" DbType="String" Direction="Input" />
            <asp:Parameter Name="PO_Eff_Date" DbType="String" Direction="Input" />
            <asp:Parameter Name="Created_Date" Type="DateTime" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="Customer" DbType="String" Direction="Input" />
            <asp:Parameter Name="Cust_NAMC_ID" DbType="String" Direction="Input" />
            <asp:Parameter Name="Program" DbType="String" Direction="Input" />
            <asp:Parameter Name="PO_Type_ID" DbType="String" Direction="Input" />
            <asp:Parameter Name="Part_No" DbType="String" Direction="Input" />
            <asp:Parameter Name="Part_Name" DbType="String" Direction="Input" />
            <asp:Parameter Name="Date_Rcvd" DbType="String" Direction="Input" />
            <asp:Parameter Name="New_Price" DbType="Decimal" Direction="Input" />
            <asp:Parameter Name="Tooling_Price" DbType="Decimal" Direction="Input" />
            <asp:Parameter Name="RFQ_Num" DbType="String" Direction="Input" />
            <asp:Parameter Name="Eff_From" DbType="String" Direction="Input" />
            <asp:Parameter Name="Eff_To" DbType="String" Direction="Input" />
            <asp:Parameter Name="FG_Part_No" DbType="String" Direction="Input" />
            <asp:Parameter Name="FG_Part_Name" DbType="String" Direction="Input" />
            <asp:Parameter Name="Ship_From" DbType="String" Direction="Input" />
            <asp:Parameter Name="Ship_To" DbType="String" Direction="Input" />
            <asp:Parameter Name="TG_NAMC" DbType="String" Direction="Input" />
            <asp:Parameter Name="Vendor_CD" DbType="Int32" Direction="Input" />
            <asp:Parameter Name="PO_NUM" DbType="String" Direction="Input" />
            <asp:Parameter Name="REV_NO" DbType="String" Direction="Input" />
            <asp:Parameter Name="Buyer_Name" DbType="String" Direction="Input" />
            <asp:Parameter Name="Manager_Name" DbType="String" Direction="Input" />
            <asp:Parameter Name="BU" DbType="AnsiStringFixedLength" Direction="Input" />
            <asp:Parameter Name="SAM" DbType="String" Direction="Input" />
            <asp:Parameter Name="RFQ_To_CUST" DbType="String" Direction="Input" />
            <asp:Parameter Name="Quoted_Date" DbType="String" Direction="Input" />
            <asp:Parameter Name="PO_From_FG" DbType="String" Direction="Input" />
            <asp:Parameter Name="PO_RCVD_Date" DbType="String" Direction="Input" />
            <asp:Parameter Name="PO_Eff_Date" DbType="String" Direction="Input" />
        </InsertParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="CustomerDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:SalesTest %>"
        SelectCommand="SELECT DISTINCT [Name] FROM [BPO].[M_Code] WHERE Type_ID = '1' ORDER BY [Name] ASC"></asp:SqlDataSource>
        <asp:SqlDataSource ID="CCPDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:SalesTest %>"
        SelectCommand="SELECT DISTINCT [Name], [PO_Type_ID] FROM [SPIRE].[M_PO_TYPE] WHERE Po_Type_ID in (4,5,6,7,8) ORDER BY [Name] ASC"></asp:SqlDataSource>
</asp:Content>

 

My stored Proc is as follows: 

USE [Sales]
GO
/****** Object:  StoredProcedure [BPO].[Inserts_CPP_Data]    Script Date: 10/29/2019 11:44:10 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
 
-- =============================================
-- Author:      <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
ALTER PROCEDURE [BPO].[Inserts_CPP_Data]
    -- Add the parameters for the stored procedure here
    @Customer varchar(20),
    @Cust_NAMC_ID varchar(10),
    @Program varchar(10),
    @PO_Type_ID varchar(10),
    @Part_No varchar(20),
    @Part_Name varchar(50),
    @Date_Rcvd varchar(50),
    @New_Price decimal(18,4),
    @Tooling_Price decimal(18,4),
    @RFQ_Num varchar(20),
    @Eff_From varchar(50),
    @Eff_To varchar(50),
    @FG_Part_No varchar(20),
    @FG_Part_Name varchar(50),
    @Ship_From varchar(50),
    @Ship_To varchar(50),
    @TG_NAMC varchar(50),
    @Vendor_CD int,
    @PO_NUM varchar(50),
    @REV_NO varchar(20),
    @Buyer_Name varchar(200),
    @Manager_Name varchar(200),
    @BU char(2),
    @SAM varchar(50),
    @RFQ_To_CUST varchar(50),
    @Quoted_Date varchar(50),
    @PO_From_FG varchar(50),
    @PO_RCVD_Date varchar(50),
    @PO_Eff_Date varchar(50)
 
AS
BEGIN
 
SET @PO_Type_ID = (Select [PO_Type_ID] from [SPIRE].M_PO_TYPE where [Name] = @PO_Type_ID)
 
Insert Into [SPIRE].T_CPP
(
    [Cust_NAMC_ID],
    [Customer],
    [Program],
    [PO_Type_ID],
    [Part_No],
    [Part_Name],
    [Date_Rcvd],
    [New_Price],
    [Tooling_Price],
    [RFQ_Num] ,
    [Eff_From],
    [Eff_To],
    [FG_Part_No],
    [FG_Part_Name],
    [Ship_From],
    [Ship_To],
    [TG_NAMC],
    [Vendor_CD],
    [PO_NUM],
    [REV_NO],
    [Buyer_Name],
    [Manager_Name],
    [BU],
    [SAM],
    [RFQ_To_CUST],
    [Quoted_Date],
    [PO_From_FG],
    [PO_RCVD_Date],
    [PO_Eff_Date] ,
    [Created_Date]
    )
 
    VALUES
(
    @Cust_NAMC_ID,
    @Customer,
    @Program,
    @PO_Type_ID,
    @Part_No,
    @Part_Name,
    @Date_Rcvd,
    @New_Price,
    @Tooling_Price,
    @RFQ_Num,
    @Eff_From,
    @Eff_To,
    @FG_Part_No,
    @FG_Part_Name,
    @Ship_From,
    @Ship_To,
    @TG_NAMC,
    @Vendor_CD,
    @PO_NUM,
    @REV_NO,
    @Buyer_Name,
    @Manager_Name,
    @BU,
    @SAM,
    @RFQ_To_CUST,
    @Quoted_Date,
    @PO_From_FG,
    @PO_RCVD_Date,
    @PO_Eff_Date,
    GETDATE()
)
    -- SET NOCOUNT ON added to prevent extra result sets from
    -- interfering with SELECT statements.
 
END
Chris
Top achievements
Rank 1
 asked on 29 Oct 2019
1 answer
375 views

Hello, i have a radcombobox that load filtered data using Web service. The aspx page is like this :

<telerik:RadComboBox runat="server" ID="rcbCustomer" Width="350px"
EmptyMessage="Select Customer" Visible="true" Filter="Contains" MinFilterLength="3"
EnableAutomaticLoadOnDemand="true" EnableLoadOnDemand="true"
AllowCustomText="true" Height="100px" ShowMoreResultsBox="true"
OnItemsRequested="rcbCustomer_ItemsRequested"
EnableVirtualScrolling="true" EnableViewState="true"
OnSelectedIndexChanged="rcbCustomer_SelectedIndexChanged" AutoPostBack="true" CausesValidation="false">
 
<WebServiceSettings Method="GetCustomerName" Path="SalesOrderWebService.asmx"></WebServiceSettings
 
</telerik:RadComboBox>

 

and on my .asmx.cs is like this :

/// <summary>
    /// Summary description for SalesOrderWebService
    /// </summary>
    [WebService(Namespace = "SO.Web.UI")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
    [System.Web.Script.Services.ScriptService]
    public class SalesOrderWebService : System.Web.Services.WebService
    {
 
        [WebMethod]
        public RadComboBoxData GetCustomerName(RadComboBoxContext context)
        {
           List<RadComboBoxItemData> result = new List<RadComboBoxItemData>(context.NumberOfItems);
            RadComboBoxData comboData = new RadComboBoxData();
            CustomerCollection colCustomer = new CustomerCollection();
            colCustomer.ListAutoSuggest(context.Text);
            if (colCustomer.Count>0)
            {
                int itemsPerRequest = 10;
                int itemOffset = context.NumberOfItems;
                int endOffset = itemOffset + itemsPerRequest;
                if (endOffset > colCustomer.Count)
                {
                    endOffset = colCustomer.Count;
                }
                if (endOffset == colCustomer.Count)
                {
                    comboData.EndOfItems = true;
                }
                else
                {
                    comboData.EndOfItems = false;
                }
                result = new List<RadComboBoxItemData>(endOffset - itemOffset);
 
                for (int i=0;i<=colCustomer.Count-1;i++)
                {
                    RadComboBoxItemData itemData = new RadComboBoxItemData();
                    itemData.Attributes.Add("CompanyID", colCustomer[i].CustomerId);
                    itemData.Attributes.Add("CompanyName", colCustomer[i].CustomerName);
                    itemData.Value = colCustomer[i].CustomerId.ToString();
                    itemData.Text = colCustomer[i].CustomerName;
                    result.Add(itemData);
                }
                comboData.Message = String.Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", endOffset.ToString(), colCustomer.Count.ToString());
            }
            else
            {
                comboData.Message = "No matches";
            }
            comboData.Items = result.ToArray();
            return comboData;
        }
    }

 

When i try to debug on page load after i select an item on rcbCustomer it always show as null.

What should i do to fix this ? 

I'm using telerik.web.ui version 2016.3.1027.45.

 

Thank you in advance.

Eric R | Senior Technical Support Engineer
Telerik team
 answered on 29 Oct 2019
1 answer
75 views

Hello,

I use a lot of grids in my web app. All the backgrounds of the inline editor is green except 2. In two grids the background of the inline editor is grey, why?

See attachment.

Best, Rainer

Rainer
Top achievements
Rank 1
 answered on 29 Oct 2019
1 answer
440 views

I want to call Radgrid Events manually Server side. 

 

SaveButton.ascx

protected void SaveFormButton_Click(object sender, EventArgs e)
{

}

 

GridBatchEdit.ascx

protected void GridListBatchEditCommand(object sender, Telerik.Web.UI.GridBatchEditingEventArgs e)
{

}

 

SaveButton.ascx and GridBatchEdit.ascx are in one page and need to trigger GridListBatchEditCommand when SaveForm button is clicked in Server Side not Client Side.

 

Is there such a way to do this scenario ?

 

Thanks

Attila Antal
Telerik team
 answered on 29 Oct 2019
3 answers
396 views

Hi Team,

I am using a radgrid control in my asp.net web page which is dynamically created and added to the page. Columns added to the grid are also dynamic. Sort expression is being used to prioritize sort for 3 default columns which are also dynamic. I am changing the masterview header text due to the business requirement.

Now, the problem is, if i am changing the mastertableview header text, sorting is getting disabled to all number based columns . It is working only for all other string and date based columns. If i don't change mastertableview header text, sorting is enabled for all columns as expected. I tried placing the code to change mastertableview header text in databound and prerender but still no luck. I tried rebind also but not working.

Any sort of help is appreciated. 

Thanks in advance.

sri harsha
Top achievements
Rank 1
 answered on 29 Oct 2019
1 answer
108 views

Hi,

from Chrome version 78, when you group a column in the RadGrid, the grouping item displays the "X" button on a second row, making the item too high. Is there any fix for this? Attaching a screenshot below.

 

 

Peter Milchev
Telerik team
 answered on 28 Oct 2019
21 answers
1.1K+ views
Hi,

Recently I've ran into common "100% RadGrid height issue".
After reading many posts about this problem I tried to apply your solutions in my project, but no luck.

All solutions to problem with making RadGrid occupy 100% container height (I use RadSplitter Prometheus) with AllowScroll="true" and UseStaticHeaders="true" don't take into account usage of CommandItem...

With CommandItem turned off, grid occupies 100% height of a container - it's ok.
But width CommandItem turned on the bottom part of a grid gets clipped (approx. the height of a CommandItem). It's happening in all sample projects I've seen attached to other posts in this topic...

My situation is as follows:
1. I use RadGrid inside RadSplitter pane (both Prometheus). RadSplitter is set to occupy 100% of the browser window height and width (so it resizes with browser window).
2. RadGrid has AllowScroll = true, UseStaticHeaders = true, Paging turned on and CommandItem showing on top of the grid
3. I want the grid to occupy 100% of the pane it's in and resize with browser window (so that Pager is always on the bottom of the pane and scrolling content stretches accordingly). It's quite easy to achieve width CommandItem turned off, but as I said before, when turned on - the bottom part (Pager or the least row when content fit on one page) of the grid gets clipped...

How can I acheive this?
It's currently a showstopper for my project... The usage of CommandItem/Paging/Scrolling is crucial so I cannot turn off any of them.

Regards,
Piotr

PS. I tried to set HeightOffset for RadSplitter, but it seems that it doesnt help at all (no difference, neither with empty value nor with any other).
Dimo
Telerik team
 answered on 28 Oct 2019
1 answer
123 views
Hello,

Im experiencing an issue where I have an RadAutoCompleteBox on a RadDock and it functions properly when the RadDock remains in the default position, 

However, when I move the raddock out of the raddockzone it is in, the RadAutoCompleteBox acts as if there are no results, despite having results when I step through the code that fills its datasource. 

below is the snippet of code that fills the AutoCompleteBox Datasource

        protected void ddlDeviceType_ItemSelected(object sender, Telerik.Web.UI.DropDownListEventArgs e)
        {
            type = ddlDeviceType.SelectedText;

            cboDeviceAssign.Entries.Clear();
            cboDeviceAssign.DataSource = Devices;
            cboDeviceAssign.DataTextField = "Device";
            cboDeviceAssign.DataValueField = "Device";
            cboDeviceAssign.DataBind();
        }
Peter Milchev
Telerik team
 answered on 28 Oct 2019
41 answers
1.2K+ views
Does anyone know how to display a list of appointments (recurring specifically) in an SQL Reporting Services report?

Thanks!
RTA DEV
Top achievements
Rank 1
 answered on 28 Oct 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?