Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
112 views
Is there a way to ensure the checklist items alignment is like a table with even sized columns and rows?
Peter Milchev
Telerik team
 answered on 04 Nov 2022
0 answers
109 views

i'm lost on this.  I have a rad dropdown list that if I run through debugger and step through, it binds correctly showing years 2017-2022 from a SQL Query.  This is the weird part... If I build and run it on the dev server, somehow the years are being bound -1, displaying 2016-2021.  I have done a find for every reference to the dropdown and it is only accessed on two occasions - page load and on change,  what. in. the. world. is going on with this thing?

i've tried clearing the DDL, creating a new instance of DataSet, iterated through the returned dataset and bound each row individually, and everything else just short of clapping 3 times & doing the hokey pokey.

 

                DDLyear.Items.Clear();
                string yrSQL = "select year4 as TEXT, year4 as VALUE  from " + INSERT_TABLE_NAME_HERE + " group by year4 ORDER BY YEAR4 DESC";
                DataSet ds = new DataSet();
                ds = GetDataSet(yrSQL);
                DDLyear.DataSource = ds;
                DDLyear.DataBind();

 

Attached screenshots show the results running in debug and on dev server. 

Mike
Top achievements
Rank 1
 asked on 03 Nov 2022
1 answer
130 views
Is there any way to set the HTML Chart in percentage (90%)?
Rumen
Telerik team
 answered on 03 Nov 2022
0 answers
101 views
Hello, i get a error unknown type Telerik in Visual Studio 2012 with delphi prism
Helmut Versteeg
Top achievements
Rank 1
 asked on 03 Nov 2022
0 answers
184 views
having not possible to convertTelerik.Web.UI.RadUploadContext.Current.UploadedFiles[0] from the collection  how do I access the HttpPostedFile file properties of that async upload process anyways?  It seems like its impossible to find such a way. how can I keep the full filepath of HttpPostedFile ? 
Edward
Top achievements
Rank 1
 asked on 02 Nov 2022
0 answers
114 views

I have a radgrid that binds an object stored in the ViewState (Case).  When I click on the radgrid's "Add" button (firing the OnInsertCommand) I get the following error: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name 'LookupValue'.'  The specific control I am having problems with is the RadDropDownTree, and only when its definition contains this "SelectedValue='<%# Bind("LookupValue.Code") %>'"

I do not understand why this is happening.  What is so different now that my radgrid is binding to a object that contains a subobject??  What do I need to be doing differently?

Just as an fyi, I do not get this error when the OnUpdateCommand fires.  Below is my code.

 

<telerik:RadGrid ID="gvAllegations" runat="server"
                                            AllowAutomaticDeletes="false"
                                            AllowAutomaticInserts="false"
                                            AllowAutomaticUpdates="false"
                                            AllowFilteringByColumn="false"
                                            AllowMultiRowEdit="false"
                                            AllowMultiRowSelection="false"
                                            AllowPaging="false"
                                            AllowSorting="false"
                                            AutoGenerateColumns="false"
                                            OnNeedDataSource="gvAllegations_NeedDataSource"
                                            OnInsertCommand="gvAllegations_InsertCommand"
                                            OnUpdateCommand="gvAllegations_UpdateCommand">
                                            <ClientSettings Selecting-AllowRowSelect="true" />
                                            <GroupingSettings CaseSensitive="false" />
                                            <MasterTableView
                                                CommandItemDisplay="Top"
                                                DataKeyNames="CaseAllegationID"
                                                ClientDataKeyNames="CaseAllegationID">
                                                <Columns>
                                                    <telerik:GridBoundColumn UniqueName="AllegationType" DataField="Type" HeaderText="Type" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />
                                                    <telerik:GridBoundColumn UniqueName="AllegationCodeDescription" DataField="LookupValue.CodeDescription" HeaderText="Allegation" />
                                                </Columns>
                                                <CommandItemTemplate>
                                                    <div class="CommandButtonDiv">
                                                        <asp:LinkButton ID="LinkButton2" runat="server"
                                                            CssClass="CommandButton"
                                                            CommandName="InitInsert"
                                                            Visible='<%# !gvAllegations.MasterTableView.IsItemInserted && gvAllegations.EditIndexes.Count == 0 %>'>
                                                            <img src="Images/AddRecord.png"/> Add
                                                        </asp:LinkButton>
                                                        <asp:LinkButton ID="btnEditSelected" runat="server"
                                                            CssClass="CommandButton"
                                                            CommandName="EditSelected"
                                                            Visible='<%# !gvAllegations.MasterTableView.IsItemInserted && gvAllegations.EditIndexes.Count == 0 %>'>
                                                            <img src="Images/Edit.png" /> Edit
                                                        </asp:LinkButton>
                                                        <asp:LinkButton ID="LinkButton1" runat="server"
                                                            CssClass="CommandButton"
                                                            CommandName="DeleteSelected"
                                                            Visible='<%# !gvAllegations.MasterTableView.IsItemInserted && gvAllegations.EditIndexes.Count == 0 %>'>
                                                            <img src="Images/Delete.png"/> Delete
                                                        </asp:LinkButton>
                                                        <asp:LinkButton ID="LinkButton4" runat="server"
                                                            CssClass="CommandButton"
                                                            CommandName="RebindGrid"
                                                            Visible='<%# !gvAllegations.MasterTableView.IsItemInserted && gvAllegations.EditIndexes.Count == 0 %>'>
                                                            <img src="Images/Refresh.png"/> Refresh
                                                        </asp:LinkButton>
                                                        <asp:LinkButton ID="LinkButton3" runat="server"
                                                            CssClass="CommandButton"
                                                            CommandName="PerformInsert" Visible='<%# gvAllegations.MasterTableView.IsItemInserted %>'>
                                                            <img src="Images/Insert.gif"/> Save
                                                        </asp:LinkButton>
                                                        <asp:LinkButton ID="LinkButton5" runat="server"
                                                            CssClass="CommandButton"
                                                            CommandName="UpdateEdited" Visible='<%# gvAllegations.EditIndexes.Count > 0 %>'>
                                                            <img src="Images/Update.png"/> Update
                                                        </asp:LinkButton>
                                                        <asp:LinkButton ID="btnCancel" runat="server"
                                                            CssClass="CommandButton"
                                                            CommandName="CancelAll" Visible='<%# gvAllegations.MasterTableView.IsItemInserted || gvAllegations.EditIndexes.Count > 0 %>'>
                                                            <img src="Images/Cancel.png"/> Cancel
                                                        </asp:LinkButton>
                                                    </div>
                                                </CommandItemTemplate>
                                                <EditFormSettings EditFormType="Template">
                                                    <FormTemplate>
                                                        <table style="width: 100%">
                                                            <tr>
                                                                <td>Allegation</td>
                                                                <td>
                                                                    <telerik:RadDropDownTree ID="ddtAllegation" runat="server"
                                                                        AutoPostBack="False"
                                                                        DataFieldId="Code"
                                                                        DataFieldParentID="ParentCode" 
                                                                        DataValueField="Code"
                                                                        DataSourceID="odsAllegationLookupValues"
                                                                        DataTextField="CodeDescription"
                                                                        EnableFiltering="True"
                                                                        ExpandNodeOnSingleClick="True"
                                                                        SelectedValue='<%# Bind("LookupValue.Code") %>'
                                                                        Width="300px">
                                                                        <DropDownSettings AutoWidth="Enabled" CloseDropDownOnSelection="true" />
                                                                        <FilterSettings EmptyMessage="Search Allegation" Filter="Contains" Highlight="Matches" />
                                                                    </telerik:RadDropDownTree>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>Major Allegation</td>
                                                                <td><telerik:RadCheckBox ID="chbMajorAllegation" runat="server" 
                                                                    AutoPostBack="False" Checked='<%# Bind("IsMajor") %>' /></td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="2" style="text-align: center">
                                                                    <telerik:RadButton ID="btnInsert" runat="server"
                                                                        CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
                                                                        Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                                                        Width="100px" />
                                                                    <telerik:RadButton ID="btnCancel" runat="server"
                                                                        Text="Cancel"
                                                                        CommandName="Cancel"
                                                                        Width="100px" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </FormTemplate>
                                                </EditFormSettings>
                                            </MasterTableView>
                                        </telerik:RadGrid>

 


    [Serializable]
    public class Case
    {
        public int ID { get; set; }
        public List<Allegation> Allegations { get; set; }
    }
    [Serializable]
    public class Allegation
    {
        public int CaseAllegationID { get; set; }
        public bool IsMajor { get; set; }
        public string Type
        {
            get
            {
                if (IsMajor)
                    return "Major";
                else
                    return "Other";
            }
        }
        public LookupValue LookupValue { get; set; }
    }
    [Serializable]
    public class LookupValue
    {
        public string Code { get; set; }
        public string Description { get; set; }
        public string CodeDescription { get { return Code + " - " + Description; } }
        public string ParentCode { get; set; }
        public int DimID { get; set; }
        public DateTime DimStartDate { get; set; }
        public DateTime DimEndDate { get; set; }
        public bool DimIsActive { get; set; }
    }    


        protected void gvAllegations_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            gvAllegations.DataSource = ((Case)ViewState["rcaCase"]).Allegations;
        }
        protected void gvAllegations_InsertCommand(object sender, GridCommandEventArgs e)
        {

        }

Jonathan
Top achievements
Rank 1
Iron
 updated question on 01 Nov 2022
3 answers
256 views

Good morning ,

I have a datagrid in my project and for some reason one column does not exporting to excel spreadhseet.

The column name is called 'Location'

Please see my html:

telerik:RadGrid ID="EmplReqGrid" runat="server" Skin="Simple" 
                            GridLines="None" AllowPaging="true" AllowSorting="true" 
                            onexcelmlexportrowcreated="EmplReqGrid_ExcelMLExportRowCreated" 
                            onexcelmlexportstylescreated="EmplReqGrid_ExcelMLExportStylesCreated" 
                            onitemcommand="EmplReqGrid_ItemCommand" onitemcreated="EmplReqGrid_ItemCreated" 
                            onitemdatabound="EmplReqGrid_ItemDataBound" 
                            onneeddatasource="EmplReqGrid_NeedDataSource" 
                            onpageindexchanged="EmplReqGrid_PageIndexChanged" 
                            onpagesizechanged="EmplReqGrid_PageSizeChanged" 
                            onpdfexporting="EmplReqGrid_PdfExporting" 
                            onsortcommand="EmplReqGrid_SortCommand" >
                     <ExportSettings FileName="EmplReqRpt"  OpenInNewWindow="true" IgnorePaging="true" ExportOnlyData="true">
                      <Excel  Format="ExcelML" FileExtension="xls"/>
                      <Pdf FontType="Subset" PaperSize="letter" />
                     </ExportSettings>
                     <MasterTableView AutoGenerateColumns="false" AllowMultiColumnSorting="true" >
                         <HeaderStyle Font-Names="Arial"   BackColor="#3974AE" ForeColor="White" Font-Size="Small"  />
                       <Columns>

                        <telerik:GridBoundColumn HeaderText="Eis-Id" DataField="PRI" UniqueName="PRI" ReadOnly="True" SortExpression="PRI" HeaderButtonType="TextButton" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" >
                        </telerik:GridBoundColumn>

                        <telerik:GridBoundColumn HeaderText="Name" DataField="NAME" UniqueName="NAME" Display="false" ></telerik:GridBoundColumn>

                        <telerik:GridBoundColumn HeaderText="ReqNo" DataField="TRKNO" UniqueName="TRKNO" ReadOnly="True" SortExpression="TRKNO" HeaderButtonType="TextButton" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" >
                        </telerik:GridBoundColumn>

                        <telerik:GridBoundColumn HeaderText="Job" DataField="JOB" UniqueName="JOB" ReadOnly="True" SortExpression="JOB" HeaderButtonType="TextButton" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" >
                        </telerik:GridBoundColumn>

                        <telerik:GridBoundColumn HeaderText="Location" DataField="LOC" UniqueName="LOC" HeaderButtonType="TextButton" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" ReadOnly="true" SortExpression="LOC" >
                        </telerik:GridBoundColumn>

                        <telerik:GridBoundColumn HeaderText="Term" DataField="TERMID" UniqueName="TERMID" ReadOnly="True" SortExpression="TERMID" HeaderButtonType="TextButton" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Start Date" DataField="TERMST" UniqueName="TERMST" ReadOnly="true" DataFormatString="{0:MM/dd/yyyy}" SortExpression="TERMST" HeaderButtonType="TextButton" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="End Date" DataField="TERMEND" UniqueName="TERMEND" ReadOnly="true" DataFormatString="{0:MM/dd/yyyy}" SortExpression="TERMEND" HeaderButtonType="TextButton" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                        </telerik:GridBoundColumn>

                        <telerik:GridBoundColumn HeaderText="No of Days" DataField="NUMP" UniqueName="NUMP" ReadOnly="True" SortExpression="NUMP" HeaderButtonType="TextButton" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                        </telerik:GridBoundColumn>


                        <telerik:GridBoundColumn HeaderText="Process Status" DataField="APPRFLAG" UniqueName="APPRFLAG" ReadOnly="True" SortExpression="APPRFLAG" HeaderButtonType="TextButton" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                        </telerik:GridBoundColumn> 


                        <telerik:GridBoundColumn HeaderText="Rec Status" DataField="STATUS" UniqueName="STATUS" ReadOnly="True" SortExpression="STATUS" HeaderButtonType="TextButton" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                        </telerik:GridBoundColumn>

                        <telerik:GridBoundColumn HeaderText="Process Status Date" DataField="FORMDATE" UniqueName="FORMDATE" ReadOnly="True" DataFormatString="{0:MM/dd/yyyy}" SortExpression="FORMDATE" HeaderButtonType="TextButton" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                        </telerik:GridBoundColumn>

                        <telerik:GridBoundColumn DataField="REQFLAG" UniqueName="REQFLAG" Display="false"></telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="SENDFLAG" UniqueName="SENDFLAG" Display="false"></telerik:GridBoundColumn>

                         <telerik:GridBoundColumn DataField="BEG_FALL" UniqueName="BEG_FALL" Display="false"></telerik:GridBoundColumn>
                         <telerik:GridBoundColumn DataField="END_FALL" UniqueName="END_FALL" Display="false"></telerik:GridBoundColumn>
                         <telerik:GridBoundColumn DataField="BEG_SPRING" UniqueName="BEG_SPRING" Display="false"></telerik:GridBoundColumn>
                         <telerik:GridBoundColumn DataField="END_SPRING" UniqueName="END_SPRING" Display="false"></telerik:GridBoundColumn> 
                         <telerik:GridBoundColumn DataField="BEG_ALL" UniqueName="BEG_ALL" Display="false"></telerik:GridBoundColumn>
                         <telerik:GridBoundColumn DataField="END_ALL" UniqueName="END_ALL" Display="false"></telerik:GridBoundColumn> 
                         <telerik:GridBoundColumn DataField="TRKSEQ" UniqueName="TRKSEQ" Display="false"></telerik:GridBoundColumn>  
                         <telerik:GridBoundColumn DataField="FLAG" UniqueName="FLAG" Display="false"></telerik:GridBoundColumn> 
                         <telerik:GridBoundColumn DataField="SCHEDULE" UniqueName="SCHEDULE" Display="false"></telerik:GridBoundColumn>
                         <telerik:GridBoundColumn DataField="UPDFLAG " UniqueName="UPDFLAG" Display="false"></telerik:GridBoundColumn>
                         <telerik:GridBoundColumn DataField="GALFLAG" UniqueName="GALFLAG" Display="false"></telerik:GridBoundColumn>
                         <telerik:GridBoundColumn DataField="LIC_DESCR" UniqueName="LIC_DESCR" Display="false"></telerik:GridBoundColumn>
                         <telerik:GridBoundColumn DataField="HSIND" UniqueName="HSIND" Display="false"></telerik:GridBoundColumn>
                         <telerik:GridBoundColumn DataField="CFN" UniqueName="CFN" Display="false"></telerik:GridBoundColumn>
                         <telerik:GridBoundColumn DataField="APPRNAME" UniqueName="APPRNAME" Display="false"></telerik:GridBoundColumn>
                         <telerik:GridBoundColumn DataField="APPREMAIL" UniqueName="APPREMAIL" Display="false"></telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn HeaderText="Link to Form" UniqueName="ButtonColumn" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="150px" >

                                 <ItemTemplate>
                                  <asp:ImageButton ID="ReqFormBtn" ImageUrl="~/Image/update.jpg" 
                                       BackColor="#5A8EC1"
                                       ToolTip="update,re-submit or print the request" runat="server" CommandName="Redirect" Width="18px" Height="18px" Visible="false" />
                                  <asp:ImageButton ID="ApprFormBtn" ImageUrl="~/Image/Appr_Button.jpg" BackColor="#5A8EC1" 
                                        ToolTip="approve/disapprove request" runat="server" CommandName="Approve" Width="18px" Height="18px" ImageAlign="TextTop" Visible="false" />
                                  <asp:Image ID="Image1" runat="server" ToolTip="HR REQUEST" ImageUrl="~/Image/HR_Request3.jpg" Width="12px" Height="12px" Visible="false" /> 
                                  <%--<asp:ImageButton ID="CancelReqBtn" ImageUrl="~/Image/Cancel_button6.png" runat="server" CommandName="Cancel" ImageAlign="Right" BackColor="Transparent" ToolTip="cancel the request" Width="50px" Height="20px" Visible="false" OnClientClick="ConfirmCancel(value);" />--%>
                                  <asp:ImageButton ID="GalaxyGBtn" runat="server" ImageUrl="~/Image/Galaxy.png" Width="18px" Height="18px" BackColor="#BDCBDE" ToolTip="galaxy generated/updated request" CommandName="GalaxyRequest" Visible="false" />
                                  <asp:ImageButton ID="PlaceHolderBtn" runat="server" ImageUrl="~/Image/PlaceHolder.jpg" Width="17px" Height="17px"  ToolTip="placeholder must be budgeted" Visible="false" BackColor="#BDCBDE" CommandName="PlaceHolderRequest" />
                                  <asp:ImageButton ID="HistoryBtn" runat="server" ImageUrl="~/Image/HistoryReq.png" Width="20px" Height="20px" ToolTip="Archive" BackColor="#BDCBDE" Visible="false" CommandName="HistoryRequest"  /> 
                                 </ItemTemplate>
                        </telerik:GridTemplateColumn> 

                       </Columns>
                     </MasterTableView>
                     <ClientSettings EnableRowHoverStyle="True" EnablePostBackOnRowClick = "false">
                      <Selecting AllowRowSelect="false" /> 
                     </ClientSettings>
                   </telerik:RadGrid>

And here is event which do exporting:

 protected void ExporttoExcel_Click1(object sender, ImageClickEventArgs e)
        {
            try
            {
                if (!IsPostBack)
                    return;

                RadGrid ReqInfoGrid = (RadGrid)EmpReqReport.FindItemByValue("EmployeeData").FindControl("EmplReqGrid");
                ReqInfoGrid.DataSource = Session["dtGrid"];
                ReqInfoGrid.DataBind();
                ReqInfoGrid.MasterTableView.GetColumn("NAME").Display = true;
                ReqInfoGrid.MasterTableView.ExportToExcel();

            }
            catch (Exception ex)
            {
                throw;
            }
        }

Please help me to resolve this issue.

thanks.

Vitaly.

                                                                                                                                                                                                                                                                                                                                                      
Vitaly
Top achievements
Rank 1
Iron
Iron
 answered on 01 Nov 2022
1 answer
246 views
Is there a way to insert an image (ostensibly a transparent background image) in a SpreadProcessing worksheet cell like there is in Excel? If not, is there a way to accomplish the same thing with Cell styles? Attached is an example.
Attila Antal
Telerik team
 answered on 31 Oct 2022
0 answers
112 views

Hi. 

I've read all the previous questions on this but still cannot get it to work.
I need the editor content area to be full width in the page.
Is this possible please?
No other css is affecting this - please see the attached image.
Thanks, Jon

Jon
Top achievements
Rank 1
 updated question on 30 Oct 2022
0 answers
140 views
Hi,

I have a project whot lots of aspx pages, each one containing lot's of RadComboBoxes which are populated with declarative Data Sources :for each RadCombBox I define a certaing Object Data Source so to populate each RadComboBox whith proper items

let's consider a page in which I define:

1) the RadComboBox with rcbCDRATEINDEX ID,  which items are coming from odsTBRCFINPRICE_CDRATEINDEX Object Data Source calling the select method GetDataByCDCOMPANY
2) the RadComboBox with rcbCDrcbTPPLAN ID, which items are coming from odsTBRCFINPRICE_TPPLAN Object Data Source calling call the select method GetDataByCDCOMPANY_CUSTTYPE
3) the RadComboBox with rcbPER_SUG ID, which items are coming from odsTBRCFINPRICE_PER_SUG Object Data Source calling call the select method GetDataByCDCOMPANY_PER_SUG


<telerik:RadComboBox ID="rcbCDRATEINDEX" runat="server" DataSourceID="odsTBRCFINPRICE_CDRATEINDEX"
    DataTextField="DSRATEINDEX" DataValueField="CDRATEINDEX" Width="100%" OnClientSelectedIndexChanged="ClientRcbCDRATEINDEX_SelectedIndexChanged" />
<asp:ObjectDataSource ID="odsTBRCFINPRICE_CDRATEINDEX" runat="server"
    OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataByCDCOMPANY"
    TypeName="DataAccessComponent.dsFinancialMarketAndRateTableAdapters.TCRATEINDEXTableAdapter">
    <SelectParameters>
        <asp:ControlParameter ControlID="hCDCOMPANY" DefaultValue="''" Name="CDCOMPANY" PropertyName="Value" Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>
...

...
<telerik:RadComboBox ID="rcbTPPLAN" runat="server" DataSourceID="odsTBRCFINPRICE_TPPLAN"
    DataTextField="DSCUSTOM" DataValueField="CUSTKEY" Width="100%" OnClientSelectedIndexChanged="ClientRcbTPPLAN_OnSelectedIndexChanged" />
<asp:ObjectDataSource ID="odsTBRCFINPRICE_TPPLAN" runat="server"
    OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataByCDCOMPANY_CUSTTYPE"
    TypeName="DataAccessComponent.dsOtherTableAdapters.TBCUSTOMTableAdapter">
    <SelectParameters>
        <asp:ControlParameter ControlID="hCDCOMPANY" DefaultValue="''" Name="CDCOMPANY" PropertyName="Value" Type="String" />
        <asp:Parameter DefaultValue="DEPR_PLAN" Name="CUSTTYPE" Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>
...

...
<telerik:RadComboBox ID="rcbPER_SUG" runat="server" DataSourceID="odsTBRCFINPRICE_PER_SUG"
    DataTextField="DSCUSTOM" DataValueField="CUSTKEY" Width="100%" />
<asp:ObjectDataSource ID="odsTBRCFINPRICE_PER_SUG" runat="server"
    OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataByCDCOMPANY_PER_SUG"
    TypeName="DataAccessComponent.dsOtherTableAdapters.TBCUSTOMTableAdapter">
    <SelectParameters>
        <asp:ControlParameter ControlID="hCDCOMPANY" DefaultValue="''" Name="CDCOMPANY" PropertyName="Value" Type="String" />
        <asp:Parameter DefaultValue="PER_SUG" Name="CUSTTYPE" Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>

Now let's suppose that a developer's bug causes that the method GetDataByCDCOMPANY_CUSTTYPE produces no data.

Then an exception of this kind is generated:

Exception Message: 'System.Web.HttpUnhandledException'.

Exception StackTrace: in System.Web.UI.Page.HandleError(Exception e)
in System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
in System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
in System.Web.UI.Page.ProcessRequest()
in System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
in System.Web.UI.Page.ProcessRequest(HttpContext context)
in ASP.cpwizardratecard_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\dll\5102107e\48518dac\App_Web_cpwizardratecard.aspx.cdcab7d2.dm-dka8a.0.cs:riga 0
in System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
in System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
in System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

[ArgumentOutOfRangeException: Selection out of range
Parameter Name: value]
   Telerik.Web.UI.RadComboBox.PerformDataBinding(IEnumerable dataSource) +287
   Telerik.Web.UI.RadComboBox.OnDataSourceViewSelectCallback(IEnumerable data) +329
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +34
   Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e) +758
   Telerik.Web.UI.RadComboBox.PerformSelect() +21
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +76
   Telerik.Web.UI.RadComboBox.DataBind() +40
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +114
   Telerik.Web.UI.RadComboBox.OnPreRender(EventArgs e) +24
   System.Web.UI.Control.PreRenderRecursiveInternal() +90
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +906

This kind of exception is a generic one,  because it states that a component Telerik.Web.UI.RadComboBox of the page, fails during it's Data Binding performing.

This exception don't tell me that THE RadComboBox rcbTPPLAN, which use declaratively the method GetDataByCDCOMPANY_CUSTTYPE, fails.

So every time that happens an exception like that above mentioned, we're in the panic, struggling to understand which declaratively sourced Rad Combo Box produce the error.

Is there a way to understand the rad combo box id that produced the exception?
Finwave Spa
Top achievements
Rank 1
 asked on 28 Oct 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?